PATH:
var
/
softaculous
/
moodle27
<?php @unlink(__FILE__); //Validate if the request is from Softaculous if($_REQUEST['pass'] != '[[autopass]]'){ die("Unauthorized Access"); } require_once('config.php'); require_once('lib/adminlib.php'); $user_id = (int) '[[user_id]]'; $admins = array(); foreach (explode(',', $CFG->siteadmins) as $admin) { $admin = (int)$admin; if ($admin) { $admins[$admin] = $admin; } } $logstringold = implode(', ', $admins); $admins[$user_id] = $user_id; $logstringnew = implode(', ', $admins); set_config('siteadmins', implode(',', $admins)); add_to_config_log('siteadmins', $logstringold, $logstringnew, 'core'); $ret = array(); $ret['done'] = 1; echo '<add_admin>'.serialize($ret).'</add_admin>'; exit(0);
[-] config.php
[edit]
[+]
php56
[+]
php81
[+]
php53
[-] upgrade.php
[edit]
[-] update_pass.php
[edit]
[+]
..
[-] edit.xml
[edit]
[-] import.php
[edit]
[+]
languages
[-] add_admin.php
[edit]
[-] md5
[edit]
[-] check_utf8.php
[edit]
[-] clone.php
[edit]
[-] install.js
[edit]
[+]
php71
[-] install.php
[edit]
[-] fileindex.php
[edit]
[-] upgrade.xml
[edit]
[-] NOTES.txt
[edit]
[-] edit.php
[edit]
[-] info.xml
[edit]
[-] install.xml
[edit]
[+]
images
[+]
php82