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.147.78.185
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 /
ifk /
web /
prado4.3.2 /
Web /
UI /
[ HOME SHELL ]
Name
Size
Permission
Action
ActiveControls
[ DIR ]
drwxr-xr-x
JuiControls
[ DIR ]
drwxr-xr-x
WebControls
[ DIR ]
drwxr-xr-x
IBindable.php
527
B
-rw-r--r--
IBroadcastEventReceiver.php
941
B
-rw-r--r--
IButtonControl.php
2.5
KB
-rw-r--r--
INamingContainer.php
467
B
-rw-r--r--
IPageStatePersister.php
888
B
-rw-r--r--
IPostBackDataHandler.php
1.28
KB
-rw-r--r--
IPostBackEventHandler.php
830
B
-rw-r--r--
IRenderable.php
618
B
-rw-r--r--
ISurroundable.php
887
B
-rw-r--r--
ITemplate.php
761
B
-rw-r--r--
ITheme.php
621
B
-rw-r--r--
IValidatable.php
830
B
-rw-r--r--
IValidator.php
1.13
KB
-rw-r--r--
TBroadcastEventParameter.php
1.49
KB
-rw-r--r--
TCachePageStatePersister.php
6.17
KB
-rw-r--r--
TClientScriptManager.php
27.57
KB
-rw-r--r--
TClientSideOptions.php
2.24
KB
-rw-r--r--
TCommandEventParameter.php
1.26
KB
-rw-r--r--
TCompositeControl.php
950
B
-rw-r--r--
TCompositeLiteral.php
2.87
KB
-rw-r--r--
TControl.php
55.29
KB
-rw-r--r--
TControlAdapter.php
3.67
KB
-rw-r--r--
TControlCollection.php
2.47
KB
-rw-r--r--
TEmptyControlCollection.php
1.24
KB
-rw-r--r--
TEventContent.php
1.38
KB
-rw-r--r--
TForm.php
4.45
KB
-rw-r--r--
THtmlWriter.php
5.32
KB
-rw-r--r--
TPage.php
35.57
KB
-rw-r--r--
TPageStateFormatter.php
2.69
KB
-rw-r--r--
TPageStatePersister.php
1.66
KB
-rw-r--r--
TSessionPageStatePersister.php
3.93
KB
-rw-r--r--
TSkinTemplate.php
1.38
KB
-rw-r--r--
TTemplate.php
35.29
KB
-rw-r--r--
TTemplateControl.php
9.48
KB
-rw-r--r--
TTemplateControlInheritable.ph...
3.38
KB
-rw-r--r--
TTemplateManager.php
4.2
KB
-rw-r--r--
TTheme.php
10.8
KB
-rw-r--r--
TThemeManager.php
5.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TThemeManager.php
<?php /** * TThemeManager class * * @author Qiang Xue <qiang.xue@gmail.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Web\UI; use Prado\Exceptions\TConfigurationException; use Prado\Exceptions\TInvalidDataValueException; use Prado\Exceptions\TInvalidOperationException; use Prado\Prado; use Prado\Web\Services\TPageService; /** * TThemeManager class * * TThemeManager manages the themes used in a Prado application. * * Themes are stored under the directory specified by the * {@link setBasePath BasePath} property. The themes can be accessed * via URL {@link setBaseUrl BaseUrl}. Each theme is represented by a subdirectory * and all the files under that directory. The name of a theme is the name * of the corresponding subdirectory. * By default, the base path of all themes is a directory named "themes" * under the directory containing the application entry script. * To get a theme (normally you do not need to), call {@link getTheme}. * * TThemeManager may be configured within page service tag in application * configuration file as follows, * <module id="themes" class="Prado\Web\UI\TThemeManager" * BasePath="Application.themes" BaseUrl="/themes" /> * where {@link getCacheExpire CacheExpire}, {@link getCacheControl CacheControl} * and {@link getBufferOutput BufferOutput} are configurable properties of THttpResponse. * * @author Qiang Xue <qiang.xue@gmail.com> * @since 3.0 */ class TThemeManager extends \Prado\TModule { /** * default themes base path */ public const DEFAULT_BASEPATH = 'themes'; /** * default theme class */ public const DEFAULT_THEMECLASS = '\Prado\Web\UI\TTheme'; /** * @var string */ private $_themeClass = self::DEFAULT_THEMECLASS; /** * @var bool whether this module has been initialized */ private $_initialized = false; /** * @var string the directory containing all themes */ private $_basePath; /** * @var string the base URL for all themes */ private $_baseUrl; /** * Initializes the module. * This method is required by IModule and is invoked by application. * @param \Prado\Xml\TXmlElement $config module configuration */ public function init($config) { $this->_initialized = true; $service = $this->getService(); if ($service instanceof TPageService) { $service->setThemeManager($this); } else { throw new TConfigurationException('thememanager_service_unavailable'); } parent::init($config); } /** * @param string $name name of the theme to be retrieved * @return TTheme the theme retrieved */ public function getTheme($name) { $themePath = $this->getBasePath() . DIRECTORY_SEPARATOR . $name; $themeUrl = rtrim($this->getBaseUrl(), '/') . '/' . $name; return Prado::createComponent($this->getThemeClass(), $themePath, $themeUrl); } /** * @param null|string $class Theme class name in namespace format */ public function setThemeClass($class) { $this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string) $class; } /** * @return string Theme class name in namespace format. Defaults to {@link TThemeManager::DEFAULT_THEMECLASS DEFAULT_THEMECLASS}. */ public function getThemeClass() { return $this->_themeClass; } /** * @return array list of available theme names */ public function getAvailableThemes() { $themes = []; $basePath = $this->getBasePath(); $folder = @opendir($basePath); while ($file = @readdir($folder)) { if ($file !== '.' && $file !== '..' && $file !== '.svn' && is_dir($basePath . DIRECTORY_SEPARATOR . $file)) { $themes[] = $file; } } closedir($folder); return $themes; } /** * @throws TConfigurationException if base path is not set and "themes" directory does not exist. * @return string the base path for all themes. It is returned as an absolute path. */ public function getBasePath() { if ($this->_basePath === null) { $this->_basePath = dirname($this->getRequest()->getApplicationFilePath()) . DIRECTORY_SEPARATOR . self::DEFAULT_BASEPATH; if (($basePath = realpath($this->_basePath)) === false || !is_dir($basePath)) { throw new TConfigurationException('thememanager_basepath_invalid2', $this->_basePath); } $this->_basePath = $basePath; } return $this->_basePath; } /** * @param string $value the base path for all themes. It must be in the format of a namespace. * @throws TInvalidDataValueException if the base path is not a proper namespace. */ public function setBasePath($value) { if ($this->_initialized) { throw new TInvalidOperationException('thememanager_basepath_unchangeable'); } else { $this->_basePath = Prado::getPathOfNamespace($value); if ($this->_basePath === null || !is_dir($this->_basePath)) { throw new TInvalidDataValueException('thememanager_basepath_invalid', $value); } } } /** * @throws TConfigurationException If base URL is not set and a correct one cannot be determined by Prado. * @return string the base URL for all themes. */ public function getBaseUrl() { if ($this->_baseUrl === null) { $appPath = dirname($this->getRequest()->getApplicationFilePath()); $basePath = $this->getBasePath(); if (strpos($basePath, $appPath) === false) { throw new TConfigurationException('thememanager_baseurl_required'); } $appUrl = rtrim(dirname($this->getRequest()->getApplicationUrl()), '/\\'); $this->_baseUrl = $appUrl . strtr(substr($basePath, strlen($appPath)), '\\', '/'); } return $this->_baseUrl; } /** * @param string $value the base URL for all themes. */ public function setBaseUrl($value) { $this->_baseUrl = rtrim($value, '/'); } }
Close