+
|
'.
+ if (!isset($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) {
+ $_SESSION['admin_auth'] = false;
+ require(JIRAFEAU_ROOT . 'lib/template/header.php');
+ echo ' '.
t('Sorry, you are not authenticated on admin interface.') .
' ';
- require (JIRAFEAU_ROOT.'lib/template/footer.php');
- exit;
+ require(JIRAFEAU_ROOT.'lib/template/footer.php');
+ exit;
}
/* Operations may take a long time.
@@ -141,14 +131,12 @@ else
@error_reporting(0);
/* Show admin interface if not downloading a file. */
- if (!(isset ($_POST['action']) && strcmp ($_POST['action'], 'download') == 0))
- {
- require (JIRAFEAU_ROOT . 'lib/template/header.php');
- ?>(version ) |