X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/4c5e2caa3a0fedd86292b213c3bb3aa8c812d8c2..c9f3ec5aa338fa2f214bbd5de4a3120b7387a44e:/admin.php diff --git a/admin.php b/admin.php index 837686e..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 { @@ -123,13 +123,14 @@ if (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) /* Remove errors. */ @error_reporting(0); -/* Admin interface. */ -require (JIRAFEAU_ROOT . 'lib/template/header.php'); -?>

+ require (JIRAFEAU_ROOT . 'lib/template/header.php'); + ?>

(version )

@@ -148,7 +149,7 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php');
- + @@ -212,8 +213,8 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php');
- - + +