Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
includes /
Delete
Unzip
Name
Size
Permission
Date
Action
actions.inc
14.34
KB
-rw-r--r--
2014-12-11 05:44
batch.inc
11.21
KB
-rw-r--r--
2014-12-11 05:44
bootstrap.inc
45.69
KB
-rw-r--r--
2014-12-11 05:44
cache-install.inc
700
B
-rw-r--r--
2014-12-11 05:44
cache.inc
7.04
KB
-rw-r--r--
2014-12-11 05:44
common.inc
130.73
KB
-rw-r--r--
2014-12-11 05:44
database.inc
21.35
KB
-rw-r--r--
2014-12-11 05:44
database.mysql-common.inc
15.17
KB
-rw-r--r--
2014-12-11 05:44
database.mysql.inc
10.81
KB
-rw-r--r--
2014-12-11 05:44
database.mysqli.inc
10.97
KB
-rw-r--r--
2014-12-11 05:44
database.pgsql.inc
26.56
KB
-rw-r--r--
2014-12-11 05:44
file.inc
56.49
KB
-rw-r--r--
2019-10-08 10:17
form.inc
94.98
KB
-rw-r--r--
2019-10-08 10:26
image.gd.inc
6.13
KB
-rw-r--r--
2014-12-11 05:44
image.inc
8.35
KB
-rw-r--r--
2014-12-11 05:44
install.inc
22
KB
-rw-r--r--
2014-12-11 05:44
install.mysql.inc
4.91
KB
-rw-r--r--
2014-12-11 05:44
install.mysqli.inc
5.03
KB
-rw-r--r--
2014-12-11 05:44
install.pgsql.inc
5.51
KB
-rw-r--r--
2014-12-11 05:44
language.inc
4.35
KB
-rw-r--r--
2014-12-11 05:44
locale.inc
95.76
KB
-rw-r--r--
2014-12-11 05:44
lock-install.inc
1.23
KB
-rw-r--r--
2014-12-11 05:44
lock.inc
7.72
KB
-rw-r--r--
2014-12-11 05:44
mail.inc
17.56
KB
-rw-r--r--
2014-12-11 05:44
menu.inc
87.69
KB
-rw-r--r--
2014-12-11 05:44
module.inc
16.83
KB
-rw-r--r--
2014-12-11 05:44
pager.inc
14.45
KB
-rw-r--r--
2014-12-11 05:44
path.inc
7.9
KB
-rw-r--r--
2014-12-11 05:44
session.inc
7.45
KB
-rw-r--r--
2014-12-11 05:44
tablesort.inc
6
KB
-rw-r--r--
2014-12-11 05:44
theme.inc
69.52
KB
-rw-r--r--
2014-12-11 05:44
theme.maintenance.inc
11.16
KB
-rw-r--r--
2014-12-11 05:44
unicode.entities.inc
5.36
KB
-rw-r--r--
2014-12-11 05:44
unicode.inc
17.23
KB
-rw-r--r--
2019-10-08 10:17
xmlrpc.inc
15.37
KB
-rw-r--r--
2014-12-11 05:44
xmlrpcs.inc
9.22
KB
-rw-r--r--
2014-12-11 05:44
Save
Rename
<?php /** * @file * Functions to handle paths in Drupal, including path aliasing. * * These functions are not loaded for cached pages, but modules that need * to use them in hook_init() or hook exit() can make them available, by * executing "drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);". */ /** * Initialize the $_GET['q'] variable to the proper normal path. */ function drupal_init_path() { if (!empty($_GET['q'])) { $_GET['q'] = drupal_get_normal_path(trim($_GET['q'], '/')); } else { $_GET['q'] = drupal_get_normal_path(variable_get('site_frontpage', 'node')); } } /** * Given an alias, return its Drupal system URL if one exists. Given a Drupal * system URL return one of its aliases if such a one exists. Otherwise, * return FALSE. * * @param $action * One of the following values: * - wipe: delete the alias cache. * - alias: return an alias for a given Drupal system path (if one exists). * - source: return the Drupal system URL for a path alias (if one exists). * @param $path * The path to investigate for corresponding aliases or system URLs. * @param $path_language * Optional language code to search the path with. Defaults to the page language. * If there's no path defined for that language it will search paths without * language. * * @return * Either a Drupal system path, an aliased path, or FALSE if no path was * found. */ function drupal_lookup_path($action, $path = '', $path_language = '') { global $language; // $map is an array with language keys, holding arrays of Drupal paths to alias relations static $map = array(), $no_src = array(), $count; $path_language = $path_language ? $path_language : $language->language; // Use $count to avoid looking up paths in subsequent calls if there simply are no aliases if (!isset($count)) { $count = db_result(db_query('SELECT COUNT(pid) FROM {url_alias}')); } if ($action == 'wipe') { $map = array(); $no_src = array(); $count = NULL; } elseif ($count > 0 && $path != '') { if ($action == 'alias') { if (isset($map[$path_language][$path])) { return $map[$path_language][$path]; } // Get the most fitting result falling back with alias without language $alias = db_result(db_query("SELECT dst FROM {url_alias} WHERE src = '%s' AND language IN('%s', '') ORDER BY language DESC, pid DESC", $path, $path_language)); $map[$path_language][$path] = $alias; return $alias; } // Check $no_src for this $path in case we've already determined that there // isn't a path that has this alias elseif ($action == 'source' && !isset($no_src[$path_language][$path])) { // Look for the value $path within the cached $map $src = FALSE; if (!isset($map[$path_language]) || !($src = array_search($path, $map[$path_language]))) { // Get the most fitting result falling back with alias without language if ($src = db_result(db_query("SELECT src FROM {url_alias} WHERE dst = '%s' AND language IN('%s', '') ORDER BY language DESC, pid DESC", $path, $path_language))) { $map[$path_language][$src] = $path; } else { // We can't record anything into $map because we do not have a valid // index and there is no need because we have not learned anything // about any Drupal path. Thus cache to $no_src. $no_src[$path_language][$path] = TRUE; } } return $src; } } return FALSE; } /** * Given an internal Drupal path, return the alias set by the administrator. * * @param $path * An internal Drupal path. * @param $path_language * An optional language code to look up the path in. * * @return * An aliased path if one was found, or the original path if no alias was * found. */ function drupal_get_path_alias($path, $path_language = '') { $result = $path; if ($alias = drupal_lookup_path('alias', $path, $path_language)) { $result = $alias; } return $result; } /** * Given a path alias, return the internal path it represents. * * @param $path * A Drupal path alias. * @param $path_language * An optional language code to look up the path in. * * @return * The internal path represented by the alias, or the original alias if no * internal path was found. */ function drupal_get_normal_path($path, $path_language = '') { $result = $path; if ($src = drupal_lookup_path('source', $path, $path_language)) { $result = $src; } if (function_exists('custom_url_rewrite_inbound')) { // Modules may alter the inbound request path by reference. custom_url_rewrite_inbound($result, $path, $path_language); } return $result; } /** * Return a component of the current Drupal path. * * When viewing a page at the path "admin/content/types", for example, arg(0) * would return "admin", arg(1) would return "content", and arg(2) would return * "types". * * Avoid use of this function where possible, as resulting code is hard to read. * Instead, attempt to use named arguments in menu callback functions. See the * explanation in menu.inc for how to construct callbacks that take arguments. * * @param $index * The index of the component, where each component is separated by a '/' * (forward-slash), and where the first component has an index of 0 (zero). * @param $path * A path to break into components. Defaults to the path of the current page. * * @return * The component specified by $index, or NULL if the specified component was * not found. If called without arguments, it returns an array containing all * the components of the current path. */ function arg($index = NULL, $path = NULL) { static $arguments; if (!isset($path)) { $path = $_GET['q']; } if (!isset($arguments[$path])) { $arguments[$path] = explode('/', $path); } if (!isset($index)) { return $arguments[$path]; } if (isset($arguments[$path][$index])) { return $arguments[$path][$index]; } } /** * Get the title of the current page, for display on the page and in the title bar. * * @return * The current page's title. */ function drupal_get_title() { $title = drupal_set_title(); // during a bootstrap, menu.inc is not included and thus we cannot provide a title if (!isset($title) && function_exists('menu_get_active_title')) { $title = check_plain(menu_get_active_title()); } return $title; } /** * Set the title of the current page, for display on the page and in the title bar. * * @param $title * Optional string value to assign to the page title; or if set to NULL * (default), leaves the current title unchanged. * * @return * The updated title of the current page. */ function drupal_set_title($title = NULL) { static $stored_title; if (isset($title)) { $stored_title = $title; } return $stored_title; } /** * Check if the current page is the front page. * * @return * Boolean value: TRUE if the current page is the front page; FALSE if otherwise. */ function drupal_is_front_page() { static $is_front_page; if (!isset($is_front_page)) { // As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path, // we can check it against the 'site_frontpage' variable. $is_front_page = ($_GET['q'] == drupal_get_normal_path(variable_get('site_frontpage', 'node'))); } return $is_front_page; } /** * Check if a path matches any pattern in a set of patterns. * * @param $path * The path to match. * @param $patterns * String containing a set of patterns separated by \n, \r or \r\n. * * @return * 1 if there is a match, 0 if there is not a match. */ function drupal_match_path($path, $patterns) { static $regexps; if (!isset($regexps[$patterns])) { $regexps[$patterns] = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($patterns, '/')) .')$/'; } return preg_match($regexps[$patterns], $path); }