X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/a56e619e35fe4747a1db3fb17f88b7693f5c37e0..84a4575bf1b0c6709f71b3c5a862c17d21747569:/admin.php diff --git a/admin.php b/admin.php index 555e76a..a0ae04b 100644 --- a/admin.php +++ b/admin.php @@ -53,7 +53,7 @@ if (isset ($_POST['action']) && (strcmp ($_POST['action'], 'logout') == 0)) /* Check classic admin password authentification. */ if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user'])) { - if (strcmp ($cfg['admin_password'], $_POST['admin_password']) == 0) + if ($cfg['admin_password'] === $_POST['admin_password']) $_SESSION['admin_auth'] = true; else { @@ -128,8 +128,9 @@ if (!(isset ($_POST['action']) && strcmp ($_POST['action'], 'download') == 0)) { require (JIRAFEAU_ROOT . 'lib/template/header.php'); ?><h2><?php echo t('Admin interface'); ?></h2><?php + ?><h2>(version <?php echo JIRAFEAU_VERSION ?>)</h2><?php - ?><div id = "install"> + ?><div id = "admin"> <fieldset><legend><?php echo t('Actions');?></legend> <table> <form action = "<?php echo basename(__FILE__); ?>" method = "post"> @@ -212,8 +213,8 @@ if (!(isset ($_POST['action']) && strcmp ($_POST['action'], 'download') == 0)) </form> </table> <form action = "<?php echo basename(__FILE__); ?>" method = "post"> - <input type = "hidden" name = "action" value = "logout"/> - <input type = "submit" value = "<?php echo t('Logout'); ?>" /> + <input type = "hidden" name = "action" value = "logout" /> + <input type = "submit" value = "<?php echo t('Logout'); ?>" /> </form> </fieldset></div><?php }