/* Decoded by unphp.net */
function securePassword($pass)
{
$uvpgdsndlh = "pass";
$hiijmkp = "hash";
${"GLOBALS"}["wkts"] = "pass";
${$hiijmkp} = md5(md5(sha1(${${"GLOBALS"}["wkts"]}) . sha1(md5(${$uvpgdsndlh}))));
return ${${"GLOBALS"}["hash"]};
}
if (empty($_SESSION["_token"])) {
if (function_exists("mcrypt_create_iv")) {
$_SESSION["_token"] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));
} else {
$_SESSION["_token"] = bin2hex(openssl_random_pseudo_bytes(32));
}
}
${${"GLOBALS"}["wxadsoq"]} = $_SESSION["_token"];
if (isset($_GET["step2"])) {
if ($_SERVER["REQUEST_METHOD"] === "POST") {
if ($Validation->run($_POST) === true) {
if ($Validation->checkFileExists(${${"GLOBALS"}["wcjlnaobq"]}["sql_path"]) == false) {
$nhdfxwtbkj = "message";
${$nhdfxwtbkj} .= "
install.sql file is not exists in sql/ directory!";
} else {
$dxecmhrr = "path";
if ($FileWrite->databaseConfig(${$dxecmhrr}, $_POST) === false) {
${${"GLOBALS"}["rguuno"]} .= "The database file could not be written, ";
${${"GLOBALS"}["rguuno"]} .= "please chmod ../system/database.php file to 777";
} elseif ($DbImport->createDatabase($_POST) === false) {
${"GLOBALS"}["xmycmhe"] = "message";
${${"GLOBALS"}["xmycmhe"]} .= "The database could not be created, ";
${"GLOBALS"}["hdisjrsy"] = "message";
${${"GLOBALS"}["hdisjrsy"]} .= "please verify your settings.";
} elseif ($DbImport->createTables($_POST) === false) {
${"GLOBALS"}["bksrooj"] = "message";
${${"GLOBALS"}["bksrooj"]} .= "The database tables could not be created, ";
${${"GLOBALS"}["rguuno"]} .= "please verify your settings.";
} else {
header("location: index.php?step3");
}
}
} else {
${${"GLOBALS"}["rguuno"]} = $Validation->run($_POST);
}
}
} elseif (isset($_GET["step3"])) {
if ($_SERVER["REQUEST_METHOD"] === "POST") {
${"GLOBALS"}["icnxylfo"] = "config";
${"GLOBALS"}["pnxnjbbtnf"] = "site_location";
$cjowrbmufw = "site_name";
${"GLOBALS"}["fjbdwnblw"] = "config";
${"GLOBALS"}["scawdshbhk"] = "config";
$ygcddumrybz = "site_secure";
require_once("../system/database.php");
require_once("../system/libs/database/" . ${${"GLOBALS"}["fjbdwnblw"]}["sql_extenstion"] . ".php");
${${"GLOBALS"}["wljabnqaapy"]} = new MySQLConnection(${${"GLOBALS"}["scawdshbhk"]}["sql_host"], ${${"GLOBALS"}["doxhvku"]}["sql_username"], ${${"GLOBALS"}["doxhvku"]}["sql_password"], ${${"GLOBALS"}["icnxylfo"]}["sql_database"]);
${"GLOBALS"}["oglirrumykec"] = "site_email";
${"GLOBALS"}["hesalkymvz"] = "site_secure";
$db->Connect();
${$cjowrbmufw} = $db->EscapeString($_POST["site_name"]);
${${"GLOBALS"}["fohrrnjoysv"]} = $db->EscapeString($_POST["site_title"]);
${${"GLOBALS"}["icjfrtfjgyx"]} = $db->EscapeString($_POST["site_description"]);
${${"GLOBALS"}["tvrcksyt"]} = $db->EscapeString($_POST["site_location"]);
${"GLOBALS"}["hxbyqgdhrxe"] = "site_email";
${$ygcddumrybz} = $db->EscapeString($_POST["site_secure"]);
${${"GLOBALS"}["oglirrumykec"]} = $db->EscapeString($_POST["site_email"]);
if (${${"GLOBALS"}["rlrheqi"]} != "" && ${${"GLOBALS"}["icjfrtfjgyx"]} != "" && ${${"GLOBALS"}["pnxnjbbtnf"]} != "" && ${${"GLOBALS"}["hesalkymvz"]} != "" && ${${"GLOBALS"}["hxbyqgdhrxe"]} != "" && ${${"GLOBALS"}["fohrrnjoysv"]} != "") {
$eqxbroe = "path";
${"GLOBALS"}["rqhlvefevfm"] = "config";
if ($Validation->checkFileExists(${$eqxbroe}["sql_data_path"]) == false) {
${${"GLOBALS"}["rguuno"]} .= "data.sql file is not exists in sql/ directory!";
} elseif ($DbImport->insertData(array("hostname" => ${${"GLOBALS"}["doxhvku"]}["sql_host"], "username" => ${${"GLOBALS"}["doxhvku"]}["sql_username"], "database" => ${${"GLOBALS"}["doxhvku"]}["sql_database"], "password" => ${${"GLOBALS"}["rqhlvefevfm"]}["sql_password"])) === false) {
${"GLOBALS"}["tvgwthe"] = "message";
${${"GLOBALS"}["tvgwthe"]} .= "The data could not be inserted, ";
${${"GLOBALS"}["rguuno"]} .= "please verify your settings.";
} else {
${"GLOBALS"}["ydektnaakq"] = "ua";
$ygyjmchgi = "site_title";
$riteiqcu = "site_email";
${"GLOBALS"}["gtxwovgdxd"] = "site_secure";
${${"GLOBALS"}["ydektnaakq"]} = "INSERT INTO `site_config` (`config_name`, `config_value`) VALUES('analytics_id', ''),('coins_rate', '10000'),('cron_users', '0'),('def_lang', 'en'),('force_secure', '1'),('hold_days', '7'),('login_attempts', '3'),('login_wait_time', '10'),('mail_delivery_method', '0'),('mod_rewrite', '1'),('more_per_ip', '0'),('noreply_email', '" . ${${"GLOBALS"}["ujtbxifmhdeo"]} . "'),('proxycheck', ''),('proxycheck_status', '0'),('recaptcha_pub', ''),('recaptcha_sec', ''),('ref_com', '10'),('reg_reqmail', '0'),('secure_url', '" . ${${"GLOBALS"}["gtxwovgdxd"]} . "'),('site_description', ''),('site_email', '" . ${$riteiqcu} . "'),('site_keywords', ''),('site_logo', '" . ${${"GLOBALS"}["rlrheqi"]} . "'),('site_name', '" . ${$ygyjmchgi} . "'),('site_url', '" . ${${"GLOBALS"}["tvrcksyt"]} . "'),('smtp_auth', '0'),('smtp_host', 'localhost'),('smtp_password', ''),('smtp_port', '25'),('smtp_username', '')";
if ($db->query(${${"GLOBALS"}["svbjwpjesv"]})) {
header("location: index.php?step4");
} else {
$ifpheb = "message";
${$ifpheb} .= "Update Failed! An error occurred while trying to update database.";
}
}
} else {
${${"GLOBALS"}["rguuno"]} .= "Please complete all fields to continue.";
}
}
} elseif (isset($_GET["step4"])) {
if ($_SERVER["REQUEST_METHOD"] === "POST") {
${"GLOBALS"}["zbufqirzpau"] = "installAdmPass1";
$wgvryynne = "config";
$kkcbbgttco = "config";
${"GLOBALS"}["djqrqwtsmn"] = "config";
${"GLOBALS"}["cvgznzx"] = "installAdmName";
require_once("../system/database.php");
require_once("../system/libs/database/" . ${${"GLOBALS"}["doxhvku"]}["sql_extenstion"] . ".php");
${${"GLOBALS"}["wljabnqaapy"]} = new MySQLConnection(${$wgvryynne}["sql_host"], ${$kkcbbgttco}["sql_username"], ${${"GLOBALS"}["djqrqwtsmn"]}["sql_password"], ${${"GLOBALS"}["doxhvku"]}["sql_database"]);
$db->Connect();
${${"GLOBALS"}["cvgznzx"]} = $db->EscapeString($_POST["admname"]);
${"GLOBALS"}["cjkjbuwhs"] = "installAdmName";
${${"GLOBALS"}["rrtdmuorb"]} = $db->EscapeString($_POST["admmail"]);
${"GLOBALS"}["wkvjutgokxfp"] = "installAdmPass1";
${"GLOBALS"}["zfvnwtsrrmq"] = "installAdmMail";
${${"GLOBALS"}["wkvjutgokxfp"]} = $db->EscapeString($_POST["admpass1"]);
${${"GLOBALS"}["veiobfqvcy"]} = $db->EscapeString($_POST["admpass2"]);
${"GLOBALS"}["pcbcnvd"] = "installAdmPass1";
if (${${"GLOBALS"}["zbufqirzpau"]} != ${${"GLOBALS"}["veiobfqvcy"]}) {
${"GLOBALS"}["usqjfnwi"] = "message";
${${"GLOBALS"}["usqjfnwi"]} .= "Passwords does not match!";
} elseif (${${"GLOBALS"}["cjkjbuwhs"]} != "" && ${${"GLOBALS"}["zfvnwtsrrmq"]} != "" && ${${"GLOBALS"}["pcbcnvd"]} != "") {
$okfqrgyn = "installAdmPass1";
${"GLOBALS"}["kufjquehfa"] = "ua";
$kyvvejtezrsv = "installAdmName";
${${"GLOBALS"}["quvubelox"]} = securePassword(${$okfqrgyn});
${${"GLOBALS"}["kufjquehfa"]} = "INSERT INTO `users` (`email`,`username`,`admin`,`reg_ip`,`password`,`reg_time`)VALUES('" . ${${"GLOBALS"}["rrtdmuorb"]} . "', '" . ${$kyvvejtezrsv} . "', '1', '" . $_SERVER["REMOTE_ADDR"] . "', '" . ${${"GLOBALS"}["quvubelox"]} . "', '" . time() . "')";
if ($db->query(${${"GLOBALS"}["svbjwpjesv"]})) {
header("location: index.php?complete");
} else {
${"GLOBALS"}["hmyfsuvh"] = "message";
${${"GLOBALS"}["hmyfsuvh"]} .= "An Unknown error occured while adding the administrator.
Please try again or contact our support if the error prevails.";
}
} else {
$pxhkhgdxw = "message";
${$pxhkhgdxw} .= "Please complete all fields!";
}
}
} elseif (isset($_GET["complete"]) && $Validation->checkEnvFileExists() === false) {
$FileWrite->createEnvFile();
session_destroy();
} else {
$Validation->checkEnvFileExists();
} ?>