Changeset 404 for administrace/user.php
- Timestamp:
- Jan 28, 2009, 11:23:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
administrace/user.php
r389 r404 23 23 function Login($Username, $Password) 24 24 { 25 global $Config; 25 26 global $Database; 26 $Database->select_db( 'realmd');27 $Database->select_db($Config['Mangos']['DatabaseRealmd']); 27 28 $DbResult = $Database->select('account', 'Id,username', '(gmlevel > 0) AND (username = "'.$Username.'") AND (sha_pass_hash = SHA1(CONCAT(UCASE("'.$Username.'"),":",UCASE("'.$Password.'"))))'); 28 29 if($DbResult->num_rows > 0)
Note:
See TracChangeset
for help on using the changeset viewer.