Changeset 306 for minimanager/register.php
- Timestamp:
- Mar 13, 2008, 7:56:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/register.php
r184 r306 344 344 $hash = $sql->quote_smart($_GET['h']); 345 345 346 $result = $sql->query("SELECT id,username FROM account WHERE I= '$hash'");346 $result = $sql->query("SELECT id,username FROM account WHERE sha_pass_hash = '$hash'"); 347 347 348 348 if ($sql->num_rows($result) == 1){ … … 350 350 $id = $sql->result($result, 0, 'id'); 351 351 if (substr(sha1(strtoupper($sql->result($result, 0, 'username'))),0,7) == $pass){ 352 $sql->query("UPDATE account SET I=SHA1(CONCAT(UPPER('$username'),':',UPPER('$pass'))) WHERE id = '$id'");352 $sql->query("UPDATE account SET sha_pass_hash=SHA1(CONCAT(UPPER('$username'),':',UPPER('$pass'))) WHERE id = '$id'"); 353 353 redirect("login.php"); 354 354 }
Note:
See TracChangeset
for help on using the changeset viewer.