Cosmetic around the force relead feature

This commit is contained in:
Alan Garcia 2013-01-29 07:44:01 +00:00
parent e173035f43
commit e14c9d6c01
2 changed files with 7 additions and 2 deletions

View File

@ -34,6 +34,11 @@ if (!$admin->enabled) {
exit();
}
if (! isset($L_INOTIFY_UPDATE_DOMAIN)) {
__("Missing INOTIFY_UPDATE_DOMAIN var in /etc/alternc/local/sh . Fix it!");
die();
}
touch($L_INOTIFY_UPDATE_DOMAIN);
Header('Location: /main.php');

View File

@ -40,8 +40,8 @@ if ($mem->checkRight()) { ?>
<li><a href="adm_panel.php"><span style="color: red;"><?php __("Admin Control Panel"); ?></span></a></li>
<li><a href="/alternc-sql/"><span style="color: red;"><?php __("General PhpMyAdmin"); ?></span></a></li>
<li><a href="alternc_debugme.php?enable=<?php echo $debug_alternc->status?"0":"1"; ?>"><span style="color: red;"><?php if ($debug_alternc->status) __("Switch debug Off"); else __("Switch debug On"); ?></span></a></li>
<?php if ( file_exists($L_INOTIFY_UPDATE_DOMAIN) ) { ?>
<li><a href='javascript:alert("<?php __("Reload allready in progress"); ?>");'><span style="color: red;"><?php __("Reload in progress..."); ?></span></a></li>
<?php if ( empty($L_INOTIFY_UPDATE_DOMAIN) || file_exists("$L_INOTIFY_UPDATE_DOMAIN") ) { ?>
<li><a href='javascript:alert("<?php __("Reload already in progress"); ?>");'><span style="color: red;"><?php __("Reload in progress..."); ?></span></a></li>
<?php } else { // file L_INOTIFY_UPDATE_DOMAIN don't exist ?>
<li><a href="/adm_update_domains.php"><span style="color: red;"><?php __("Force a reload"); ?></span></a></li>
<?php } // file exist L_INOTIFY_UPDATE_DOMAIN ?>