projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Seriously? The variable is named as an array and initialized as a string? Well, I...
[squirrelmail.git]
/
plugins
/
administrator
/
auth.php
diff --git
a/plugins/administrator/auth.php
b/plugins/administrator/auth.php
index d387f8c53ced715acea0f2f91432ba34cff267ff..b2211d755d721497c74a5e7adfadc1d4a5b68773 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-201
7 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');