git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12533
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* @return boolean
*/
function adm_check_user() {
* @return boolean
*/
function adm_check_user() {
- global $PHP_SELF, $plugins;
/* fail if the plugin is not enabled */
if ( !in_array('administrator', $plugins) ) {
/* fail if the plugin is not enabled */
if ( !in_array('administrator', $plugins) ) {
}
/* This needs to be first, for all non_options pages */
}
/* This needs to be first, for all non_options pages */
- if (strpos('options.php', $PHP_SELF)) {
+ if (defined('PAGE_NAME') && PAGE_NAME='administrator_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');
* @subpackage administrator
*/
* @subpackage administrator
*/
+define('PAGE_NAME', 'administrator_options');
+
/**
* parse the config file
*
/**
* parse the config file
*