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.6.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 /
util /
helper /
[ HOME SHELL ]
Name
Size
Permission
Action
tests
[ DIR ]
drwxr-xr-x
async_helper.class.php
13.07
KB
-rw-r--r--
backup_anonymizer_helper.class...
6.69
KB
-rw-r--r--
backup_array_iterator.class.ph...
1.86
KB
-rw-r--r--
backup_cron_helper.class.php
31.87
KB
-rw-r--r--
backup_file_manager.class.php
3.44
KB
-rw-r--r--
backup_general_helper.class.ph...
13.83
KB
-rw-r--r--
backup_helper.class.php
15.7
KB
-rw-r--r--
backup_null_iterator.class.php
1.59
KB
-rw-r--r--
convert_helper.class.php
14.09
KB
-rw-r--r--
restore_decode_content.class.p...
4.98
KB
-rw-r--r--
restore_decode_processor.class...
6.73
KB
-rw-r--r--
restore_decode_rule.class.php
8.35
KB
-rw-r--r--
restore_inforef_parser_process...
2.22
KB
-rw-r--r--
restore_log_rule.class.php
9.82
KB
-rw-r--r--
restore_logs_processor.class.p...
5.74
KB
-rw-r--r--
restore_moodlexml_parser_proce...
2.27
KB
-rw-r--r--
restore_prechecks_helper.class...
9.56
KB
-rw-r--r--
restore_questions_parser_proce...
3.5
KB
-rw-r--r--
restore_roles_parser_processor...
2.54
KB
-rw-r--r--
restore_structure_parser_proce...
4.83
KB
-rw-r--r--
restore_users_parser_processor...
3.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : backup_file_manager.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/>. /** * @package moodlecore * @subpackage backup-helper * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Collection of helper functions to handle files * * This class implements various functions related with moodle storage * handling (get file from storage, put it there...) and some others * to use the zip/unzip facilities. * * Note: It's supposed that, some day, files implementation will offer * those functions without needeing to know storage internals at all. * That day, we'll move related functions here to proper file api ones. * * TODO: Finish phpdocs */ class backup_file_manager { /** * Returns the full path to backup storage base dir */ public static function get_backup_storage_base_dir($backupid) { global $CFG; $backupiddir = make_backup_temp_directory($backupid); return $backupiddir . '/files'; } /** * Given one file content hash, returns the path (relative to filedir) * to the file. */ public static function get_backup_content_file_location($contenthash) { $l1 = $contenthash[0].$contenthash[1]; return "$l1/$contenthash"; } /** * Copy one file from moodle storage to backup storage */ public static function copy_file_moodle2backup($backupid, $filerecorid) { global $DB; if (!backup_controller_dbops::backup_includes_files($backupid)) { // Only include the files if required by the controller. return; } // Normalise param if (!is_object($filerecorid)) { $filerecorid = $DB->get_record('files', array('id' => $filerecorid)); } // Directory, nothing to do if ($filerecorid->filename === '.') { return; } $fs = get_file_storage(); $file = $fs->get_file_instance($filerecorid); // If the file is external file, skip copying. if ($file->is_external_file()) { return; } // Calculate source and target paths (use same subdirs strategy for both) $targetfilepath = self::get_backup_storage_base_dir($backupid) . '/' . self::get_backup_content_file_location($filerecorid->contenthash); // Create target dir if necessary if (!file_exists(dirname($targetfilepath))) { if (!check_dir_exists(dirname($targetfilepath), true, true)) { throw new backup_helper_exception('cannot_create_directory', dirname($targetfilepath)); } } // And copy the file (if doesn't exist already) if (!file_exists($targetfilepath)) { $file->copy_content_to($targetfilepath); } } }
Close