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.69.17.165
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
tests
[ DIR ]
drwxr-xr-x
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--
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 : backup_qtype_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 backup_qtype_plugin class * * @package core_backup * @subpackage moodle2 * @category backup * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Class extending standard backup_plugin in order to implement some * helper methods related with the questions (qtype plugin) * * TODO: Finish phpdocs */ abstract class backup_qtype_plugin extends backup_plugin { /** * Attach to $element (usually questions) the needed backup structures * for question_answers for a given question * Used by various qtypes (calculated, essay, multianswer, * multichoice, numerical, shortanswer, truefalse) */ protected function add_question_question_answers($element) { // Check $element is one nested_backup_element if (! $element instanceof backup_nested_element) { throw new backup_step_exception('question_answers_bad_parent_element', $element); } // Define the elements $answers = new backup_nested_element('answers'); $answer = new backup_nested_element('answer', array('id'), array( 'answertext', 'answerformat', 'fraction', 'feedback', 'feedbackformat')); // Build the tree $element->add_child($answers); $answers->add_child($answer); // Set the sources $answer->set_source_table('question_answers', array('question' => backup::VAR_PARENTID), 'id ASC'); // Aliases $answer->set_source_alias('answer', 'answertext'); // don't need to annotate ids nor files } /** * Attach to $element (usually questions) the needed backup structures * for question_numerical_units for a given question * Used both by calculated and numerical qtypes */ protected function add_question_numerical_units($element) { // Check $element is one nested_backup_element if (! $element instanceof backup_nested_element) { throw new backup_step_exception('question_numerical_units_bad_parent_element', $element); } // Define the elements $units = new backup_nested_element('numerical_units'); $unit = new backup_nested_element('numerical_unit', array('id'), array( 'multiplier', 'unit')); // Build the tree $element->add_child($units); $units->add_child($unit); // Set the sources $unit->set_source_table('question_numerical_units', array('question' => backup::VAR_PARENTID), 'id ASC'); // don't need to annotate ids nor files } /** * Attach to $element (usually questions) the needed backup structures * for question_numerical_options for a given question * Used both by calculated and numerical qtypes */ protected function add_question_numerical_options($element) { // Check $element is one nested_backup_element if (! $element instanceof backup_nested_element) { throw new backup_step_exception('question_numerical_options_bad_parent_element', $element); } // Define the elements $options = new backup_nested_element('numerical_options'); $option = new backup_nested_element('numerical_option', array('id'), array( 'showunits', 'unitsleft', 'unitgradingtype', 'unitpenalty')); // Build the tree $element->add_child($options); $options->add_child($option); // Set the sources $option->set_source_table('question_numerical_options', array('question' => backup::VAR_PARENTID)); // don't need to annotate ids nor files } /** * Attach to $element (usually questions) the needed backup structures * for question_datasets for a given question * Used by calculated qtypes */ protected function add_question_datasets($element) { // Check $element is one nested_backup_element if (! $element instanceof backup_nested_element) { throw new backup_step_exception('question_datasets_bad_parent_element', $element); } // Define the elements $definitions = new backup_nested_element('dataset_definitions'); $definition = new backup_nested_element('dataset_definition', array('id'), array( 'category', 'name', 'type', 'options', 'itemcount')); $items = new backup_nested_element('dataset_items'); $item = new backup_nested_element('dataset_item', array('id'), array( 'number', 'value')); // Build the tree $element->add_child($definitions); $definitions->add_child($definition); $definition->add_child($items); $items->add_child($item); // Set the sources $definition->set_source_sql('SELECT qdd.* FROM {question_dataset_definitions} qdd JOIN {question_datasets} qd ON qd.datasetdefinition = qdd.id WHERE qd.question = ?', array(backup::VAR_PARENTID)); $item->set_source_table('question_dataset_items', array('definition' => backup::VAR_PARENTID)); // Aliases $item->set_source_alias('itemnumber', 'number'); // don't need to annotate ids nor files } /** * Returns all the components and fileareas used by all the installed qtypes * * The method introspects each qtype, asking it about fileareas used. Then, * one 2-level array is returned. 1st level is the component name (qtype_xxxx) * and 2nd level is one array of filearea => mappings to look * * Note that this function is used both in backup and restore, so it is important * to use the same mapping names (usually, name of the table in singular) always * * TODO: Surely this can be promoted to backup_plugin easily and make it to * work for ANY plugin, not only qtypes (but we don't need it for now) */ public static function get_components_and_fileareas($filter = null) { $components = array(); // Get all the plugins of this type $qtypes = core_component::get_plugin_list('qtype'); foreach ($qtypes as $name => $path) { // Apply filter if specified if (!is_null($filter) && $filter != $name) { continue; } // Calculate the componentname $componentname = 'qtype_' . $name; // Get the plugin fileareas (all them MUST belong to the same component) $classname = 'backup_qtype_' . $name . '_plugin'; if (class_exists($classname)) { $elements = call_user_func(array($classname, 'get_qtype_fileareas')); if ($elements) { // If there are elements, add them to $components $components[$componentname] = $elements; } } } return $components; } /** * Returns one array with filearea => mappingname elements for the qtype * * Used by {@link get_components_and_fileareas} to know about all the qtype * files to be processed both in backup and restore. */ public static function get_qtype_fileareas() { // By default, return empty array, only qtypes having own fileareas will override this return array(); } }
Close