Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($old_passwordErr == "" && $new_passwordErr == "" && $new_password2Err == "") {
- $db = new Oracle ();
- $db->connect();
- if ($db->doSql('UPDATE WWW_USERS SET PASSWORD =\'' . $new_password . '\' WHERE USERNAME = \'' . $_SESSION['identity']['username'] . '\'')) {
- $db->close();
- header('Location:' . $_SERVER['SCRIPT_NAME'] . '?co=heslo-zmeneno');
- } else {
- $db->close();
- header('Location:' . $_SERVER['SCRIPT_NAME'] . '?co=fail');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement