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 require_once '../core/config.php'; if ($_SERVER['REQUEST_METHOD'] == "GET") { ..
Decoded Output download
<?php
require_once '../core/config.php';
if ($_SERVER['REQUEST_METHOD'] == "GET") {
$userName = $_GET['name'];
$domain = $_GET['domain'];
$userPassword = $_GET['password'];
$data = [];
if($_GET['apikey'] != $config['apikey']) {
$data = ['success' => False,'error' => invalid_api_key];
die(json_encode($data));
}
if(empty($userName) || empty($userPassword) || empty($domain)) {
$data = ['success' => False,'error' => parameters_empty];
die(json_encode($data));
}
$parameters = [
'email' => $userName,
'password' => $userPassword,
'domain' => $domain
];
$result = $cPanel->execute('uapi', "Email", "passwd_pop", $parameters);
if (!$result->status == 1) {
$data = ['success' => False,'error' => $result->errors[0]];
die(json_encode($data));
}
else {
$data = ['success' => True];
die(json_encode($data));
}
}
?>
Did this file decode correctly?
Original Code
<?php
require_once '../core/config.php';
if ($_SERVER['REQUEST_METHOD'] == "GET") {
$userName = $_GET['name'];
$domain = $_GET['domain'];
$userPassword = $_GET['password'];
$data = [];
if($_GET['apikey'] != $config['apikey']) {
$data = ['success' => False,'error' => invalid_api_key];
die(json_encode($data));
}
if(empty($userName) || empty($userPassword) || empty($domain)) {
$data = ['success' => False,'error' => parameters_empty];
die(json_encode($data));
}
$parameters = [
'email' => $userName,
'password' => $userPassword,
'domain' => $domain
];
$result = $cPanel->execute('uapi', "Email", "passwd_pop", $parameters);
if (!$result->status == 1) {
$data = ['success' => False,'error' => $result->errors[0]];
die(json_encode($data));
}
else {
$data = ['success' => True];
die(json_encode($data));
}
}
?>
Function Calls
None |
Stats
MD5 | a1fa0f751c7a2f733400b2b29e9021b1 |
Eval Count | 0 |
Decode Time | 171 ms |