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 | : 18.217.242.39
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 : TRpcClient.php
<?php /** * @author Robin J. Rogge <rrogge@bigpoint.net> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE * @since 3.2 */ namespace Prado\Util; use Prado\Exceptions\TApplicationException; use Prado\TPropertyValue; /** * TRpcClient class * * Note: When using setIsNotification(true), *every* following request is also * considered to be a notification until you use setIsNotification(false). * * Usage: * * First, you can use the factory: * <pre> * $_rpcClient = TRpcClient::create('xml', 'http://host/server'); * $_result = $_rpcClient->remoteMethodName($param, $otherParam); * </pre> * * or as oneliner: * <pre> * $_result = TRpcClient::create('json', 'http://host/server')->remoteMethod($param, ...); * </pre> * * Second, you can also use the specific implementation directly: * <pre> * $_rpcClient = new TXmlRpcClient('http://host/server'); * $_result = $_rpcClient->remoteMethod($param, ...); * </pre> * * or as oneliner: * <pre> * $_result = TXmlRpcClient('http://host/server')->hello(); * </pre> * * @author Robin J. Rogge <rrogge@bigpoint.net> * @since 3.2 */ class TRpcClient extends \Prado\TApplicationComponent { /** * @var string url of the RPC server */ private $_serverUrl; /** * @var bool whether the request is a notification and therefore should not care about the result (default: false) */ private $_isNotification = false; // magics /** * @param string $serverUrl url to RPC server * @param bool $isNotification whether requests are considered to be notifications (completely ignoring the response) (default: false) */ public function __construct($serverUrl, $isNotification = false) { $this->_serverUrl = $serverUrl; $this->_isNotification = TPropertyValue::ensureBoolean($isNotification); parent::__construct(); } // methods /** * Creates an instance of the requested RPC client type * @param mixed $type * @param mixed $serverUrl * @param mixed $isNotification * @throws TApplicationException if an unsupported RPC client type was specified * @return TRpcClient instance */ public static function create($type, $serverUrl, $isNotification = false) { if (($_handler = constant('TRpcClientTypesEnumerable::' . strtoupper($type))) === null) { throw new TApplicationException('rpcclient_unsupported_handler'); } return new $_handler($serverUrl, $isNotification); } /** * Creates a stream context resource * @param mixed $content * @param string $contentType mime type */ protected function createStreamContext($content, $contentType) { return stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => "Content-Type: {$contentType}", 'content' => $content ] ]); } /** * Performs the actual request * @param string $serverUrl RPC server URL * @param array $payload payload data * @param string $mimeType request mime type */ protected function performRequest($serverUrl, $payload, $mimeType) { if (($_response = @file_get_contents($serverUrl, false, $this->createStreamContext($payload, $mimeType))) === false) { throw new TRpcClientRequestException('Request failed ("' . $http_response_header[0] . '")'); } return $_response; } // getter/setter /** * @return bool whether requests are considered to be notifications (completely ignoring the response) */ public function getIsNotification() { return $this->_isNotification; } /** * @param string $bool boolean whether the requests are considered to be notifications (completely ignoring the response) (default: false) */ public function setIsNotification($bool) { $this->_isNotification = TPropertyValue::ensureBoolean($bool); } /** * @return string url of the RPC server */ public function getServerUrl() { return $this->_serverUrl; } /** * @param string $value url of the RPC server */ public function setServerUrl($value) { $this->_serverUrl = $value; } }
Close