aboutsummaryrefslogtreecommitdiffstats
path: root/functions/userauth_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-11 21:54:52 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-11 21:54:52 +0000
commit9c705dc135dff435c0cb59dec4ebf3d0d1620d2c (patch)
treea75bce0639c690c95e6d338727d75d1b4c2ad107 /functions/userauth_functions.php
parent1c7998281489f86ca209237b8f45e067fa9a674d (diff)
downloadphpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.tar.gz
phpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.tar.bz2
phpicalendar-9c705dc135dff435c0cb59dec4ebf3d0d1620d2c.zip
update lots of files
Diffstat (limited to 'functions/userauth_functions.php')
-rw-r--r--functions/userauth_functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php
index 017841e..3808653 100644
--- a/functions/userauth_functions.php
+++ b/functions/userauth_functions.php
@@ -43,7 +43,7 @@ function logout_querys() {
// if no valid login is found. Returns a boolean invalid_login to
// indicate that the login is invalid.
function user_login() {
- global $_COOKIE, $_GET, $_POST, $_SERVER;
+ global $_COOKIE, $_GET, $_POST, $_SERVER, $phpiCal_config;
global $login_cookies, $cookie_uri, $locked_map;
// Initialize return values.
@@ -96,7 +96,7 @@ function user_login() {
}
// Check to make sure the username and password is valid.
- if (!array_key_exists("$username:$password", $locked_map)) {
+ if (!array_key_exists("$username:$password", $phpiCal_config->locked_map)) {
// Remember the invalid login, because we may want to display
// a message elsewhere or check validity.
return array($username, $password, true);
@@ -120,7 +120,7 @@ function user_login() {
//
// Returns an empty username and password.
function user_logout() {
- global $login_cookies, $cookie_uri;
+ global $login_cookies, $cookie_uri, $phpiCal_config;
// Clear the login cookie or session authentication values.
if ($login_cookies == 'yes') {

© 2014-2024 Faster IT GmbH | imprint | privacy policy