Changeset 65 for trunk/dictionary.php
- Timestamp:
- Feb 5, 2009, 11:03:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dictionary.php
r63 r65 22 22 { 23 23 $User = $_SESSION['User']; 24 $Pass = $_SESSION['Pass']; 24 $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT sha1('".$_SESSION['Pass']."') as pass;")); 25 $Pass = $Line['pass']; 25 26 26 $Line = mysql_fetch_a rray($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')"));27 $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')")); 27 28 if(!$Line) 28 29 { … … 37 38 } else return false; 38 39 } 39 if($Line['pass'] == sha1($Pass))40 if($Line['pass'] == $Pass) 40 41 { 41 42
Note:
See TracChangeset
for help on using the changeset viewer.