diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-08 21:19:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-08 21:19:24 +0000 |
commit | bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d (patch) | |
tree | 05f6f2d03208da257d5ad4864a93a6797cc499c3 /login.php | |
parent | aa0c57afc44b8f804c2f553d2d264ed62fc16121 (diff) | |
download | ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.tar.gz ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.tar.bz2 ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.zip |
* Initial Database Changes for 3.4, many things are now broken
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ */ -$no_session = true; +define('NO_SESSION','1'); require_once('lib/init.php'); /* We have to create a cookie here because IIS @@ -73,7 +73,7 @@ if ($_POST['username'] && $_POST['password']) { $username = scrub_in($_POST['username']); $password = scrub_in($_POST['password']); $auth = authenticate($username, $password); - $user = new User($username); + $user = get_user_from_username($username); if ($user->disabled == '1') { $auth['success'] = false; @@ -124,7 +124,7 @@ if ($auth['success']) { // Record the IP of this person! // if (conf('track_user_ip')) { - $user = new User($_POST['username']); + $user = get_user_from_username($username); $user->insert_ip_history(); unset($user); } |