diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-03-14 06:10:27 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-03-14 06:10:27 +0000 |
commit | d78c207f76c8ae57744300611519f4c85c2c34c4 (patch) | |
tree | 7a29bf59f4c3c9fc5f9f654ba86e6cd3f065a74f /lib/class/vauth.class.php | |
parent | 98c5c04643228731b1dcf0eb48fa3dbc77815ad6 (diff) | |
download | ampache-d78c207f76c8ae57744300611519f4c85c2c34c4.tar.gz ampache-d78c207f76c8ae57744300611519f4c85c2c34c4.tar.bz2 ampache-d78c207f76c8ae57744300611519f4c85c2c34c4.zip |
Cosmetics: use tabs for indentation, tweak some indentation/coding style.
Diffstat (limited to 'lib/class/vauth.class.php')
-rw-r--r-- | lib/class/vauth.class.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php index 4364d75e..dad3feda 100644 --- a/lib/class/vauth.class.php +++ b/lib/class/vauth.class.php @@ -278,12 +278,12 @@ class vauth { break; } // end switch on data type - $username = Dba::escape($data['username']); - $ip = $_SERVER['REMOTE_ADDR'] ? Dba::escape(inet_pton($_SERVER['REMOTE_ADDR'])) : '0'; - $type = Dba::escape($data['type']); - $value = Dba::escape($data['value']); + $username = Dba::escape($data['username']); + $ip = $_SERVER['REMOTE_ADDR'] ? Dba::escape(inet_pton($_SERVER['REMOTE_ADDR'])) : '0'; + $type = Dba::escape($data['type']); + $value = Dba::escape($data['value']); $agent = Dba::escape(substr($_SERVER['HTTP_USER_AGENT'],0,254)); - $expire = Dba::escape(time() + Config::get('session_length')); + $expire = Dba::escape(time() + Config::get('session_length')); /* We can't have null things here people */ if (!strlen($value)) { $value = ' '; } @@ -517,7 +517,7 @@ class vauth { } $row['type'] = 'mysql'; - $row['success'] = true; + $row['success'] = true; return $row; @@ -567,7 +567,7 @@ class vauth { $results['type'] = 'mysql'; $results['password'] = 'old'; - $results['success'] = true; + $results['success'] = true; return $results; @@ -647,7 +647,7 @@ class vauth { if ($info["count"] == 1) { $user_entry = ldap_first_entry($ldap_link, $sr); - $user_dn = ldap_get_dn($ldap_link, $user_entry); + $user_dn = ldap_get_dn($ldap_link, $user_entry); // bind using the user.. $retval = ldap_bind($ldap_link, $user_dn, $password); |