Permet au superadmin de pouvoir recharger "de force" la conf quand il usurpe une identité
This commit is contained in:
parent
19e4739d79
commit
d1b7378534
|
@ -31,5 +31,6 @@ require_once("../class/config.php");
|
||||||
|
|
||||||
setcookie('oldid','',0,'/');
|
setcookie('oldid','',0,'/');
|
||||||
unset($_COOKIE['oldid']);
|
unset($_COOKIE['oldid']);
|
||||||
require_once("main.php");
|
|
||||||
|
Header('Location: /main.php');
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,10 @@
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
if (!$admin->enabled) {
|
if (!$admin->enabled) {
|
||||||
|
if ( ! ( $isinvited && isset($oldid) && !empty($oldid) && $oldid==2000) ) { // Allow sub admins
|
||||||
__("This page is restricted to authorized staff");
|
__("This page is restricted to authorized staff");
|
||||||
exit();
|
exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($L_INOTIFY_UPDATE_DOMAIN)) {
|
if (! isset($L_INOTIFY_UPDATE_DOMAIN)) {
|
||||||
|
|
|
@ -45,7 +45,6 @@ if (!$charset) $charset="UTF-8";
|
||||||
<script src="js/alternc.js" type="text/javascript" ></script>
|
<script src="js/alternc.js" type="text/javascript" ></script>
|
||||||
<script src="js/jquery.min.js" type="text/javascript"></script>
|
<script src="js/jquery.min.js" type="text/javascript"></script>
|
||||||
<script src="js/jquery_ui/js/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
|
<script src="js/jquery_ui/js/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
|
||||||
<script src="js/passwordStrengthMeter.js" type="text/javascript"></script>
|
|
||||||
<?php
|
<?php
|
||||||
$lang_date_picker="js/jquery_ui/js/jquery.ui.datepicker-".substr($lang,0,2).".js";
|
$lang_date_picker="js/jquery_ui/js/jquery.ui.datepicker-".substr($lang,0,2).".js";
|
||||||
if (file_exists($lang_date_picker))
|
if (file_exists($lang_date_picker))
|
||||||
|
@ -57,7 +56,8 @@ if (file_exists($lang_date_picker))
|
||||||
|
|
||||||
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
|
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
|
||||||
echo "<div align=center><p class='error'>";
|
echo "<div align=center><p class='error'>";
|
||||||
__("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>");
|
__("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>.");
|
||||||
|
if ($oldid == 2000) echo ' '._("You can also <a href='adm_update_domains.php'>apply changes</a>."); // Yes, hardcoded uid. We will rewrite permissions another day
|
||||||
echo "</p></div>";
|
echo "</p></div>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue