Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if(!empty($previous_pass) || !empty($new_pass) || !empty($confirm_pass)){ if($pr..

Decoded Output download

<?     if(!empty($previous_pass) || !empty($new_pass) || !empty($confirm_pass)){ 
      if($previous_pass != $old_pass){ 
         $message[] = 'old password not matched!'; 
      }elseif($new_pass != $confirm_pass){ 
         $message[] = 'confirm password not matched!'; 
      }else{ 
         $update_password = $conn->prepare("UPDATE `users` SET password = ? WHERE id = ?"); 
         $update_password->execute([$confirm_pass, $user_id]); 
         $message[] = 'password has been updated!'; 
      } 
   } 
 
} ?>

Did this file decode correctly?

Original Code

   if(!empty($previous_pass) || !empty($new_pass) || !empty($confirm_pass)){
      if($previous_pass != $old_pass){
         $message[] = 'old password not matched!';
      }elseif($new_pass != $confirm_pass){
         $message[] = 'confirm password not matched!';
      }else{
         $update_password = $conn->prepare("UPDATE `users` SET password = ? WHERE id = ?");
         $update_password->execute([$confirm_pass, $user_id]);
         $message[] = 'password has been updated!';
      }
   }

}

Function Calls

None

Variables

None

Stats

MD5 9ee768b09485bc38b5b58d577dd91f73
Eval Count 0
Decode Time 58 ms