projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PHP 5.3 deprecated ereg() function (#2820952)
[squirrelmail.git]
/
plugins
/
administrator
/
auth.php
diff --git
a/plugins/administrator/auth.php
b/plugins/administrator/auth.php
index 85d049c43cb77ad748eea6c3e58a4173cb55f07a..c8849e12884ed228fdd5faf31d14c86806588b8a 100644
(file)
--- a/
plugins/administrator/auth.php
+++ b/
plugins/administrator/auth.php
@@
-7,7
+7,7
@@
* to the plugin.
*
* @author Philippe Mingo
* to the plugin.
*
* @author Philippe Mingo
- * @copyright © 1999-200
7
The SquirrelMail Project Team
+ * @copyright © 1999-200
9
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@
-32,7
+32,9
@@
function adm_check_user() {
}
/* This needs to be first, for all non_options pages */
}
/* This needs to be first, for all non_options pages */
- if (defined('PAGE_NAME') && PAGE_NAME='administrator_options') {
+ //if (!defined('PAGE_NAME') || strpos(PAGE_NAME, 'options') === FALSE) {
+ if (!defined('PAGE_NAME')
+ || (PAGE_NAME != 'administrator_options' && PAGE_NAME != 'options')) {
$auth = FALSE;
} else if (file_exists(SM_PATH . 'plugins/administrator/admins')) {
$auths = file(SM_PATH . 'plugins/administrator/admins');
$auth = FALSE;
} else if (file_exists(SM_PATH . 'plugins/administrator/admins')) {
$auths = file(SM_PATH . 'plugins/administrator/admins');