Changeset 455 for trunk/Options.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Options.php
r376 r455 17 17 if($NewPass == $NewPass2) 18 18 { 19 $DbResult = $ Database->SQLCommand('SELECT `Pass`, '.$User->CryptPasswordSQL('"'.$OldPass.'"', '`Salt`').' AS `Hash` FROM `User` WHERE `ID`= '.$User->Id);20 $DbRow = mysql_fetch_assoc($DbResult);19 $DbResult = $System->Database->query('SELECT `Pass`, '.$User->CryptPasswordSQL('"'.$OldPass.'"', '`Salt`').' AS `Hash` FROM `User` WHERE `ID`= '.$User->Id); 20 $DbRow = $DbResult->fetch_assoc(); 21 21 if($DbRow['Hash'] == $DbRow['Pass']) 22 22 { 23 23 // Update password 24 24 $Salt = $User->GetPasswordSalt(); 25 $ Database->SQLCommand('UPDATE `User` SET `Pass` = '.$User->CryptPasswordSQL('"'.$NewPass.'"', '"'.$Salt.'"').', `Salt`="'.$Salt.'" WHERE `ID` = '.$User->Id);25 $System->Database->query('UPDATE `User` SET `Pass` = '.$User->CryptPasswordSQL('"'.$NewPass.'"', '"'.$Salt.'"').', `Salt`="'.$Salt.'" WHERE `ID` = '.$User->Id); 26 26 echo('Heslo změněno!<br />'); 27 27 } else echo('<br />Staré heslo neodpovídá!<br />'); 28 28 } else echo('<br />Hesla se neshodují!<br />'); 29 29 30 $ Database->SQLCommand('UPDATE `User` SET `Email` = "'.$Email.'", `Language` = "'.$Language.'", `Redirecting` = "'.$Redirecting.'" WHERE `ID` = '.$User->Id);30 $System->Database->query('UPDATE `User` SET `Email` = "'.$Email.'", `Language` = "'.$Language.'", `Redirecting` = "'.$Redirecting.'" WHERE `ID` = '.$User->Id); 31 31 echo('Úprava nastavení proběhla v pořádku, Email: <b>'.$Email.'</b> Uživatel: <b>'.$User->Name.'</b><br />'); 32 32 WriteLog('Úprava nastavení!', LOG_TYPE_USER); … … 84 84 85 85 echo(' <fieldset><legend>Překladatelský tým</legend>'); 86 $ ID = $Database->SQLCommand('SELECT * FROM `Team`');86 $DbResult = $System->Database->query('SELECT * FROM `Team`'); 87 87 echo('<a href="team.php?action=create">Vytvořit tým</a><br />'. 88 88 '<a href="team.php?action=leave">Opustit tým</a><br />'. … … 90 90 '<input type="hidden" name="action" value="gointeam"/>'. 91 91 '<select name="id">'); 92 while($LineTeam = mysql_fetch_assoc($ID))92 while($LineTeam = $DbResult->fetch_assoc()) 93 93 { 94 94 echo('<option value="'.$LineTeam['Id'].'"');
Note:
See TracChangeset
for help on using the changeset viewer.