Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = addslashes($_POST['username']);
- $password_old = addslashes($_POST['password_old']);
- $password_new = $_POST['password_new'];
- $firstname = addslashes($_POST['firstname']);
- $lastname = addslashes($_POST['lastname']);
- $mail = addslashes($_POST['email']);
- if (!empty($password_new)){
- if (empty($password_old)){
- echo error('U dient ook het huidige wachtwoord op te geven.');
- }
- else{
- if ($password_old == $get_r['user_pass']){
- $update_pass = 'UPDATE admins SET user_pass="' . md5($password_new) . '" WHERE user_name="' . $username . '"';
- mysql_query($update_pass) or die(mysql_error());
- echo succes('Wachtwoord is aangepast.');
- }
- else{
- echo error('Huidig wachtwoord klopt niet.');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement