projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new function:
[squirrelmail.git]
/
plugins
/
administrator
/
auth.php
diff --git
a/plugins/administrator/auth.php
b/plugins/administrator/auth.php
index 58350fa9614b22f09e9789e9da7a9999bc5e82fd..f04aa69fa1467a0fa1218fd1badfc302602a2259 100644
(file)
--- a/
plugins/administrator/auth.php
+++ b/
plugins/administrator/auth.php
@@
-11,8
+11,12
@@
function adm_check_user() {
global $PHP_SELF;
function adm_check_user() {
global $PHP_SELF;
+ require_once(SM_PATH . 'functions/global.php');
- $username = ( !isset($_SESSION['username']) ? '' : $_SESSION['username'] );
+ if ( !sqgetGlobalVar('username',$username,SQ_SESSION) ) {
+ $username = '';
+ }
+
/* This needs to be first, for all non_options pages */
if (strpos('options.php', $PHP_SELF)) {
$auth = FALSE;
/* This needs to be first, for all non_options pages */
if (strpos('options.php', $PHP_SELF)) {
$auth = FALSE;