Changeset 65 for trunk/includes
- Timestamp:
- Feb 5, 2009, 11:03:01 AM (16 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r63 r65 157 157 { 158 158 $_SESSION['User'] = $_POST['LoginUser']; 159 $_SESSION['Pass'] = sha1($_POST['LoginPass']);160 161 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('".$_SESSION['User']."') AND pass = '".$_SESSION['Pass']."'"));159 $_SESSION['Pass'] = $_POST['LoginPass']; 160 161 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('".$_SESSION['User']."') AND pass = sha1('".$_SESSION['Pass']."')")); 162 162 if(!$Line) 163 163 { -
trunk/includes/global_function.php
r63 r65 76 76 $Pass = $_SESSION['Pass']; 77 77 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM user WHERE ID = '.$_SESSION['UserID'].' 78 AND GM >= '.$Licence.' AND pass = "'.$Pass.'"'));78 AND GM >= '.$Licence.' AND pass = sha1("'.$Pass.'")')); 79 79 // echo "SELECT * FROM user WHERE ID = ".$_SESSION['UserID']." AND GM <= $Licence AND pass = '$Pass'"; 80 80 return($Line);
Note:
See TracChangeset
for help on using the changeset viewer.