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.117.119.34
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 : TFeedService.php
<?php /** * TFeedService and TFeed class file * * @author Qiang Xue <qiang.xue@gmail.com> * @author Knut Urdalen <knut.urdalen@gmail.com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Web\Services; use Prado\Prado; use Prado\TApplication; use Prado\Exceptions\TConfigurationException; use Prado\Exceptions\THttpException; /** * TFeedService class * * TFeedService provides to end-users feed content. * * TFeedService manages a set of feeds. The service parameter, referring * to the ID of the feed, specifies which feed content to be provided to end-users. * * To use TFeedService, configure it in application configuration as follows, * <code> * <service id="feed" class="Prado\Web\Services\TFeedService"> * <feed id="ch1" class="Path\To\FeedClass1" .../> * <feed id="ch2" class="Path\To\FeedClass2" .../> * <feed id="ch3" class="Path\To\FeedClass3" .../> * </service> * </code> * where each <feed> element specifies a feed identified by its "id" value (case-sensitive). * * PHP configuration style: * <code> * array( * 'feed' => array( * 'ch1' => array( * 'class' => 'Path\To\FeedClass1', * 'properties' => array( * ... * ), * ), * ) * </code> * * The class attribute indicates which PHP class will provide the actual feed * content. Note, the class must implement {@link IFeedContentProvider} interface. * Other initial properties for the feed class may also be specified in the * corresponding <feed> element. * * To retrieve the feed content identified by "ch2", use the URL * <code>/path/to/index.php?feed=ch2</code> * * @author Qiang Xue <qiang.xue@gmail.com> * @author Knut Urdalen <knut.urdalen@gmail.com> * @author Carl G. Mathisen <carlgmathisen@gmail.com> * @since 3.1 */ class TFeedService extends \Prado\TService { private $_feeds = []; /** * Initializes this module. * This method is required by the IModule interface. * @param mixed $config configuration for this module, can be null */ public function init($config) { if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) { if (is_array($config)) { foreach ($config as $id => $feed) { $this->_feeds[$id] = $feed; } } } else { foreach ($config->getElementsByTagName('feed') as $feed) { if (($id = $feed->getAttributes()->remove('id')) !== null) { $this->_feeds[$id] = $feed; } else { throw new TConfigurationException('feedservice_id_required'); } } } } /** * @return string the requested feed path */ protected function determineRequestedFeedPath() { return $this->getRequest()->getServiceParameter(); } /** * Runs the service. * This method is invoked by application automatically. */ public function run() { $id = $this->getRequest()->getServiceParameter(); if (isset($this->_feeds[$id])) { $feedConfig = $this->_feeds[$id]; $properties = []; $feed = null; if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) { if (isset($feedConfig['class'])) { $feed = Prado::createComponent($feedConfig['class']); if ($feed instanceof IFeedContentProvider) { $properties = $feedConfig['properties'] ?? []; } else { throw new TConfigurationException('jsonservice_response_type_invalid', $id); } } else { throw new TConfigurationException('jsonservice_class_required', $id); } } else { $properties = $feedConfig->getAttributes(); if (($class = $properties->remove('class')) !== null) { $feed = Prado::createComponent($class); if (!($feed instanceof IFeedContentProvider)) { throw new TConfigurationException('feedservice_feedtype_invalid', $id); } } else { throw new TConfigurationException('feedservice_class_required', $id); } } // init feed properties foreach ($properties as $name => $value) { /** @var \Prado\TComponent $feed */ $feed->setSubproperty($name, $value); } $feed->init($feedConfig); $content = $feed->getFeedContent(); //$this->getResponse()->setContentType('application/rss+xml'); $this->getResponse()->setContentType($feed->getContentType()); $this->getResponse()->write($content); } else { throw new THttpException(404, 'feedservice_feed_unknown', $id); } } }
Close