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.129.63.214
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 /
Util /
[ HOME SHELL ]
Name
Size
Permission
Action
Behaviors
[ DIR ]
drwxr-xr-x
Cron
[ DIR ]
drwxr-xr-x
IBaseBehavior.php
957
B
-rw-r--r--
IBehavior.php
957
B
-rw-r--r--
IClassBehavior.php
1.43
KB
-rw-r--r--
IDbModule.php
959
B
-rw-r--r--
IDynamicMethods.php
618
B
-rw-r--r--
IInstanceCheck.php
1.35
KB
-rw-r--r--
IPluginModule.php
531
B
-rw-r--r--
TBehavior.php
2.41
KB
-rw-r--r--
TBehaviorsModule.php
7.83
KB
-rw-r--r--
TBrowserLogRoute.php
4.75
KB
-rw-r--r--
TCallChain.php
6.08
KB
-rw-r--r--
TClassBehavior.php
852
B
-rw-r--r--
TClassBehaviorEventParameter.p...
1.81
KB
-rw-r--r--
TDataFieldAccessor.php
3.38
KB
-rw-r--r--
TDbLogRoute.php
6.08
KB
-rw-r--r--
TDbParameterModule.php
22.81
KB
-rw-r--r--
TDbPluginModule.php
2.88
KB
-rw-r--r--
TEmailLogRoute.php
3.66
KB
-rw-r--r--
TFileLogRoute.php
4.09
KB
-rw-r--r--
TFirePhpLogRoute.php
2.96
KB
-rw-r--r--
TFirebugLogRoute.php
3.81
KB
-rw-r--r--
TJsonRpcClient.php
2.47
KB
-rw-r--r--
TLogRoute.php
4.82
KB
-rw-r--r--
TLogRouter.php
5.18
KB
-rw-r--r--
TLogger.php
8.32
KB
-rw-r--r--
TParameterModule.php
5.45
KB
-rw-r--r--
TPluginModule.php
4.84
KB
-rw-r--r--
TRpcClient.php
3.91
KB
-rw-r--r--
TRpcClientRequestException.php
590
B
-rw-r--r--
TRpcClientResponseException.ph...
725
B
-rw-r--r--
TRpcClientTypesEnumerable.php
458
B
-rw-r--r--
TSimpleDateFormatter.php
8.86
KB
-rw-r--r--
TUtf8Converter.php
1.34
KB
-rw-r--r--
TVarDumper.php
3.43
KB
-rw-r--r--
TXmlRpcClient.php
2.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TParameterModule.php
<?php /** * TParameterModule 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\Util; use Prado\Caching\TFileCacheDependency; use Prado\Exceptions\TConfigurationException; use Prado\Exceptions\TInvalidOperationException; use Prado\Prado; use Prado\TApplication; use Prado\Xml\TXmlDocument; use Prado\Xml\TXmlElement; /** * TParameterModule class * * TParameterModule enables loading application parameters from external * storage other than the application configuration. * To load parameters from an XML file, configure the module by setting * its {@link setParameterFile ParameterFile} property. * Note, the property only accepts a file path in namespace format with * file extension being '.xml'. The file format is as follows, which is * similar to the parameter portion in an application configuration, * <code> * <parameters> * <parameter id="param1" value="paramValue1" /> * <parameter id="param2" Property1="Value1" Property2="Value2" ... /> * <parameter id="param3" Class="MyDataObject" Property1="Value1" Property2="Value2" ... /> * </parameters> * </code> * * In addition, any content enclosed within the module tag is also treated * as parameters, e.g., * <code> * <module class="Prado\Util\TParameterModule"> * <parameter id="param1" value="paramValue1" /> * <parameter id="param2" Property1="Value1" Property2="Value2" ... /> * <parameter id="param3" Class="MyDataObject" Property1="Value1" Property2="Value2" ... /> * </module> * </code> * * If a parameter is defined both in the external file and within the module * tag, the former takes precedence. * * When a parameter has an Class Attribute, the parameter is instanced as an object * of the specified class and the attribute=value pairs are then set on the object. * * @author Qiang Xue <qiang.xue@gmail.com> * @author Carl G. Mathisen <carlgmathisen@gmail.com> * @since 3.0 */ class TParameterModule extends \Prado\TModule { private $_initialized = false; private $_paramFile; /** * Initializes the module by loading parameters. * @param mixed $config content enclosed within the module tag */ public function init($config) { $this->loadParameters($config); if ($this->_paramFile !== null) { $configFile = null; if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_XML && ($cache = $this->getApplication()->getCache()) !== null) { $cacheKey = 'TParameterModule:' . $this->_paramFile; if (($configFile = $cache->get($cacheKey)) === false) { $configFile = new TXmlDocument(); $configFile->loadFromFile($this->_paramFile); $cache->set($cacheKey, $configFile, 0, new TFileCacheDependency($this->_paramFile)); } } else { if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) { $configFile = include $this->_paramFile; } else { $configFile = new TXmlDocument(); $configFile->loadFromFile($this->_paramFile); } } $this->loadParameters($configFile); } $this->_initialized = true; parent::init($config); } /** * Loads parameters into application. * @param mixed $config XML of PHP representation of the parameters * @throws TConfigurationException if the parameter file format is invalid */ protected function loadParameters($config) { $parameters = []; if (is_array($config)) { foreach ($config as $id => $parameter) { if (is_array($parameter) && isset($parameter['class'])) { $properties = $parameter['properties'] ?? []; $parameters[$id] = [$parameter['class'], $properties]; } else { $parameters[$id] = $parameter; } } } elseif ($config instanceof TXmlElement) { foreach ($config->getElementsByTagName('parameter') as $node) { $properties = $node->getAttributes(); if (($id = $properties->remove('id')) === null) { throw new TConfigurationException('parametermodule_parameterid_required'); } if (($type = $properties->remove('class')) === null) { if (($value = $properties->remove('value')) === null) { $parameters[$id] = $node; } else { $parameters[$id] = $value; } } else { $parameters[$id] = [$type, $properties->toArray()]; } } } $appParams = $this->getApplication()->getParameters(); foreach ($parameters as $id => $parameter) { if (is_array($parameter)) { $component = Prado::createComponent($parameter[0]); foreach ($parameter[1] as $name => $value) { $component->setSubProperty($name, $value); } $component->dyInit(null); $appParams->add($id, $component); } else { $appParams->add($id, $parameter); } } } /** * @return string the parameter file path */ public function getParameterFile() { return $this->_paramFile; } /** * @param string $value the parameter file path. It must be in namespace format * and the file extension is '.xml'. * @throws TInvalidOperationException if the module is initialized * @throws TConfigurationException if the file is invalid */ public function setParameterFile($value) { if ($this->_initialized) { throw new TInvalidOperationException('parametermodule_parameterfile_unchangeable'); } elseif (($this->_paramFile = Prado::getPathOfNamespace($value, $this->getApplication()->getConfigurationFileExt())) === null || !is_file($this->_paramFile)) { throw new TConfigurationException('parametermodule_parameterfile_invalid', $value); } } }
Close