]> git.p6c8.net - jirafeau_project.git/blobdiff - admin.php
Fixed some things in README (typos, URLS, formatting)
[jirafeau_project.git] / admin.php
index 0f8967f90736d5193841e4ba664a99dbad699b43..09bded527fa9ab6f59d204f537b39efaa150a756 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -64,7 +64,8 @@ if (php_sapi_name() == "cli") {
     if (!jirafeau_admin_session_logged()) {
         /* Test HTTP authentication. */
         if (!empty($cfg['admin_http_auth_user']) &&
     if (!jirafeau_admin_session_logged()) {
         /* Test HTTP authentication. */
         if (!empty($cfg['admin_http_auth_user']) &&
-          $cfg['admin_http_auth_user'] == $_SERVER['PHP_AUTH_USER']) {
+          ((is_array($cfg['admin_http_auth_user']) && in_array($_SERVER['PHP_AUTH_USER'], $cfg['admin_http_auth_user'])) ||
+          (($cfg['admin_http_auth_user'] == $_SERVER['PHP_AUTH_USER'])))) {
             jirafeau_admin_session_start();
         }
         /* Test web password authentication. */
             jirafeau_admin_session_start();
         }
         /* Test web password authentication. */

patrick-canterino.de