Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyniP committed Oct 16, 2012
1 parent 7c76564 commit e478499
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 131 deletions.
9 changes: 2 additions & 7 deletions admin/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@
if (mysql_num_rows($db_result) != 1) {
$_ERROR[] = "Your password was incorrect<br />";
} else {
if ($newPassword1 == $curPassword) {
$_ERROR[] = "You new and old passwords are the same.<br />";
} else {
$db_result - mysql_query("UPDATE ".DB_PREFIX."users SET password='".$newPassword1."', salt='".$newSalt."' WHERE id='".$_USER['id']."'");
mysql_query("DELETE FROM ".DB_PREFIX."session WHERE uId='".$_USER['id']."'");
logout();
}
$db_result - mysql_query("UPDATE ".DB_PREFIX."users SET password='".$newPassword1."', salt='".$newSalt."' WHERE id='".$_USER['id']."'");
mysql_query("DELETE FROM ".DB_PREFIX."session WHERE uId='".$_USER['id']."'");
}
}
}
Expand Down
121 changes: 0 additions & 121 deletions includes/custom-salt.php

This file was deleted.

3 changes: 0 additions & 3 deletions sql-change.txt

This file was deleted.

0 comments on commit e478499

Please sign in to comment.