summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorOliver Geisen <oliver.geisen@kreisbote.de>2008-11-08 23:50:35 +0100
committerOliver Geisen <oliver.geisen@kreisbote.de>2008-11-08 23:50:35 +0100
commit79d0084189da3cfab3b5d009d69246e1bee1070c (patch)
treec0bc1cc90e6c043a24680de6c553c56df3a92b34 /inc/auth.php
parent7e73e214fe32e90714123235aff0e9deaa39fc84 (diff)
downloadrpg-79d0084189da3cfab3b5d009d69246e1bee1070c.tar.gz
rpg-79d0084189da3cfab3b5d009d69246e1bee1070c.tar.bz2
fixed missing global scope in auth_setCookie() FS#1530
darcs-hash:20081108225035-6837b-a662b0728205e64f5eaf7bd0003748a5be8a6b2f.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 87b5f80ee..9c21fcbef 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -874,7 +874,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
for($i = $len; $i > 0; $i -= 16) { $text .= substr($bin, 0, min(16, $i)); }
for($i = $len; $i > 0; $i >>= 1) { $text .= ($i & 1) ? chr(0) : $clear{0}; }
$bin = pack("H32", md5($text));
- for($i = 0; $i < 1000; $i++) {
+ for($i = 0; $i < 1000; $i++) {
$new = ($i & 1) ? $clear : $bin;
if ($i % 3) $new .= $salt;
if ($i % 7) $new .= $clear;
@@ -884,7 +884,7 @@ function auth_cryptPassword($clear,$method='',$salt=null){
$tmp = '';
for ($i = 0; $i < 5; $i++) {
$k = $i + 6;
- $j = $i + 12;
+ $j = $i + 12;
if ($j == 16) $j = 5;
$tmp = $bin[$i].$bin[$k].$bin[$j].$tmp;
}
@@ -976,8 +976,9 @@ function auth_verifyPassword($clear,$crypt){
* @param bool $sticky whether or not the cookie will last beyond the session
*/
function auth_setCookie($user,$pass,$sticky) {
- global $conf;
- global $auth;
+ global $conf;
+ global $auth;
+ global $USERINFO;
$USERINFO = $auth->getUserData($user);