<?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);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
NOTES.txt | File | 1.93 KB | 0644 |
|
add_admin.php | File | 733 B | 0644 |
|
check_utf8.php | File | 5.88 KB | 0644 |
|
clone.php | File | 5.5 KB | 0644 |
|
config.php | File | 745 B | 0644 |
|
edit.php | File | 4.63 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
extend.php | File | 12.44 KB | 0644 |
|
fileindex.php | File | 947 B | 0644 |
|
get_plugin_list.php | File | 766 B | 0644 |
|
import.php | File | 7.08 KB | 0644 |
|
info.xml | File | 3.56 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 11.17 KB | 0644 |
|
install.xml | File | 3.24 KB | 0644 |
|
md5 | File | 4.02 KB | 0644 |
|
privatekey.php | File | 975 B | 0644 |
|
update_pass.php | File | 541 B | 0644 |
|
upgrade.php | File | 9.45 KB | 0644 |
|
upgrade.xml | File | 307 B | 0644 |
|