Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<? eval(gzinflate(base64_decode(' rVhtb9NIEP6OxH8YogonUppCuQNEoSVKDY1IaUlT ECBkbe1NvHeOH..
Decoded Output download
?> <?php
// Database Configuration
$dbHost = 'localhost';
$dbUsername = 'u608374782_AledanyKIWI';
$dbPassword = 'Aa123123123@@';
$dbName = 'u608374782_AledanyKIWI';
// Create a database connection
$connection = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName);
// Check if the connection is successful
if ($connection->connect_error) {
die("Connection failed: " . $connection->connect_error);
}
// Verify reCAPTCHA
$recaptchaSecretKey = '6LeEelQoAAAAAMley_-At5-AOed2_G12YcZuThZG';
$recaptchaResponse = $_POST['g-recaptcha-response'];
$recaptchaUrl = "https://www.google.com/recaptcha/api/siteverify";
$recaptchaData = array(
'secret' => $recaptchaSecretKey,
'response' => $recaptchaResponse,
);
$recaptchaOptions = array(
'http' => array(
'method' => 'POST',
'content' => http_build_query($recaptchaData),
),
);
$recaptchaContext = stream_context_create($recaptchaOptions);
$recaptchaResult = file_get_contents($recaptchaUrl, false, $recaptchaContext);
$recaptchaData = json_decode($recaptchaResult, true);
if (!$recaptchaData['success']) {
// CAPTCHA verification failed
echo " CAPTCHA. ";
} else {
// CAPTCHA verification successful, proceed with signup logic
// ... your existing signup logic ...
}
// Initialize variables to store form data and errors
$username = $email = $password = $referralCode = '';
$usernameErr = $emailErr = $passwordErr = $referralCodeErr = '';
// Handle form submission
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Retrieve and sanitize form data
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['password'];
$referralCode = $_POST['referralCode'];
// Perform validation (you can add more validation rules as needed)
if (empty($username)) {
$usernameErr = ' ';
}
if (empty($email)) {
$emailErr = ' ';
} elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = ' ';
}
if (empty($password)) {
$passwordErr = ' ';
}
// Validate the referral code
if (empty($referralCode)) {
$referralCodeErr = ' ';
} else {
$sql = "SELECT id FROM referral_codes WHERE code = '$referralCode' LIMIT 1";
$result = $connection->query($sql);
if ($result->num_rows === 0) {
$referralCodeErr = ' ';
}
}
// If there are no errors, insert the data into the database
if (empty($usernameErr) && empty($emailErr) && empty($passwordErr) && empty($referralCodeErr)) {
$hashedPassword = password_hash($password, PASSWORD_DEFAULT); // Hash the password for security
// Insert user data into the database
$sql = "INSERT INTO users (username, email, password) VALUES ('$username', '$email', '$hashedPassword')";
if ($connection->query($sql) === TRUE) {
// Insertion successful
// Create a new wallet entry for the user with an initial balance of 0
$userId = $connection->insert_id;
$sql = "INSERT INTO wallet (user_id) VALUES ('$userId')";
if ($connection->query($sql) !== TRUE) {
echo "Error creating wallet for the user: " . $connection->error;
// You can handle the error here as needed
}
// Redirect the user to signin.php after successful signup
header("Location: signinAR.php");
exit;
} else {
// Insertion failed
echo "Error: " . $sql . "<br>" . $connection->error;
}
}
}
// Close the database connection
$connection->close();
?><?
Did this file decode correctly?
Original Code
<? eval(gzinflate(base64_decode('
rVhtb9NIEP6OxH8YogonUppCuQNEoSVKDY1IaUlT
ECBkbe1NvHeOHXZtQjj1w/Emjv9xgp4EVcWdTne/
xPk3N7t+iRMSJ60uAsle78zOPDPz7Ew31gHg5kbP
7p0/B1N+KyuwSXxyQASFmue2WSfgxGeeO337knWw
5QkfboHmeCZxbHzR1mbu3ReUu6RL5f7g6qXrV679
cO36qlF1qEXcwb36o3qO8C4Rou9xSwpXyeXVK9G/
27dzZO7PPWwmDDVOiU+BgJXgYXquS80cMEYb8EyX
9qE7EM8dVoxRKmchKGddKie2lnItsqn5M7A2+HbW
GGACRGCaVIh24EyXRqFixrzl9fjZoJx7vAS/TBeT
P4vRYqE2Oq1NGCJ4AwpQgRyVM2JymOPfQ8pZewCc
1qq7rdpW9fy5JU5N0vNNm+xRk1P/Hh3IaF5tUJ06
D7yq/G07dGAsV/0fl6s71Fo17l5efWw+CVr2k7sy
viMVTSp6nitkPiwZ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8GhLb+rKbWnTmJ0aNOrb9RZc
LqzN9S7uL8Y62rjJQTNKcxQoho+ULK+7QdfgXh87
MGT2S3OhnQdvAm34L+b6yUKpHafPWTOrrkYM5EmC
/10vvqzLwLDh5L7KN3WRMxdv9+RNjkinIk90swQX
L0KWsybWMvWUXZ4Aa4HstYmwqZWZIBPNhvwyOqgM
u9W9vUc7zU1jU79T3W+0SmvRbS9s5Wl6ueElA9jB
B5z5gzw4095IQSd9PzV22Vqo38c2ogX1+60dpUxA
MUgnyphjU8ICpFlsNaCopaBrZayR6BKXT+O4aKXC
2jxfvpskM0WiEr7V3NcXyvkUlfFOdSHBdDiXU3af
OA71AacBPlBxkbAqpFWvixc/izpTOCAOcU0KXhsu
LVCUUkfdmmSFqAoMZq0toGJK2GJzVdxQy2SU6nEY
5qnODcSF0wRiNJbostBBjWSy/Y8tzUI6Ze5X7LC2
2DEYusdxM2ZHDbRUrDRAxDhJIzZf3+G8VE27Zovh
6OaP0kLOJDjZMLfSs3tA2tikZBIwnnrm67YpsSgv
FhpeNG7diLVWm1JvobQAJjhp+fN4fKG78ruCys6c
CwY+jq1M2QoUbh7w9TPFOv/iOe0fhWqOJ+gYUZ7m
73DL66aUL86Kxcb6zY3/AA==
'))); ?>
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | b3155077401fe4bff381068038b8f3c7 |
Eval Count | 1 |
Decode Time | 66 ms |