Changeset 63 for trunk/dictionary.php
- Timestamp:
- Feb 5, 2009, 8:30:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dictionary.php
r60 r63 19 19 global $Database; 20 20 21 if 21 if(isset($_SESSION['User']) and $_SESSION['User'] <> '') 22 22 { 23 23 $User = $_SESSION['User']; … … 25 25 26 26 $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')")); 27 if 27 if(!$Line) 28 28 { 29 29 return false; 30 } else { 31 if ($Licence == 1) { 32 if ($Line['gm'] == 1) { 30 } else 31 { 32 if($Licence == 1) 33 { 34 if($Line['gm'] == 1) 35 { 33 36 return true; 34 37 } else return false; 35 38 } 36 If ($Line['pass'] == $Pass) { 39 if($Line['pass'] == sha1($Pass)) 40 { 37 41 38 // zapsání poslení pou ité IP42 // zapsání poslení použité IP 39 43 // $Addres = $_SERVER['REMOTE_ADDR']; 40 44 // $Database->SQLCommand("UPDATE user SET LastLogin = now(), LastIP = '$Addres' WHERE user = '$User'");
Note:
See TracChangeset
for help on using the changeset viewer.