Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if ($old_passwordErr == "" && $new_passwordErr == "" && $new_password2Err == "") {
  2. $db = new Oracle ();
  3. $db->connect();
  4. if ($db->doSql('UPDATE WWW_USERS SET PASSWORD =\'' . $new_password . '\' WHERE USERNAME = \'' . $_SESSION['identity']['username'] . '\'')) {
  5. $db->close();
  6. header('Location:' . $_SERVER['SCRIPT_NAME'] . '?co=heslo-zmeneno');
  7. } else {
  8. $db->close();
  9. header('Location:' . $_SERVER['SCRIPT_NAME'] . '?co=fail');
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement