Changeset 188 for administrace/user.php
- Timestamp:
- Jan 1, 2008, 3:22:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
administrace/user.php
r186 r188 14 14 { 15 15 $_SESSION['UserId'] = 0; 16 $_SESSION['UserName'] = ''; 16 17 } 17 18 $_SESSION['Time'] = time(); … … 24 25 global $Database; 25 26 $Database->select_db('realmd'); 26 $DbResult = $Database->select('account', 'Id ', '(gmlevel > 0) AND (username = "'.$Username.'") AND (I = SHA1(CONCAT(UCASE("'.$Username.'"),":",UCASE("'.$Password.'"))))');27 $DbResult = $Database->select('account', 'Id,username', '(gmlevel > 0) AND (username = "'.$Username.'") AND (I = SHA1(CONCAT(UCASE("'.$Username.'"),":",UCASE("'.$Password.'"))))'); 27 28 if($DbResult->num_rows > 0) 28 29 { 29 30 $User = $DbResult->fetch_array(); 30 31 $_SESSION['UserId'] = $User['Id']; 32 $_SESSION['UserName'] = $User['username']; 31 33 echo('Byl jste pøihlá¹en.<br>'); 32 34 } else {
Note:
See TracChangeset
for help on using the changeset viewer.