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 | : 3.144.227.73
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 /
includes /
[ HOME SHELL ]
Name
Size
Permission
Action
database
[ DIR ]
drwxr-xr-x
filetransfer
[ DIR ]
drwxr-xr-x
actions.inc
13.49
KB
-rw-r--r--
ajax.inc
49.28
KB
-rw-r--r--
archiver.inc
1.66
KB
-rw-r--r--
authorize.inc
13.34
KB
-rw-r--r--
batch.inc
17.09
KB
-rw-r--r--
batch.queue.inc
2.26
KB
-rw-r--r--
bootstrap.inc
118.59
KB
-rw-r--r--
cache-install.inc
2.43
KB
-rw-r--r--
cache.inc
19.95
KB
-rw-r--r--
common.inc
303.4
KB
-rw-r--r--
date.inc
4.4
KB
-rw-r--r--
entity.inc
47.12
KB
-rw-r--r--
errors.inc
10.08
KB
-rw-r--r--
file.inc
88.53
KB
-rw-r--r--
file.mimetypes.inc
23.8
KB
-rw-r--r--
form.inc
194.91
KB
-rw-r--r--
graph.inc
4.71
KB
-rw-r--r--
image.inc
13.1
KB
-rw-r--r--
install.core.inc
77.61
KB
-rw-r--r--
install.inc
43.28
KB
-rw-r--r--
iso.inc
15.21
KB
-rw-r--r--
json-encode.inc
3.11
KB
-rw-r--r--
language.inc
19.02
KB
-rw-r--r--
locale.inc
82.36
KB
-rw-r--r--
lock.inc
9.2
KB
-rw-r--r--
mail.inc
22.69
KB
-rw-r--r--
menu.inc
137.14
KB
-rw-r--r--
module.inc
40.02
KB
-rw-r--r--
pager.inc
22.03
KB
-rw-r--r--
password.inc
9.3
KB
-rw-r--r--
path.inc
20.25
KB
-rw-r--r--
registry.inc
6.35
KB
-rw-r--r--
session.inc
17.93
KB
-rw-r--r--
stream_wrappers.inc
22.63
KB
-rw-r--r--
tablesort.inc
7.27
KB
-rw-r--r--
theme.inc
110.91
KB
-rw-r--r--
theme.maintenance.inc
6.9
KB
-rw-r--r--
token.inc
9.63
KB
-rw-r--r--
unicode.entities.inc
5.36
KB
-rw-r--r--
unicode.inc
22.22
KB
-rw-r--r--
update.inc
57.66
KB
-rw-r--r--
updater.inc
13.35
KB
-rw-r--r--
utility.inc
1.94
KB
-rw-r--r--
xmlrpc.inc
18.39
KB
-rw-r--r--
xmlrpcs.inc
11.02
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tablesort.inc
<?php /** * @file * Functions to aid in the creation of sortable tables. * * All tables created with a call to theme('table') have the option of having * column headers that the user can click on to sort the table by that column. */ /** * Query extender class for tablesort queries. */ class TableSort extends SelectQueryExtender { /** * The array of fields that can be sorted by. * * @var array */ protected $header = array(); public function __construct(SelectQueryInterface $query, DatabaseConnection $connection) { parent::__construct($query, $connection); // Add convenience tag to mark that this is an extended query. We have to // do this in the constructor to ensure that it is set before preExecute() // gets called. $this->addTag('tablesort'); } /** * Order the query based on a header array. * * @see theme_table() * @param $header * Table header array. * @return SelectQueryInterface * The called object. */ public function orderByHeader(Array $header) { $this->header = $header; $ts = $this->init(); if (!empty($ts['sql'])) { // Based on code from db_escape_table(), but this can also contain a dot. $field = preg_replace('/[^A-Za-z0-9_.]+/', '', $ts['sql']); // orderBy() will ensure that only ASC/DESC values are accepted, so we // don't need to sanitize that here. $this->orderBy($field, $ts['sort']); } return $this; } /** * Initializes the table sort context. */ protected function init() { $ts = $this->order(); $ts['sort'] = $this->getSort(); $ts['query'] = $this->getQueryParameters(); return $ts; } /** * Determine the current sort direction. * * @param $headers * An array of column headers in the format described in theme_table(). * @return * The current sort direction ("asc" or "desc"). */ protected function getSort() { return tablesort_get_sort($this->header); } /** * Compose a URL query parameter array to append to table sorting requests. * * @return * A URL query parameter array that consists of all components of the current * page request except for those pertaining to table sorting. * * @see tablesort_get_query_parameters() */ protected function getQueryParameters() { return tablesort_get_query_parameters(); } /** * Determine the current sort criterion. * * @param $headers * An array of column headers in the format described in theme_table(). * @return * An associative array describing the criterion, containing the keys: * - "name": The localized title of the table column. * - "sql": The name of the database field to sort on. */ protected function order() { return tablesort_get_order($this->header); } } /** * Initialize the table sort context. */ function tablesort_init($header) { $ts = tablesort_get_order($header); $ts['sort'] = tablesort_get_sort($header); $ts['query'] = tablesort_get_query_parameters(); return $ts; } /** * Formats a column header. * * If the cell in question is the column header for the current sort criterion, * it gets special formatting. All possible sort criteria become links. * * @param $cell * The cell to format. * @param $header * An array of column headers in the format described in theme_table(). * @param $ts * The current table sort context as returned from tablesort_init(). * * @return * A properly formatted cell, ready for _theme_table_cell(). */ function tablesort_header($cell, $header, $ts) { // Special formatting for the currently sorted column header. if (is_array($cell) && isset($cell['field'])) { $title = t('sort by @s', array('@s' => $cell['data'])); if ($cell['data'] == $ts['name']) { $ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc'); $cell['class'][] = 'active'; $image = theme('tablesort_indicator', array('style' => $ts['sort'])); } else { // If the user clicks a different header, we want to sort ascending initially. $ts['sort'] = 'asc'; $image = ''; } $cell['data'] = l($cell['data'] . $image, $_GET['q'], array('attributes' => array('title' => $title), 'query' => array_merge($ts['query'], array('sort' => $ts['sort'], 'order' => $cell['data'])), 'html' => TRUE)); unset($cell['field'], $cell['sort']); } return $cell; } /** * Formats a table cell. * * Adds a class attribute to all cells in the currently active column. * * @param $cell * The cell to format. * @param $header * An array of column headers in the format described in theme_table(). * @param $ts * The current table sort context as returned from tablesort_init(). * @param $i * The index of the cell's table column. * * @return * A properly formatted cell, ready for _theme_table_cell(). */ function tablesort_cell($cell, $header, $ts, $i) { if (isset($header[$i]['data']) && $header[$i]['data'] == $ts['name'] && !empty($header[$i]['field'])) { if (is_array($cell)) { $cell['class'][] = 'active'; } else { $cell = array('data' => $cell, 'class' => array('active')); } } return $cell; } /** * Composes a URL query parameter array for table sorting links. * * @return * A URL query parameter array that consists of all components of the current * page request except for those pertaining to table sorting. */ function tablesort_get_query_parameters() { return drupal_get_query_parameters($_GET, array('q', 'sort', 'order')); } /** * Determines the current sort criterion. * * @param $headers * An array of column headers in the format described in theme_table(). * * @return * An associative array describing the criterion, containing the keys: * - "name": The localized title of the table column. * - "sql": The name of the database field to sort on. */ function tablesort_get_order($headers) { $order = isset($_GET['order']) ? $_GET['order'] : ''; foreach ($headers as $header) { if (is_array($header)) { if (isset($header['data']) && $order == $header['data']) { $default = $header; break; } if (empty($default) && isset($header['sort']) && ($header['sort'] == 'asc' || $header['sort'] == 'desc')) { $default = $header; } } } if (!isset($default)) { $default = reset($headers); if (!is_array($default)) { $default = array('data' => $default); } } $default += array('data' => NULL, 'field' => NULL); return array('name' => $default['data'], 'sql' => $default['field']); } /** * Determines the current sort direction. * * @param $headers * An array of column headers in the format described in theme_table(). * * @return * The current sort direction ("asc" or "desc"). */ function tablesort_get_sort($headers) { if (isset($_GET['sort'])) { return (strtolower($_GET['sort']) == 'desc') ? 'desc' : 'asc'; } // The user has not specified a sort. Use the default for the currently sorted // header if specified; otherwise use "asc". else { // Find out which header is currently being sorted. $ts = tablesort_get_order($headers); foreach ($headers as $header) { if (is_array($header) && isset($header['data']) && $header['data'] == $ts['name'] && isset($header['sort'])) { return $header['sort']; } } } return 'asc'; }
Close