Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 18.118.28.31
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
simpletest /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
drupal_autoload_test
[ DIR ]
drwxr-xr-x
drupal_system_listing_compatib...
[ DIR ]
drwxr-xr-x
drupal_system_listing_incompat...
[ DIR ]
drwxr-xr-x
psr_0_test
[ DIR ]
drwxr-xr-x
psr_4_test
[ DIR ]
drwxr-xr-x
themes
[ DIR ]
drwxr-xr-x
upgrade
[ DIR ]
drwxr-xr-x
actions.test
5.7
KB
-rw-r--r--
actions_loop_test.info
268
B
-rw-r--r--
actions_loop_test.install
206
B
-rw-r--r--
actions_loop_test.module
2.54
KB
-rw-r--r--
ajax.test
26.15
KB
-rw-r--r--
ajax_forms_test.info
267
B
-rw-r--r--
ajax_forms_test.module
16.56
KB
-rw-r--r--
ajax_test.info
261
B
-rw-r--r--
ajax_test.module
1.84
KB
-rw-r--r--
batch.test
16.49
KB
-rw-r--r--
batch_test.callbacks.inc
3.92
KB
-rw-r--r--
batch_test.info
265
B
-rw-r--r--
batch_test.module
13.32
KB
-rw-r--r--
bootstrap.test
28.68
KB
-rw-r--r--
cache.test
15.38
KB
-rw-r--r--
common.test
130.72
KB
-rw-r--r--
common_test.css
79
B
-rw-r--r--
common_test.info
341
B
-rw-r--r--
common_test.module
7.25
KB
-rw-r--r--
common_test.print.css
79
B
-rw-r--r--
common_test_cron_helper.info
295
B
-rw-r--r--
common_test_cron_helper.module
362
B
-rw-r--r--
common_test_info.txt
334
B
-rw-r--r--
database_test.info
269
B
-rw-r--r--
database_test.install
5.72
KB
-rw-r--r--
database_test.module
6.51
KB
-rw-r--r--
database_test.test
144.13
KB
-rw-r--r--
entity_cache_test.info
319
B
-rw-r--r--
entity_cache_test.module
873
B
-rw-r--r--
entity_cache_test_dependency.i...
295
B
-rw-r--r--
entity_cache_test_dependency.m...
305
B
-rw-r--r--
entity_crud.test
1.86
KB
-rw-r--r--
entity_crud_hook_test.info
273
B
-rw-r--r--
entity_crud_hook_test.module
6
KB
-rw-r--r--
entity_crud_hook_test.test
12.47
KB
-rw-r--r--
entity_query.test
65.62
KB
-rw-r--r--
entity_query_access_test.info
289
B
-rw-r--r--
entity_query_access_test.modul...
1.5
KB
-rw-r--r--
error.test
4.58
KB
-rw-r--r--
error_test.info
273
B
-rw-r--r--
error_test.module
1.89
KB
-rw-r--r--
file.test
109.29
KB
-rw-r--r--
file_test.info
291
B
-rw-r--r--
file_test.module
12.23
KB
-rw-r--r--
filetransfer.test
4.44
KB
-rw-r--r--
filter_test.info
263
B
-rw-r--r--
filter_test.module
1.68
KB
-rw-r--r--
form.test
89.19
KB
-rw-r--r--
form_test.file.inc
1.4
KB
-rw-r--r--
form_test.info
262
B
-rw-r--r--
form_test.module
57.65
KB
-rw-r--r--
graph.test
6.23
KB
-rw-r--r--
http.php
897
B
-rw-r--r--
https.php
860
B
-rw-r--r--
image.test
18.89
KB
-rw-r--r--
image_test.info
265
B
-rw-r--r--
image_test.module
3.17
KB
-rw-r--r--
lock.test
2.56
KB
-rw-r--r--
mail.test
18.8
KB
-rw-r--r--
menu.test
71.63
KB
-rw-r--r--
menu_test.info
268
B
-rw-r--r--
menu_test.module
17.93
KB
-rw-r--r--
module.test
14.59
KB
-rw-r--r--
module_test.file.inc
203
B
-rw-r--r--
module_test.info
268
B
-rw-r--r--
module_test.install
930
B
-rw-r--r--
module_test.module
3.76
KB
-rw-r--r--
pager.test
5.36
KB
-rw-r--r--
password.test
3.44
KB
-rw-r--r--
path.test
13.27
KB
-rw-r--r--
path_test.info
268
B
-rw-r--r--
path_test.module
410
B
-rw-r--r--
registry.test
4.66
KB
-rw-r--r--
requirements1_test.info
313
B
-rw-r--r--
requirements1_test.install
505
B
-rw-r--r--
requirements1_test.module
111
B
-rw-r--r--
requirements2_test.info
392
B
-rw-r--r--
requirements2_test.module
130
B
-rw-r--r--
schema.test
13.45
KB
-rw-r--r--
session.test
22.8
KB
-rw-r--r--
session_test.info
268
B
-rw-r--r--
session_test.module
5.45
KB
-rw-r--r--
system.base.css
143
B
-rw-r--r--
system_dependencies_test.info
322
B
-rw-r--r--
system_dependencies_test.modul...
6
B
-rw-r--r--
system_incompatible_core_versi...
368
B
-rw-r--r--
system_incompatible_core_versi...
6
B
-rw-r--r--
system_incompatible_core_versi...
300
B
-rw-r--r--
system_incompatible_core_versi...
6
B
-rw-r--r--
system_incompatible_module_ver...
442
B
-rw-r--r--
system_incompatible_module_ver...
6
B
-rw-r--r--
system_incompatible_module_ver...
298
B
-rw-r--r--
system_incompatible_module_ver...
6
B
-rw-r--r--
system_test.info
286
B
-rw-r--r--
system_test.module
14.43
KB
-rw-r--r--
tablesort.test
4.67
KB
-rw-r--r--
taxonomy_test.info
305
B
-rw-r--r--
taxonomy_test.install
747
B
-rw-r--r--
taxonomy_test.module
2.65
KB
-rw-r--r--
theme.test
25.37
KB
-rw-r--r--
theme_test.inc
372
B
-rw-r--r--
theme_test.info
266
B
-rw-r--r--
theme_test.module
4.17
KB
-rw-r--r--
theme_test.template_test.tpl.p...
66
B
-rw-r--r--
unicode.test
10.89
KB
-rw-r--r--
update.test
4.69
KB
-rw-r--r--
update_script_test.info
275
B
-rw-r--r--
update_script_test.install
1.29
KB
-rw-r--r--
update_script_test.module
419
B
-rw-r--r--
update_test_1.info
261
B
-rw-r--r--
update_test_1.install
1.59
KB
-rw-r--r--
update_test_1.module
6
B
-rw-r--r--
update_test_2.info
261
B
-rw-r--r--
update_test_2.install
1.18
KB
-rw-r--r--
update_test_2.module
6
B
-rw-r--r--
update_test_3.info
261
B
-rw-r--r--
update_test_3.install
436
B
-rw-r--r--
update_test_3.module
6
B
-rw-r--r--
url_alter_test.info
272
B
-rw-r--r--
url_alter_test.install
267
B
-rw-r--r--
url_alter_test.module
1.75
KB
-rw-r--r--
xmlrpc.test
9.61
KB
-rw-r--r--
xmlrpc_test.info
303
B
-rw-r--r--
xmlrpc_test.module
3.1
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : menu_test.module
<?php /** * @file * Dummy module implementing hook menu. */ /** * Implements hook_menu(). */ function menu_test_menu() { // The name of the menu changes during the course of the test. Using a $_GET. $items['menu_name_test'] = array( 'title' => 'Test menu_name router item', 'page callback' => 'node_save', 'menu_name' => menu_test_menu_name(), ); // This item is of type MENU_CALLBACK with no parents to test title. $items['menu_callback_title'] = array( 'title' => 'Menu Callback Title', 'page callback' => 'menu_test_callback', 'type' => MENU_CALLBACK, 'access arguments' => array('access content'), ); // Use FALSE as 'title callback' to bypass t(). $items['menu_no_title_callback'] = array( 'title' => 'A title with @placeholder', 'title callback' => FALSE, 'title arguments' => array('@placeholder' => 'some other text'), 'page callback' => 'menu_test_callback', 'access arguments' => array('access content'), ); // Hidden link for menu_link_maintain tests $items['menu_test_maintain/%'] = array( 'title' => 'Menu maintain test', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); // Hierarchical tests. $items['menu-test/hierarchy/parent'] = array( 'title' => 'Parent menu router', 'page callback' => 'node_page_default', ); $items['menu-test/hierarchy/parent/child'] = array( 'title' => 'Child menu router', 'page callback' => 'node_page_default', ); $items['menu-test/hierarchy/parent/child2/child'] = array( 'title' => 'Unattached subchild router', 'page callback' => 'node_page_default', ); // Theme callback tests. $items['menu-test/theme-callback/%'] = array( 'title' => 'Page that displays different themes', 'page callback' => 'menu_test_theme_page_callback', 'access arguments' => array('access content'), 'theme callback' => 'menu_test_theme_callback', 'theme arguments' => array(2), ); $items['menu-test/theme-callback/%/inheritance'] = array( 'title' => 'Page that tests theme callback inheritance.', 'page callback' => 'menu_test_theme_page_callback', 'page arguments' => array(TRUE), 'access arguments' => array('access content'), ); $items['menu-test/no-theme-callback'] = array( 'title' => 'Page that displays different themes without using a theme callback.', 'page callback' => 'menu_test_theme_page_callback', 'access arguments' => array('access content'), ); // Path containing "exotic" characters. $path = "menu-test/ -._~!$'\"()*@[]?&+%#,;=:" . // "Special" ASCII characters. "%23%25%26%2B%2F%3F" . // Characters that look like a percent-escaped string. "éøïвβ中國書۞"; // Characters from various non-ASCII alphabets. $items[$path] = array( 'title' => '"Exotic" path', 'page callback' => 'menu_test_callback', 'access arguments' => array('access content'), ); // Hidden tests; base parents. // Same structure as in Menu and Block modules. Since those structures can // change, we need to simulate our own in here. $items['menu-test'] = array( 'title' => 'Menu test root', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); $items['menu-test/hidden'] = array( 'title' => 'Hidden test root', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); // Hidden tests; one dynamic argument. $items['menu-test/hidden/menu'] = array( 'title' => 'Menus', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); $items['menu-test/hidden/menu/list'] = array( 'title' => 'List menus', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['menu-test/hidden/menu/add'] = array( 'title' => 'Add menu', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/menu/settings'] = array( 'title' => 'Settings', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, 'weight' => 5, ); $items['menu-test/hidden/menu/manage/%menu'] = array( 'title' => 'Customize menu', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); $items['menu-test/hidden/menu/manage/%menu/list'] = array( 'title' => 'List links', 'weight' => -10, 'type' => MENU_DEFAULT_LOCAL_TASK, 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE, ); $items['menu-test/hidden/menu/manage/%menu/add'] = array( 'title' => 'Add link', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/menu/manage/%menu/edit'] = array( 'title' => 'Edit menu', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE, ); $items['menu-test/hidden/menu/manage/%menu/delete'] = array( 'title' => 'Delete menu', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); // Hidden tests; two dynamic arguments. $items['menu-test/hidden/block'] = array( 'title' => 'Blocks', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); $items['menu-test/hidden/block/list'] = array( 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, ); $items['menu-test/hidden/block/add'] = array( 'title' => 'Add block', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/block/manage/%/%'] = array( 'title' => 'Configure block', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), ); $items['menu-test/hidden/block/manage/%/%/configure'] = array( 'title' => 'Configure block', 'type' => MENU_DEFAULT_LOCAL_TASK, 'context' => MENU_CONTEXT_INLINE, ); $items['menu-test/hidden/block/manage/%/%/delete'] = array( 'title' => 'Delete block', 'page callback' => 'node_page_default', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, 'context' => MENU_CONTEXT_NONE, ); // Breadcrumbs tests. // @see MenuBreadcrumbTestCase $base = array( 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); // Local tasks: Second level below default local task. $items['menu-test/breadcrumb/tasks'] = array( 'title' => 'Breadcrumbs test: Local tasks', ) + $base; $items['menu-test/breadcrumb/tasks/first'] = array( 'title' => 'First', 'type' => MENU_DEFAULT_LOCAL_TASK, ) + $base; $items['menu-test/breadcrumb/tasks/second'] = array( 'title' => 'Second', 'type' => MENU_LOCAL_TASK, ) + $base; $items['menu-test/breadcrumb/tasks/first/first'] = array( 'title' => 'First first', 'type' => MENU_DEFAULT_LOCAL_TASK, ) + $base; $items['menu-test/breadcrumb/tasks/first/second'] = array( 'title' => 'First second', 'type' => MENU_LOCAL_TASK, ) + $base; $items['menu-test/breadcrumb/tasks/second/first'] = array( 'title' => 'Second first', 'type' => MENU_DEFAULT_LOCAL_TASK, ) + $base; $items['menu-test/breadcrumb/tasks/second/second'] = array( 'title' => 'Second second', 'type' => MENU_LOCAL_TASK, ) + $base; // Menu trail tests. // @see MenuTrailTestCase $items['menu-test/menu-trail'] = array( 'title' => 'Menu trail - Case 1', 'page callback' => 'menu_test_menu_trail_callback', 'access arguments' => array('access content'), ); $items['admin/config/development/menu-trail'] = array( 'title' => 'Menu trail - Case 2', 'description' => 'Tests menu_tree_set_path()', 'page callback' => 'menu_test_menu_trail_callback', 'access arguments' => array('access administration pages'), ); $items['menu-test/custom-403-page'] = array( 'title' => 'Custom 403 page', 'page callback' => 'menu_test_custom_403_404_callback', 'access arguments' => array('access content'), ); $items['menu-test/custom-404-page'] = array( 'title' => 'Custom 404 page', 'page callback' => 'menu_test_custom_403_404_callback', 'access arguments' => array('access content'), ); // File inheritance tests. This menu item should inherit the page callback // system_admin_menu_block_page() and therefore render its children as links // on the page. $items['admin/config/development/file-inheritance'] = array( 'title' => 'File inheritance', 'description' => 'Test file inheritance', 'access arguments' => array('access content'), ); $items['admin/config/development/file-inheritance/inherit'] = array( 'title' => 'Inherit', 'description' => 'File inheritance test description', 'page callback' => 'menu_test_callback', 'access arguments' => array('access content'), ); $items['menu_login_callback'] = array( 'title' => 'Used as a login path', 'page callback' => 'menu_login_callback', 'access callback' => TRUE, ); $items['menu-title-test/case1'] = array( 'title' => 'Example title - Case 1', 'access callback' => TRUE, 'page callback' => 'menu_test_callback', ); $items['menu-title-test/case2'] = array( 'title' => 'Example @sub1 - Case @op2', // If '2' is not in quotes, the argument becomes arg(2). 'title arguments' => array('@sub1' => 'title', '@op2' => '2'), 'access callback' => TRUE, 'page callback' => 'menu_test_callback', ); $items['menu-title-test/case3'] = array( 'title' => 'Example title', 'title callback' => 'menu_test_title_callback', 'access callback' => TRUE, 'page callback' => 'menu_test_callback', ); $items['menu-title-test/case4'] = array( // Title gets completely ignored. Good thing, too. 'title' => 'Bike sheds full of blue smurfs', 'title callback' => 'menu_test_title_callback', // If '4' is not in quotes, the argument becomes arg(4). 'title arguments' => array('Example title', '4'), 'access callback' => TRUE, 'page callback' => 'menu_test_callback', ); // Load arguments inheritance test. $items['menu-test/arguments/%menu_test_argument/%'] = array( 'title' => 'Load arguments inheritance test', 'load arguments' => array(3), 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); $items['menu-test/arguments/%menu_test_argument/%/default'] = array( 'title' => 'Default local task', 'type' => MENU_DEFAULT_LOCAL_TASK, ); $items['menu-test/arguments/%menu_test_argument/%/task'] = array( 'title' => 'Local task', 'page callback' => 'menu_test_callback', 'access callback' => TRUE, 'type' => MENU_LOCAL_TASK, ); // For this path, load arguments should be inherited for the first loader only. $items['menu-test/arguments/%menu_test_argument/%menu_test_other_argument/common-loader'] = array( 'title' => 'Local task', 'page callback' => 'menu_test_callback', 'access callback' => TRUE, 'type' => MENU_LOCAL_TASK, ); // For these paths, no load arguments should be inherited. // Not on the same position. $items['menu-test/arguments/%/%menu_test_argument/different-loaders-1'] = array( 'title' => 'An item not sharing the same loader', 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); // Not the same loader. $items['menu-test/arguments/%menu_test_other_argument/%/different-loaders-2'] = array( 'title' => 'An item not sharing the same loader', 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); // Not the same loader. $items['menu-test/arguments/%/%/different-loaders-3'] = array( 'title' => 'An item not sharing the same loader', 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); // Explict load arguments should not be overriden (even if empty). $items['menu-test/arguments/%menu_test_argument/%/explicit-arguments'] = array( 'title' => 'An item defining explicit load arguments', 'load arguments' => array(), 'page callback' => 'menu_test_callback', 'access callback' => TRUE, ); return $items; } /** * Dummy argument loader for hook_menu() to point to. */ function menu_test_argument_load($arg1) { return FALSE; } /** * Dummy argument loader for hook_menu() to point to. */ function menu_test_other_argument_load($arg1) { return FALSE; } /** * Dummy callback for hook_menu() to point to. * * @return * A random string. */ function menu_test_callback() { return 'This is menu_test_callback().'; } /** * Callback that test menu_test_menu_tree_set_path(). */ function menu_test_menu_trail_callback() { $menu_path = variable_get('menu_test_menu_tree_set_path', array()); if (!empty($menu_path)) { menu_tree_set_path($menu_path['menu_name'], $menu_path['path']); } return 'This is menu_test_menu_trail_callback().'; } /** * Implements hook_init(). */ function menu_test_init() { // When requested by one of the MenuTrailTestCase tests, record the initial // active trail during Drupal's bootstrap (before the user is redirected to a // custom 403 or 404 page). See menu_test_custom_403_404_callback(). if (variable_get('menu_test_record_active_trail', FALSE)) { variable_set('menu_test_active_trail_initial', menu_get_active_trail()); } } /** * Callback for our custom 403 and 404 pages. */ function menu_test_custom_403_404_callback() { // When requested by one of the MenuTrailTestCase tests, record the final // active trail now that the user has been redirected to the custom 403 or // 404 page. See menu_test_init(). if (variable_get('menu_test_record_active_trail', FALSE)) { variable_set('menu_test_active_trail_final', menu_get_active_trail()); } return 'This is menu_test_custom_403_404_callback().'; } /** * Page callback to use when testing the theme callback functionality. * * @param $inherited * An optional boolean to set to TRUE when the requested page is intended to * inherit the theme of its parent. * @return * A string describing the requested custom theme and actual theme being used * for the current page request. */ function menu_test_theme_page_callback($inherited = FALSE) { global $theme_key; // Initialize the theme system so that $theme_key will be populated. drupal_theme_initialize(); // Now check both the requested custom theme and the actual theme being used. $custom_theme = menu_get_custom_theme(); $requested_theme = empty($custom_theme) ? 'NONE' : $custom_theme; $output = "Custom theme: $requested_theme. Actual theme: $theme_key."; if ($inherited) { $output .= ' Theme callback inheritance is being tested.'; } return $output; } /** * Theme callback to use when testing the theme callback functionality. * * @param $argument * The argument passed in from the URL. * @return * The name of the custom theme to request for the current page. */ function menu_test_theme_callback($argument) { // Test using the variable administrative theme. if ($argument == 'use-admin-theme') { return variable_get('admin_theme'); } // Test using a theme that exists, but may or may not be enabled. elseif ($argument == 'use-stark-theme') { return 'stark'; } // Test using a theme that does not exist. elseif ($argument == 'use-fake-theme') { return 'fake_theme'; } // For any other value of the URL argument, do not return anything. This // allows us to test that returning nothing from a theme callback function // causes the page to correctly fall back on using the main site theme. } /** * Implement hook_custom_theme(). * * @return * The name of the custom theme to use for the current page. */ function menu_test_custom_theme() { // If an appropriate variable has been set in the database, request the theme // that is stored there. Otherwise, do not attempt to dynamically set the // theme. if ($theme = variable_get('menu_test_hook_custom_theme_name', FALSE)) { return $theme; } } /** * Helper function for the testMenuName() test. Used to change the menu_name * parameter of a menu. * * @param $new_name * If set, will change the menu_name value. * @return * The menu_name value to use. */ function menu_test_menu_name($new_name = '') { static $name = 'original'; if ($new_name) { $name = $new_name; } return $name; } /** * Implements hook_menu_link_insert(). * * @return * A random string. */ function menu_test_menu_link_insert($item) { menu_test_static_variable('insert'); } /** * Implements hook_menu_link_update(). * * @return * A random string. */ function menu_test_menu_link_update($item) { menu_test_static_variable('update'); } /** * Implements hook_menu_link_delete(). * * @return * A random string. */ function menu_test_menu_link_delete($item) { menu_test_static_variable('delete'); } /** * Static function for testing hook results. * * @param $value * The value to set or NULL to return the current value. * @return * A text string for comparison to test assertions. */ function menu_test_static_variable($value = NULL) { static $variable; if (!empty($value)) { $variable = $value; } return $variable; } /** * Implements hook_menu_site_status_alter(). */ function menu_test_menu_site_status_alter(&$menu_site_status, $path) { // Allow access to ?q=menu_login_callback even if in maintenance mode. if ($menu_site_status == MENU_SITE_OFFLINE && $path == 'menu_login_callback') { $menu_site_status = MENU_SITE_ONLINE; } } /** * Menu callback to be used as a login path. */ function menu_login_callback() { return 'This is menu_login_callback().'; } /** * Concatenates a string, by using the t() function and a case number. * * @param $title * Title string. * @param $case_number * The current case number which is tests (defaults to 3). */ function menu_test_title_callback($title, $case_no = 3) { return t($title) . ' - Case ' . $case_no; }
Close