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

Signing you up...

Thank you for signing up!

PHP Decode

<?php session_start(); if ($_SESSION['bloowin_id'] == '' && $_SESSION['bloowin_email'] =..

Decoded Output download

<?php 
session_start(); 
if ($_SESSION['bloowin_id'] == '' && $_SESSION['bloowin_email'] == ''){ 
	include '../cms/cms-config.php'; 
	include '../Requires/dcart.php'; 
	 
	$email = $mysqli->real_escape_string($_POST['user_email']); // name 
	$name = $mysqli->real_escape_string($_POST['user_name']); // email 
	$password = $mysqli->real_escape_string($_POST['user_password']); // email 
	$password2 = $mysqli->real_escape_string($_POST['user_password_2']); // message 
	$token = $mysqli->real_escape_string($_POST['user_token']); 
	$mailcheck = spamcheck($email); // check email valid 
	 
	if ($email != '' && $mailcheck !== false && $name != '' && $password != '' && $password2 != '' && $token != ''){ 
		if ($_SESSION['bloowin_token'] != '' && $token == $_SESSION['bloowin_token']){ 
			// check if capcha corrent 
			if ($password == $password2){ 
				$mysqli_email = $mysqli->query("SELECT * FROM $prefixCustomer WHERE customer_email = '$email' AND customer_trash = '0' LIMIT 1"); 
				if ($mysqli_email->num_rows > 0){ 
					echo 3;	// if exist in database 
				} 
				else{ 
					// insert into database 
					$date = date('Y-m-d H:i:s', time()); // current time 
					$password = md5(md5($password)); 
					$mysqli->query("INSERT INTO $prefixCustomer (customer_email, customer_name, customer_password, customer_level, customer_date, customer_trash) VALUES ('".$email."', '".$name."', '".$password."', '0', '".$date."', '0')"); 
					// get voucher code 
					// get last id 
					$last_id = $mysqli->insert_id; 
					// get the customer information 
					$_SESSION['bloowin_id'] = md5($last_id); 
					$_SESSION['bloowin_name'] = ($name != '' ? $name : 'No Name'); 
					$_SESSION['bloowin_email'] = $email; 
					$_SESSION['bloowin_level'] = 0; 
					// send to customer  
					include 'register_email.php'; 
					echo 4; // all correct 
				} 
			} 
			else{ 
				echo 2; // password didn't match 
			} 
			// end the statement 
			exit(); 
		} 
	} 
} 
echo 1;	// redirect to main page 
header('Location: http://'.$_SERVER['SERVER_NAME']); 
?>

Did this file decode correctly?

Original Code

<?php
session_start();
if ($_SESSION['bloowin_id'] == '' && $_SESSION['bloowin_email'] == ''){
	include '../cms/cms-config.php';
	include '../Requires/dcart.php';
	
	$email = $mysqli->real_escape_string($_POST['user_email']); // name
	$name = $mysqli->real_escape_string($_POST['user_name']); // email
	$password = $mysqli->real_escape_string($_POST['user_password']); // email
	$password2 = $mysqli->real_escape_string($_POST['user_password_2']); // message
	$token = $mysqli->real_escape_string($_POST['user_token']);
	$mailcheck = spamcheck($email); // check email valid
	
	if ($email != '' && $mailcheck !== false && $name != '' && $password != '' && $password2 != '' && $token != ''){
		if ($_SESSION['bloowin_token'] != '' && $token == $_SESSION['bloowin_token']){
			// check if capcha corrent
			if ($password == $password2){
				$mysqli_email = $mysqli->query("SELECT * FROM $prefixCustomer WHERE customer_email = '$email' AND customer_trash = '0' LIMIT 1");
				if ($mysqli_email->num_rows > 0){
					echo 3;	// if exist in database
				}
				else{
					// insert into database
					$date = date('Y-m-d H:i:s', time()); // current time
					$password = md5(md5($password));
					$mysqli->query("INSERT INTO $prefixCustomer (customer_email, customer_name, customer_password, customer_level, customer_date, customer_trash) VALUES ('".$email."', '".$name."', '".$password."', '0', '".$date."', '0')");
					// get voucher code
					// get last id
					$last_id = $mysqli->insert_id;
					// get the customer information
					$_SESSION['bloowin_id'] = md5($last_id);
					$_SESSION['bloowin_name'] = ($name != '' ? $name : 'No Name');
					$_SESSION['bloowin_email'] = $email;
					$_SESSION['bloowin_level'] = 0;
					// send to customer 
					include 'register_email.php';
					echo 4; // all correct
				}
			}
			else{
				echo 2; // password didn't match
			}
			// end the statement
			exit();
		}
	}
}
echo 1;	// redirect to main page
header('Location: http://'.$_SERVER['SERVER_NAME']);
?>

Function Calls

header 1
session_start 1

Variables

None

Stats

MD5 3b4519704ba33adf64c5705bb7b10c3d
Eval Count 0
Decode Time 103 ms