${
"GLOBALS"
}
["drfigmmgyjwh"]="appName";
${
"GLOBALS"
}
["zeslteh"]="sessEror";
${
"GLOBALS"
}
["ohwxsifw"]="errorCls";
${
"GLOBALS"
}
["ehfhkwi"]="preDbName";
${
"GLOBALS"
}
["smdgjxdjvd"]="preDbHost";
${
"GLOBALS"
}
["dkctjpkaz"]="saltPass";
${
"GLOBALS"
}
["lmldmyolmn"]="userID";
${
"GLOBALS"
}
["oynlqlfgsv"]="installAdmMail";
${
"GLOBALS"
}
["qsidhjc"]="installAdmPass1";
${
"GLOBALS"
}
["jpyectfs"]="ua";
${
"GLOBALS"
}
["jjfako"]="site_location";
${
"GLOBALS"
}
["kknjqsmva"]="site_paypal";
${
"GLOBALS"
}
["grkqdnxhgv"]="site_email";
${
"GLOBALS"
}
["dtjvvhekjm"]="step";
${
"GLOBALS"
}
["naridcnel"]="site_name";
${
"GLOBALS"
}
["gubqes"]="templine";
${
"GLOBALS"
}
["tyygjggcktis"]="line";
${
"GLOBALS"
}
["snyumu"]="sessEror";
${
"GLOBALS"
}
["ilpkueplew"]="lines";
$yipgzqfvw="step";
${
"GLOBALS"
}
["njrrjtrzd"]="impError";
${
"GLOBALS"
}
["fpybpnn"]="installPass";
${
"GLOBALS"
}
["ydugqqwqqs"]="connectInstall";
${
"GLOBALS"
}
["alylouy"]="preDbPass";
${
"GLOBALS"
}
["qoogutomjqbf"]="installUser";
${
"GLOBALS"
}
["imecmcud"]="preDbUser";
${
"GLOBALS"
}
["lfqcxbcvcgy"]="installName";
${
"GLOBALS"
}
["wvmquwcjell"]="installHost";
${
"GLOBALS"
}
["cmucpwpss"]="successTxt";
${
"GLOBALS"
}
["martuusjxi"]="licenseFile";
${
"GLOBALS"
}
["godymvnq"]="mn_key";
${
"GLOBALS"
}
["bccgci"]="license_check";
${
"GLOBALS"
}
["swjrqmrbe"]="step";
${
"GLOBALS"
}
["wwfwrugmp"]="mn_oid";
${
"GLOBALS"
}
["gdtdjtpz"]="reqUri";
${
"GLOBALS"
}
["lclsmnlkmopq"]="license";
${
"GLOBALS"
}
["ydgskgnlrrsg"]="vi";
${
"GLOBALS"
}
["xyoxwkz"]="step";
${
"GLOBALS"
}
["xljkmv"]="errorTxt";
${
"GLOBALS"
}
["cjvlnpxyvx"]="error";
${
"GLOBALS"
}
["bgtxfgoerg"]="step";
error_reporting(0);
$ztqdybbgs="step";
${
"GLOBALS"
}
["cmgprltumzm"]="isPost";
session_start();
include("class.php");
$apxhpricne="step";
${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
=$sree->get("step");
${
$ztqdybbgs
}
=${
$apxhpricne
}
==""?0:${
${
"GLOBALS"
}
["bgtxfgoerg"]
};
${
${
"GLOBALS"
}
["cmgprltumzm"]
}
=$sree->post();
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
=array();
${
"GLOBALS"
}
["iyhuyesj"]="appName";
${
${
"GLOBALS"
}
["xljkmv"]
}
="";
${
${
"GLOBALS"
}
["ydgskgnlrrsg"]
}
=$sree->session("validInstall");
${
${
"GLOBALS"
}
["lclsmnlkmopq"]
}
=$sree->session("validLicense");
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==0){
$ogxxhupkf="reqUri";
${
"GLOBALS"
}
["fpmwtthh"]="error";
session_destroy();
session_start();
${
${
"GLOBALS"
}
["gdtdjtpz"]
}
=$sree->server("SCRIPT_NAME");
if(phpversion()<"5.2"){
${
"GLOBALS"
}
["jilbmacwuoo"]="error";
${
${
"GLOBALS"
}
["jilbmacwuoo"]
}
[]="PHP 5.2 or higher must be installed on your server. It seems you have installed PHP ".phpversion();
}
if(!extension_loaded("gd")||!function_exists("gd_info")){
${
"GLOBALS"
}
["dpcwzewdtnc"]="error";
${
${
"GLOBALS"
}
["dpcwzewdtnc"]
}
[]="PHP GD library must be installed on your web server.";
}
if(${
$ogxxhupkf
}
!="/install/index.php"){
$ayajbco="error";
${
$ayajbco
}
[]="It seems you are Installing the script on a Directory. This script needs to be Installed on a <b>Base Domain</b> or <b>Sub Domain</b> to work properly.";
}
if(count(${
${
"GLOBALS"
}
["fpmwtthh"]
}
)==0){
$sree->setSession("validInstall",1);
$sree->locate("?step=1");
}
}
else if(${
${
"GLOBALS"
}
["ydgskgnlrrsg"]
}
==1){
$fsxerpcvcd="step";
if(${
$fsxerpcvcd
}
!=1&&${
${
"GLOBALS"
}
["lclsmnlkmopq"]
}
!=1){
$sree->locate("?step=1");
}
${
"GLOBALS"
}
["migcspa"]="isPost";
if(${
${
"GLOBALS"
}
["migcspa"]
}
){
${
"GLOBALS"
}
["eglvtjhb"]="step";
$cfcajsnsq="step";
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==1){
${
"GLOBALS"
}
["qthctfkdjotf"]="mn_key";
${
${
"GLOBALS"
}
["qthctfkdjotf"]
}
=preg_replace("/\\s+/","",$sree->post("mn_key"));
${
${
"GLOBALS"
}
["wwfwrugmp"]
}
=preg_replace("/[^0-9]/","",$sree->post("mn_order"));
$http_host=str_replace("www.","",$sree->server("HTTP_HOST"));
${
${
"GLOBALS"
}
["bccgci"]
}
=$sree->checkLicense(MD5(${
${
"GLOBALS"
}
["godymvnq"]
}
),${
${
"GLOBALS"
}
["wwfwrugmp"]
}
,$http_host);
if(${
${
"GLOBALS"
}
["bccgci"]
}
=="NO_CURL"){
${
"GLOBALS"
}
["hkolhtelpbi"]="error";
${
${
"GLOBALS"
}
["hkolhtelpbi"]
}
[]="cURL function must be Enabled on your server!";
}
elseif(${
${
"GLOBALS"
}
["bccgci"]
}
=="VALID"){
$jvcssvhgqy="mn_oid";
${
"GLOBALS"
}
["yvnqiwho"]="mn_key";
${
${
"GLOBALS"
}
["martuusjxi"]
}
=$sree->generateLicense(MD5(${
${
"GLOBALS"
}
["yvnqiwho"]
}
),${
$jvcssvhgqy
}
,$http_host);
${
"GLOBALS"
}
["wdldaml"]="successTxt";
${
${
"GLOBALS"
}
["cmucpwpss"]
}
="<p class="errsuccess\">Licence successfully saved!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["wdldaml"]
}
);
$sree->setSession("licenseFile",${
${
"GLOBALS"
}
["martuusjxi"]
}
);
$sree->setSession("validLicense",1);
$sree->locate("?step=2");
}
else{
$ivwbohednxod="error";
${
$ivwbohednxod
}
[]="<b>Invalid license!</b> Please try again or contact our support if the error prevails.";
}
}
elseif(${
$cfcajsnsq
}
==2){
$glovbtoecmo="installUser";
$ridudkhf="installPass";
$cjptvto="preDbName";
$xgokrsvmz="preDbHost";
${
"GLOBALS"
}
["dyfulcuca"]="installUser";
${
"GLOBALS"
}
["hcbseryjqnjb"]="installName";
${
"GLOBALS"
}
["tsyjgqzcyn"]="installPass";
$btlwkr="installHost";
${
$btlwkr
}
=$sree->post("dbhost");
$moortanj="installHost";
${
${
"GLOBALS"
}
["hcbseryjqnjb"]
}
=$sree->post("dbname");
${
$glovbtoecmo
}
=$sree->post("dbuser");
${
${
"GLOBALS"
}
["tsyjgqzcyn"]
}
=$sree->post("dbpass");
${
$xgokrsvmz
}
=${
${
"GLOBALS"
}
["wvmquwcjell"]
};
${
$cjptvto
}
=${
${
"GLOBALS"
}
["lfqcxbcvcgy"]
};
$iuzhrxcpoqk="installPass";
${
${
"GLOBALS"
}
["imecmcud"]
}
=${
${
"GLOBALS"
}
["qoogutomjqbf"]
};
${
${
"GLOBALS"
}
["alylouy"]
}
=${
$ridudkhf
};
${
${
"GLOBALS"
}
["ydugqqwqqs"]
}
=mysql_connect(${
$moortanj
}
,${
${
"GLOBALS"
}
["dyfulcuca"]
}
,${
$iuzhrxcpoqk
}
);
if(mysql_select_db(${
${
"GLOBALS"
}
["lfqcxbcvcgy"]
}
,${
${
"GLOBALS"
}
["ydugqqwqqs"]
}
)){
${
"GLOBALS"
}
["buxhrbcunuh"]="installName";
${
"GLOBALS"
}
["cjhgafdy"]="installHost";
if($sree->write(${
${
"GLOBALS"
}
["cjhgafdy"]
}
,${
${
"GLOBALS"
}
["buxhrbcunuh"]
}
,${
${
"GLOBALS"
}
["qoogutomjqbf"]
}
,${
${
"GLOBALS"
}
["fpybpnn"]
}
)){
${
"GLOBALS"
}
["cvfoydto"]="filename";
${
${
"GLOBALS"
}
["cvfoydto"]
}
="i/dump.sql";
${
"GLOBALS"
}
["draftvgeig"]="filename";
${
"GLOBALS"
}
["yrykpcpbvrj"]="lines";
${
"GLOBALS"
}
["okbyjngl"]="templine";
${
${
"GLOBALS"
}
["okbyjngl"]
}
="";
${
${
"GLOBALS"
}
["yrykpcpbvrj"]
}
=file(${
${
"GLOBALS"
}
["draftvgeig"]
}
);
${
${
"GLOBALS"
}
["njrrjtrzd"]
}
=0;
$uhzuelc="impError";
foreach(${
${
"GLOBALS"
}
["ilpkueplew"]
}
as${
${
"GLOBALS"
}
["tyygjggcktis"]
}
){
$qqbqiim="line";
${
"GLOBALS"
}
["vdwmuinamj"]="templine";
if(substr(${
${
"GLOBALS"
}
["tyygjggcktis"]
}
,0,2)=="--"||${
${
"GLOBALS"
}
["tyygjggcktis"]
}
=="")continue;
${
${
"GLOBALS"
}
["vdwmuinamj"]
}
.=${
$qqbqiim
};
if(substr(trim(${
${
"GLOBALS"
}
["tyygjggcktis"]
}
),-1,1)==";
"){
if(mysql_query(${
${
"GLOBALS"
}
["gubqes"]
}
)){
}
else{
${
"GLOBALS"
}
["fgsstketru"]="impError";
${
${
"GLOBALS"
}
["fgsstketru"]
}
=1;
}
${
${
"GLOBALS"
}
["gubqes"]
}
="";
}
}
if(${
$uhzuelc
}
==0){
$pkevovxzwgwg="successTxt";
${
"GLOBALS"
}
["qrpxote"]="successTxt";
${
${
"GLOBALS"
}
["qrpxote"]
}
="<p class=\"errsuccess">Successfully saved Database Settings</p>";
$sree->setSession("successTxt",${
$pkevovxzwgwg
}
);
$sree->locate("?step=3");
}
else{
$dwblawpiq="error";
${
$dwblawpiq
}
[]="An error occured while installing the database. Please try again or contact our support if the error prevails.";
}
}
else{
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
[]="An error occured while saving the settings. Please make sure, you have set appropriate permissions for <b>system/database.php</b> file. If not, please change permissions to <b>777</b>.";
}
}
else{
$ytnxxotg="error";
${
$ytnxxotg
}
[]="Failed to Connect with your Database. Please make sure you have lodged Correct Database Information.";
}
}
else if(${
${
"GLOBALS"
}
["eglvtjhb"]
}
==3){
$wwvqrbwxszn="site_location";
${
${
"GLOBALS"
}
["naridcnel"]
}
=$sree->post("site_name");
${
$wwvqrbwxszn
}
=$sree->post("site_location");
${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
=$sree->post("site_email");
${
${
"GLOBALS"
}
["kknjqsmva"]
}
=$sree->post("site_paypal");
$omqrnbtt="site_paypal";
${
${
"GLOBALS"
}
["wvmquwcjell"]
}
="http://".$sree->server("HTTP_HOST")."/";
if(${
${
"GLOBALS"
}
["naridcnel"]
}
!=""&&${
${
"GLOBALS"
}
["jjfako"]
}
!=""&&${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
!=""&&${
$omqrnbtt
}
!=""){
$efsmgoqqwtgy="site_location";
$whibjkcp="ua";
${
$whibjkcp
}
="INSERT INTO `admin_config` (`config_name`, `config_value`) VALUES ('game_name', '".${
${
"GLOBALS"
}
["naridcnel"]
}
."'), ('contact_email', '".${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
."'), ('paypal_email', '".${
${
"GLOBALS"
}
["kknjqsmva"]
}
."'), ('game_url', '".${
$efsmgoqqwtgy
}
."');
";
if($db->query(${
${
"GLOBALS"
}
["jpyectfs"]
}
)){
$qpidhno="site_email";
$xysrdyk="site_paypal";
@mail("contact@mafianet.org","[NGMafia] Installation","Admin Email: ".${
$qpidhno
}
."\n---\n\nSite Location: ".${
${
"GLOBALS"
}
["jjfako"]
}
."\n Paypal Email: ".${
$xysrdyk
}
."\n\n---");
${
"GLOBALS"
}
["vbtihtp"]="successTxt";
${
${
"GLOBALS"
}
["vbtihtp"]
}
="<p class="errsuccess\">Settings added Successfully!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["cmucpwpss"]
}
);
$sree->locate("?step=4");
}
else{
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
[]="Update Failed! An error occurred while trying to update database.";
}
}
else{
${
"GLOBALS"
}
["ixluaso"]="error";
${
${
"GLOBALS"
}
["ixluaso"]
}
[]="Please complete all fields to continue.";
}
}
else if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==4){
${
"GLOBALS"
}
["enteunqwfvp"]="installAdmName";
${
"GLOBALS"
}
["tomnbnubt"]="installAdmPass2";
${
${
"GLOBALS"
}
["enteunqwfvp"]
}
=$sree->post("admname");
${
"GLOBALS"
}
["kdqbyonicx"]="installAdmMail";
$sqkxblqypw="installAdmPass1";
${
${
"GLOBALS"
}
["kdqbyonicx"]
}
=$sree->post("admmail");
${
"GLOBALS"
}
["yazklpwzuhqb"]="installAdmName";
$xojigndim="installAdmMail";
${
$sqkxblqypw
}
=$sree->post("admpass1");
${
"GLOBALS"
}
["tvxkfts"]="installAdmPass1";
${
${
"GLOBALS"
}
["tomnbnubt"]
}
=$sree->post("admpass2");
if(${
${
"GLOBALS"
}
["qsidhjc"]
}
!=${
${
"GLOBALS"
}
["tvxkfts"]
}
){
$jplkpplme="error";
${
$jplkpplme
}
[]="Passwords does not match!";
}
elseif(${
${
"GLOBALS"
}
["yazklpwzuhqb"]
}
!=""&&${
$xojigndim
}
!=""&&${
${
"GLOBALS"
}
["qsidhjc"]
}
!=""){
$db->Query("INSERT INTO `[users]` (`email`, `reg_time`, `IP_regged_with`, `userlevel`, `hasPlayer`, `online`, `last_active`, `IP_last`, `register_source`)VALUES('".${
${
"GLOBALS"
}
["oynlqlfgsv"]
}
."', '".time()."', '".$_SERVER["REMOTE_ADDR"]."', '4', '1', '".time()."', '".time()."', '".$_SERVER["REMOTE_ADDR"]."', 'default')");
$dgojxrhuop="installAdmName";
${
${
"GLOBALS"
}
["lmldmyolmn"]
}
=mysql_insert_id();
${
${
"GLOBALS"
}
["dkctjpkaz"]
}
=$sree->DoubleSalt(${
${
"GLOBALS"
}
["qsidhjc"]
}
,${
${
"GLOBALS"
}
["lmldmyolmn"]
}
);
$db->Query("UPDATE `[users]` SET `pass`='".${
${
"GLOBALS"
}
["dkctjpkaz"]
}
."' WHERE `id`='".${
${
"GLOBALS"
}
["lmldmyolmn"]
}
."'");
$db->Query("INSERT INTO `[players]` (`userid`, `name`, `IP_created_with`, `created`, `cash`, `points`, `bank`, `live`, `level`, `profileimage`, `online`, `last_active`, `status`)VALUES('".${
${
"GLOBALS"
}
["lmldmyolmn"]
}
."', '".${
$dgojxrhuop
}
."', '".$_SERVER["REMOTE_ADDR"]."', '".time()."', '20000', '10', '0', '2', '4', '/game/images/default_profileimage.png', '".time()."', '".time()."', '1')");
${
${
"GLOBALS"
}
["cmucpwpss"]
}
="<p class="errsuccess">Successfully created an Administrator!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["cmucpwpss"]
}
);
$sree->locate("?step=5");
}
else{
${
"GLOBALS"
}
["dckhnes"]="error";
${
${
"GLOBALS"
}
["dckhnes"]
}
[]="Please complete all fields!";
}
}
}
}
else{
$sree->locate("?step=0");
}
if(${
${
"GLOBALS"
}
["swjrqmrbe"]
}
==2){
${
"GLOBALS"
}
["wlkbncqjwv"]="preDbName";
$fwsmkomtvb="preDbPass";
$srmygype="preDbHost";
${
${
"GLOBALS"
}
["smdgjxdjvd"]
}
=${
$srmygype
}
==""?"localhost":${
${
"GLOBALS"
}
["smdgjxdjvd"]
};
${
"GLOBALS"
}
["iweiqcrgjb"]="preDbPass";
${
${
"GLOBALS"
}
["ehfhkwi"]
}
=${
${
"GLOBALS"
}
["wlkbncqjwv"]
}
==""?"":${
${
"GLOBALS"
}
["ehfhkwi"]
};
${
${
"GLOBALS"
}
["imecmcud"]
}
=${
${
"GLOBALS"
}
["imecmcud"]
}
==""?"":${
${
"GLOBALS"
}
["imecmcud"]
};
${
$fwsmkomtvb
}
=${
${
"GLOBALS"
}
["alylouy"]
}
==""?"":${
${
"GLOBALS"
}
["iweiqcrgjb"]
};
}
else if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==4){
${
"GLOBALS"
}
["dnhgyiduxsc"]="preAdmName";
$pivtwqeg="preAdmName";
${
"GLOBALS"
}
["antpsgkir"]="preAdmName";
${
$pivtwqeg
}
=${
${
"GLOBALS"
}
["antpsgkir"]
}
==""?"admin":${
${
"GLOBALS"
}
["dnhgyiduxsc"]
};
}
if(count(${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
)>0){
${
"GLOBALS"
}
["swuxmptsy"]="errorTxt";
${
"GLOBALS"
}
["vdixdolrw"]="errorCls";
$eotjgeqyer="error";
$vutizvpzc="err";
${
${
"GLOBALS"
}
["vdixdolrw"]
}
=${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==0?"errfailed":"errfail";
${
${
"GLOBALS"
}
["swuxmptsy"]
}
="";
foreach(${
$eotjgeqyer
}
as${
$vutizvpzc
}
){
$jgxvba="err";
${
${
"GLOBALS"
}
["xljkmv"]
}
.="<p class="".${
${
"GLOBALS"
}
["ohwxsifw"]
}
."\" style="margin-bottom:5px">".${
$jgxvba
}
."</p>";
}
}
${
${
"GLOBALS"
}
["snyumu"]
}
=$sree->session("successTxt");
if(${
${
"GLOBALS"
}
["zeslteh"]
}
!=""){
${
"GLOBALS"
}
["tqwvxdwodv"]="successTxt";
${
"GLOBALS"
}
["hwkmqiy"]="sessEror";
${
${
"GLOBALS"
}
["tqwvxdwodv"]
}
=${
${
"GLOBALS"
}
["zeslteh"]
}
!=""?${
${
"GLOBALS"
}
["zeslteh"]
}
:"";
${
${
"GLOBALS"
}
["hwkmqiy"]
}
=$sree->unsetSession("successTxt");
}
echo "<!DOCTYPE html>\n<html>\n<head><title>Install ";
echo ${
${
"GLOBALS"
}
["iyhuyesj"]
};
echo "</title>\n\t<link rel="stylesheet\" href="style.css" />\n\t<script type=\"text/javascript\" src=\"install.js"></script>\n</head><body>";
${
"GLOBALS"
}
["npoohuuoy"]="step";
if(${
${
"GLOBALS"
}
["dtjvvhekjm"]
}
==0){
echo "<div id="box" class=\"btl bbr\"><h1 class="btl"><img src="i/b.gif\" class="logo mr10\" />";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " Installer</h1>";
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
!=0){
$miojobkaw="errorTxt";
if(${
$miojobkaw
}
==""){
echo"<p class=\"desc">Please clear the following errors to start Installing...</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
${
"GLOBALS"
}
["ulvkriihgy"]="errorTxt";
echo${
${
"GLOBALS"
}
["ulvkriihgy"]
};
}
}
echo "<form method="POST" action=\"">\n\t<div class="form\">";
echo ${
${
"GLOBALS"
}
["xljkmv"]
};
echo "</div>\n\t<div class="stepper bbr\">\n\t\t<div class="fll">Pre-Install Checking...</div>\n\t\t<div class="flr"><input type="submit" value=\"Try again" class=\"btl bbr\"/></div>\n\t\t<div class=\"cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==1){
echo "<div id=\"box" class="btl bbr\">\n\t<h1 class=\"btl\"><img src="i/b.gif" class="logo mr10" /><span style=\"float:right;
margin-top:4px">";
${
"GLOBALS"
}
["swauul"]="appName";
$mcnqweycsa="errorTxt";
echo ${
${
"GLOBALS"
}
["swauul"]
};
echo " Installer</span></h1>\n";
if(${
$mcnqweycsa
}
==""){
${
"GLOBALS"
}
["mjugxnnyjbn"]="successTxt";
echo"<p class=\"desc">Please fill your Serial Key and Order ID from <a href="https://mn-shop.net/account/download" target="_blank\"><b>MN-Shop.net/account/download</b></a></p>".${
${
"GLOBALS"
}
["mjugxnnyjbn"]
};
}
else{
${
"GLOBALS"
}
["scxmvvdzn"]="errorTxt";
echo${
${
"GLOBALS"
}
["scxmvvdzn"]
};
}
${
"GLOBALS"
}
["udhsdmdzhbb"]="appName";
echo "<form method=\"POST" action=\"\" id=\"installform\">\n\t<div class=\"form">\n\t\t<div class="initem\">\n\t\t\t<div class="dib name\">Order ID <img src=\"i/i.png\" title=\"Order ID generated when you bought ";
echo ${
${
"GLOBALS"
}
["udhsdmdzhbb"]
};
echo "" /></div>\n\t\t\t<div class="dib value\"><input type="text" name=\"mn_order" value=\"\" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class="dib name\">Serial Key <img src=\"i/i.png\" title=\"Serial Key generated when you bought ";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo "" /></div>\n\t\t\t<div class=\"dib value"><input type=\"text\" name=\"mn_key" value=\"" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr\">\n\t\t<div class="fll\">Step 1/5 : Licence check</div>\n\t\t<div class="flr"><input type=\"submit\" value=\"Validate & Continue\" class="btl bbr"/></div>\n\t\t<div class="cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
$yipgzqfvw
}
==2){
echo "<div id=\"box\" class="btl bbr\">\n\t<h1 class=\"btl"><img src=\"i/b.gif" class=\"logo mr10" /><span style=\"float:right;
margin-top:4px\">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
${
"GLOBALS"
}
["kswhrrzcnm"]="errorTxt";
echo " Installer</span></h1>\n";
$bknglqeq="preDbPass";
if(${
${
"GLOBALS"
}
["kswhrrzcnm"]
}
==""){
echo"<p class=\"desc\">Please fill your database details to start Installing.</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
$dywueoerux="preDbHost";
echo "<form method="POST\" action=\"" onSubmit=\"return validatedb();
\" id=\"installform\">\n\t<div class="form">\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Database Host</div>\n\t\t\t<div class=\"dib value\"><input type="text" name="dbhost\" value="";
echo ${
$dywueoerux
};
echo "\" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name\">Database Name</div>\n\t\t\t<div class="dib value\"><input type=\"text" name="dbname" value="";
echo ${
${
"GLOBALS"
}
["ehfhkwi"]
};
echo "" /></div>\n\t\t</div>\n\t\t<div class=\"initem\">\n\t\t\t<div class=\"dib name">Database User</div>\n\t\t\t<div class=\"dib value"><input type=\"text\" name="dbuser\" value=\"";
echo ${
${
"GLOBALS"
}
["imecmcud"]
};
echo "\" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Database Pass</div>\n\t\t\t<div class=\"dib value\"><input type=\"text" name=\"dbpass" value=\"";
echo ${
$bknglqeq
};
echo "" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr\">\n\t\t<div class=\"fll">Step 2/5 : Database Settings</div>\n\t\t<div class=\"flr\"><input type=\"submit\" value=\"Validate & Continue" class="btl bbr\"/></div>\n\t\t<div class="cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==3){
echo "<div id=\"box" class="btl bbr">\n\t<h1 class=\"btl\"><img src=\"i/b.gif" class="spr logo mr10" /><span style=\"float:right;
margin-top:4px">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
$hdhhrrok="errorTxt";
echo " Installer</span></h1>\n";
if(${
$hdhhrrok
}
==""){
echo"<p class=\"desc\">Enter your site informations in this Step.</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
echo "<form method="POST" action="\" id="installform\">\n\t<div class="form">\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name">Site Name</div>\n\t\t\t<div class=\"dib value"><input type=\"text" name=\"site_name" value="";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo "" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name\">Site URL</div>\n\t\t\t<div class="dib value\"><input type=\"text" name="site_location\" value="http://";
echo $_SERVER["HTTP_HOST"];
echo "\" /></div>\n\t\t</div>\n\t\t<div class="initem">\n\t\t\t<div class=\"dib name">Contact Email</div>\n\t\t\t<div class="dib value\"><input type=\"text\" name="site_email\" value="" /></div>\n\t\t</div>\n\t\t<div class=\"initem\">\n\t\t\t<div class="dib name\">PayPal Email</div>\n\t\t\t<div class=\"dib value"><input type="text" name="site_paypal\" value="" /></div>\n\t\t</div>\n\t</div>\n\t<div class="stepper bbr\">\n\t\t<div class="fll">Step 3/5 : Website Settings</div>\n\t\t<div class=\"flr"><input type=\"submit" value="Validate & Continue\" class=\"btl bbr\"/></div>\n\t\t<div class="cls"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["xyoxwkz"]
}
==4){
${
"GLOBALS"
}
["grcyzfcam"]="errorTxt";
echo "<div id="box\" class="btl bbr\">\n\t<h1 class="btl\"><img src="i/b.gif" class="spr logo mr10" /><span style="float:right;
margin-top:4px">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
$tevxtp="preAdmName";
echo " Installer</span></h1>\n";
if(${
${
"GLOBALS"
}
["grcyzfcam"]
}
==""){
${
"GLOBALS"
}
["cfjxacx"]="successTxt";
echo"<p class=\"desc">Create an Administrator account to login on the website and Admin Panel.</p>".${
${
"GLOBALS"
}
["cfjxacx"]
};
}
else{
${
"GLOBALS"
}
["ysfpon"]="errorTxt";
echo${
${
"GLOBALS"
}
["ysfpon"]
};
}
echo "<form method="POST" action="" onSubmit="return validateuser();
" id=\"installform\">\n\t<div class="form\">\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name\">Admin Name</div>\n\t\t\t<div class="dib value\"><input type="text\" name="admname" value=\"";
echo ${
$tevxtp
};
echo "" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class=\"dib name\">Admin Email</div>\n\t\t\t<div class=\"dib value\"><input type=\"text\" name="admmail\" value=\"admin@";
echo $_SERVER["HTTP_HOST"];
echo "\" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class=\"dib name\">Admin Password</div>\n\t\t\t<div class=\"dib value\"><input type="password\" name="admpass1\" value="" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Confirm Password</div>\n\t\t\t<div class=\"dib value\"><input type=\"password" name="admpass2\" value=\"" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr">\n\t\t<div class=\"fll">Step 4/5 : Administrator Account</div>\n\t\t<div class="flr"><input type="submit\" value="Validate & Continue" class="btl bbr"/></div>\n\t\t<div class=\"cls"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["npoohuuoy"]
}
==5){
${
"GLOBALS"
}
["tdiyevbqfdic"]="appName";
echo "<div id=\"box" class="btl bbr">\n\t<h1 class="btl"><img src=\"i/b.gif\" class=\"spr logo mr10" /><span style=\"float:right;
margin-top:4px">";
${
"GLOBALS"
}
["dyuumuutlk"]="errorTxt";
echo ${
${
"GLOBALS"
}
["tdiyevbqfdic"]
};
echo " Installer</span></h1>\n";
if(${
${
"GLOBALS"
}
["dyuumuutlk"]
}
==""){
${
"GLOBALS"
}
["lgldlq"]="successTxt";
echo${
${
"GLOBALS"
}
["lgldlq"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
echo "<div class=\"formm infosuccess">Congratulations! You have successfully Installed the ";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " and the Site is ready to get Online.<br /><br />Make sure you delete the directory <b>/install</b> to avoid further re-installs or unauthorized access to the service.</div>\n<div class="stepper bbr\">\n\t<div class="fll">Step 5/5 : Install Complete</div>\n\t<div class="flr\"><input type="button\" onClick="gotoAdmin()" value=\"Visit Admin Panel\" class="btl bbr"/></div>\n\t<div class="cls\"></div>\n</div></div>\n";
}
echo "</body></html>\n";
${
"GLOBALS"
}
["drfigmmgyjwh"]="appName";
${
"GLOBALS"
}
["zeslteh"]="sessEror";
${
"GLOBALS"
}
["ohwxsifw"]="errorCls";
${
"GLOBALS"
}
["ehfhkwi"]="preDbName";
${
"GLOBALS"
}
["smdgjxdjvd"]="preDbHost";
${
"GLOBALS"
}
["dkctjpkaz"]="saltPass";
${
"GLOBALS"
}
["lmldmyolmn"]="userID";
${
"GLOBALS"
}
["oynlqlfgsv"]="installAdmMail";
${
"GLOBALS"
}
["qsidhjc"]="installAdmPass1";
${
"GLOBALS"
}
["jpyectfs"]="ua";
${
"GLOBALS"
}
["jjfako"]="site_location";
${
"GLOBALS"
}
["kknjqsmva"]="site_paypal";
${
"GLOBALS"
}
["grkqdnxhgv"]="site_email";
${
"GLOBALS"
}
["dtjvvhekjm"]="step";
${
"GLOBALS"
}
["naridcnel"]="site_name";
${
"GLOBALS"
}
["gubqes"]="templine";
${
"GLOBALS"
}
["tyygjggcktis"]="line";
${
"GLOBALS"
}
["snyumu"]="sessEror";
${
"GLOBALS"
}
["ilpkueplew"]="lines";
${
"GLOBALS"
}
["njrrjtrzd"]="impError";
${
"GLOBALS"
}
["fpybpnn"]="installPass";
${
"GLOBALS"
}
["ydugqqwqqs"]="connectInstall";
${
"GLOBALS"
}
["alylouy"]="preDbPass";
${
"GLOBALS"
}
["qoogutomjqbf"]="installUser";
${
"GLOBALS"
}
["imecmcud"]="preDbUser";
${
"GLOBALS"
}
["lfqcxbcvcgy"]="installName";
${
"GLOBALS"
}
["wvmquwcjell"]="installHost";
${
"GLOBALS"
}
["cmucpwpss"]="successTxt";
${
"GLOBALS"
}
["martuusjxi"]="licenseFile";
${
"GLOBALS"
}
["godymvnq"]="mn_key";
${
"GLOBALS"
}
["bccgci"]="license_check";
${
"GLOBALS"
}
["swjrqmrbe"]="step";
${
"GLOBALS"
}
["wwfwrugmp"]="mn_oid";
${
"GLOBALS"
}
["gdtdjtpz"]="reqUri";
${
"GLOBALS"
}
["lclsmnlkmopq"]="license";
${
"GLOBALS"
}
["ydgskgnlrrsg"]="vi";
${
"GLOBALS"
}
["xyoxwkz"]="step";
${
"GLOBALS"
}
["xljkmv"]="errorTxt";
${
"GLOBALS"
}
["cjvlnpxyvx"]="error";
${
"GLOBALS"
}
["bgtxfgoerg"]="step";
error_reporting(0);
${
"GLOBALS"
}
["cmgprltumzm"]="isPost";
session_start();
include("class.php");
${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
=$sree->get("step");
${
"step"
}
=${
"step"
}
==""?0:${
${
"GLOBALS"
}
["bgtxfgoerg"]
};
${
${
"GLOBALS"
}
["cmgprltumzm"]
}
=$sree->post();
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
=array();
${
"GLOBALS"
}
["iyhuyesj"]="appName";
${
${
"GLOBALS"
}
["xljkmv"]
}
="";
${
${
"GLOBALS"
}
["ydgskgnlrrsg"]
}
=$sree->session("validInstall");
${
${
"GLOBALS"
}
["lclsmnlkmopq"]
}
=$sree->session("validLicense");
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==0){
${
"GLOBALS"
}
["fpmwtthh"]="error";
session_destroy();
session_start();
${
${
"GLOBALS"
}
["gdtdjtpz"]
}
=$sree->server("SCRIPT_NAME");
if(phpversion()<"5.2"){
${
"GLOBALS"
}
["jilbmacwuoo"]="error";
${
${
"GLOBALS"
}
["jilbmacwuoo"]
}
[]="PHP 5.2 or higher must be installed on your server. It seems you have installed PHP ".phpversion();
}
if(!extension_loaded("gd")||!function_exists("gd_info")){
${
"GLOBALS"
}
["dpcwzewdtnc"]="error";
${
${
"GLOBALS"
}
["dpcwzewdtnc"]
}
[]="PHP GD library must be installed on your web server.";
}
if(${
"reqUri"
}
!="/install/index.php"){
${
"error"
}
[]="It seems you are Installing the script on a Directory. This script needs to be Installed on a <b>Base Domain</b> or <b>Sub Domain</b> to work properly.";
}
if(count(${
${
"GLOBALS"
}
["fpmwtthh"]
}
)==0){
$sree->setSession("validInstall",1);
$sree->locate("?step=1");
}
}
else if(${
${
"GLOBALS"
}
["ydgskgnlrrsg"]
}
==1){
if(${
"step"
}
!=1&&${
${
"GLOBALS"
}
["lclsmnlkmopq"]
}
!=1){
$sree->locate("?step=1");
}
${
"GLOBALS"
}
["migcspa"]="isPost";
if(${
${
"GLOBALS"
}
["migcspa"]
}
){
${
"GLOBALS"
}
["eglvtjhb"]="step";
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==1){
${
"GLOBALS"
}
["qthctfkdjotf"]="mn_key";
${
${
"GLOBALS"
}
["qthctfkdjotf"]
}
=preg_replace("/\\s+/","",$sree->post("mn_key"));
${
${
"GLOBALS"
}
["wwfwrugmp"]
}
=preg_replace("/[^0-9]/","",$sree->post("mn_order"));
$http_host=str_replace("www.","",$sree->server("HTTP_HOST"));
${
${
"GLOBALS"
}
["bccgci"]
}
=$sree->checkLicense(MD5(${
${
"GLOBALS"
}
["godymvnq"]
}
),${
${
"GLOBALS"
}
["wwfwrugmp"]
}
,$http_host);
if(${
${
"GLOBALS"
}
["bccgci"]
}
=="NO_CURL"){
${
"GLOBALS"
}
["hkolhtelpbi"]="error";
${
${
"GLOBALS"
}
["hkolhtelpbi"]
}
[]="cURL function must be Enabled on your server!";
}
elseif(${
${
"GLOBALS"
}
["bccgci"]
}
=="VALID"){
${
"GLOBALS"
}
["yvnqiwho"]="mn_key";
${
${
"GLOBALS"
}
["martuusjxi"]
}
=$sree->generateLicense(MD5(${
${
"GLOBALS"
}
["yvnqiwho"]
}
),${
"mn_oid"
}
,$http_host);
${
"GLOBALS"
}
["wdldaml"]="successTxt";
${
${
"GLOBALS"
}
["cmucpwpss"]
}
="<p class="errsuccess\">Licence successfully saved!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["wdldaml"]
}
);
$sree->setSession("licenseFile",${
${
"GLOBALS"
}
["martuusjxi"]
}
);
$sree->setSession("validLicense",1);
$sree->locate("?step=2");
}
else{
${
"error"
}
[]="<b>Invalid license!</b> Please try again or contact our support if the error prevails.";
}
}
elseif(${
"step"
}
==2){
${
"GLOBALS"
}
["dyfulcuca"]="installUser";
${
"GLOBALS"
}
["hcbseryjqnjb"]="installName";
${
"GLOBALS"
}
["tsyjgqzcyn"]="installPass";
${
"installHost"
}
=$sree->post("dbhost");
${
${
"GLOBALS"
}
["hcbseryjqnjb"]
}
=$sree->post("dbname");
${
"installUser"
}
=$sree->post("dbuser");
${
${
"GLOBALS"
}
["tsyjgqzcyn"]
}
=$sree->post("dbpass");
${
"preDbHost"
}
=${
${
"GLOBALS"
}
["wvmquwcjell"]
};
${
"preDbName"
}
=${
${
"GLOBALS"
}
["lfqcxbcvcgy"]
};
${
${
"GLOBALS"
}
["imecmcud"]
}
=${
${
"GLOBALS"
}
["qoogutomjqbf"]
};
${
${
"GLOBALS"
}
["alylouy"]
}
=${
"installPass"
};
${
${
"GLOBALS"
}
["ydugqqwqqs"]
}
=mysql_connect(${
"installHost"
}
,${
${
"GLOBALS"
}
["dyfulcuca"]
}
,${
"installPass"
}
);
if(mysql_select_db(${
${
"GLOBALS"
}
["lfqcxbcvcgy"]
}
,${
${
"GLOBALS"
}
["ydugqqwqqs"]
}
)){
${
"GLOBALS"
}
["buxhrbcunuh"]="installName";
${
"GLOBALS"
}
["cjhgafdy"]="installHost";
if($sree->write(${
${
"GLOBALS"
}
["cjhgafdy"]
}
,${
${
"GLOBALS"
}
["buxhrbcunuh"]
}
,${
${
"GLOBALS"
}
["qoogutomjqbf"]
}
,${
${
"GLOBALS"
}
["fpybpnn"]
}
)){
${
"GLOBALS"
}
["cvfoydto"]="filename";
${
${
"GLOBALS"
}
["cvfoydto"]
}
="i/dump.sql";
${
"GLOBALS"
}
["draftvgeig"]="filename";
${
"GLOBALS"
}
["yrykpcpbvrj"]="lines";
${
"GLOBALS"
}
["okbyjngl"]="templine";
${
${
"GLOBALS"
}
["okbyjngl"]
}
="";
${
${
"GLOBALS"
}
["yrykpcpbvrj"]
}
=file(${
${
"GLOBALS"
}
["draftvgeig"]
}
);
${
${
"GLOBALS"
}
["njrrjtrzd"]
}
=0;
foreach(${
${
"GLOBALS"
}
["ilpkueplew"]
}
as${
${
"GLOBALS"
}
["tyygjggcktis"]
}
){
${
"GLOBALS"
}
["vdwmuinamj"]="templine";
if(substr(${
${
"GLOBALS"
}
["tyygjggcktis"]
}
,0,2)=="--"||${
${
"GLOBALS"
}
["tyygjggcktis"]
}
=="")continue;
${
${
"GLOBALS"
}
["vdwmuinamj"]
}
.=${
"line"
};
if(substr(trim(${
${
"GLOBALS"
}
["tyygjggcktis"]
}
),-1,1)==";
"){
if(mysql_query(${
${
"GLOBALS"
}
["gubqes"]
}
)){
}
else{
${
"GLOBALS"
}
["fgsstketru"]="impError";
${
${
"GLOBALS"
}
["fgsstketru"]
}
=1;
}
${
${
"GLOBALS"
}
["gubqes"]
}
="";
}
}
if(${
"impError"
}
==0){
${
"GLOBALS"
}
["qrpxote"]="successTxt";
${
${
"GLOBALS"
}
["qrpxote"]
}
="<p class=\"errsuccess">Successfully saved Database Settings</p>";
$sree->setSession("successTxt",${
"successTxt"
}
);
$sree->locate("?step=3");
}
else{
${
"error"
}
[]="An error occured while installing the database. Please try again or contact our support if the error prevails.";
}
}
else{
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
[]="An error occured while saving the settings. Please make sure, you have set appropriate permissions for <b>system/database.php</b> file. If not, please change permissions to <b>777</b>.";
}
}
else{
${
"error"
}
[]="Failed to Connect with your Database. Please make sure you have lodged Correct Database Information.";
}
}
else if(${
${
"GLOBALS"
}
["eglvtjhb"]
}
==3){
${
${
"GLOBALS"
}
["naridcnel"]
}
=$sree->post("site_name");
${
"site_location"
}
=$sree->post("site_location");
${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
=$sree->post("site_email");
${
${
"GLOBALS"
}
["kknjqsmva"]
}
=$sree->post("site_paypal");
${
${
"GLOBALS"
}
["wvmquwcjell"]
}
="http://".$sree->server("HTTP_HOST")."/";
if(${
${
"GLOBALS"
}
["naridcnel"]
}
!=""&&${
${
"GLOBALS"
}
["jjfako"]
}
!=""&&${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
!=""&&${
"site_paypal"
}
!=""){
${
"ua"
}
="INSERT INTO `admin_config` (`config_name`, `config_value`) VALUES ('game_name', '".${
${
"GLOBALS"
}
["naridcnel"]
}
."'), ('contact_email', '".${
${
"GLOBALS"
}
["grkqdnxhgv"]
}
."'), ('paypal_email', '".${
${
"GLOBALS"
}
["kknjqsmva"]
}
."'), ('game_url', '".${
"site_location"
}
."');
";
if($db->query(${
${
"GLOBALS"
}
["jpyectfs"]
}
)){
@mail("contact@mafianet.org","[NGMafia] Installation","Admin Email: ".${
"site_email"
}
."\n---\n\nSite Location: ".${
${
"GLOBALS"
}
["jjfako"]
}
."\n Paypal Email: ".${
"site_paypal"
}
."\n\n---");
${
"GLOBALS"
}
["vbtihtp"]="successTxt";
${
${
"GLOBALS"
}
["vbtihtp"]
}
="<p class="errsuccess\">Settings added Successfully!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["cmucpwpss"]
}
);
$sree->locate("?step=4");
}
else{
${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
[]="Update Failed! An error occurred while trying to update database.";
}
}
else{
${
"GLOBALS"
}
["ixluaso"]="error";
${
${
"GLOBALS"
}
["ixluaso"]
}
[]="Please complete all fields to continue.";
}
}
else if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==4){
${
"GLOBALS"
}
["enteunqwfvp"]="installAdmName";
${
"GLOBALS"
}
["tomnbnubt"]="installAdmPass2";
${
${
"GLOBALS"
}
["enteunqwfvp"]
}
=$sree->post("admname");
${
"GLOBALS"
}
["kdqbyonicx"]="installAdmMail";
${
${
"GLOBALS"
}
["kdqbyonicx"]
}
=$sree->post("admmail");
${
"GLOBALS"
}
["yazklpwzuhqb"]="installAdmName";
${
"installAdmPass1"
}
=$sree->post("admpass1");
${
"GLOBALS"
}
["tvxkfts"]="installAdmPass1";
${
${
"GLOBALS"
}
["tomnbnubt"]
}
=$sree->post("admpass2");
if(${
${
"GLOBALS"
}
["qsidhjc"]
}
!=${
${
"GLOBALS"
}
["tvxkfts"]
}
){
${
"error"
}
[]="Passwords does not match!";
}
elseif(${
${
"GLOBALS"
}
["yazklpwzuhqb"]
}
!=""&&${
"installAdmMail"
}
!=""&&${
${
"GLOBALS"
}
["qsidhjc"]
}
!=""){
$db->Query("INSERT INTO `[users]` (`email`, `reg_time`, `IP_regged_with`, `userlevel`, `hasPlayer`, `online`, `last_active`, `IP_last`, `register_source`)VALUES('".${
${
"GLOBALS"
}
["oynlqlfgsv"]
}
."', '".time()."', '".$_SERVER["REMOTE_ADDR"]."', '4', '1', '".time()."', '".time()."', '".$_SERVER["REMOTE_ADDR"]."', 'default')");
${
${
"GLOBALS"
}
["lmldmyolmn"]
}
=mysql_insert_id();
${
${
"GLOBALS"
}
["dkctjpkaz"]
}
=$sree->DoubleSalt(${
${
"GLOBALS"
}
["qsidhjc"]
}
,${
${
"GLOBALS"
}
["lmldmyolmn"]
}
);
$db->Query("UPDATE `[users]` SET `pass`='".${
${
"GLOBALS"
}
["dkctjpkaz"]
}
."' WHERE `id`='".${
${
"GLOBALS"
}
["lmldmyolmn"]
}
."'");
$db->Query("INSERT INTO `[players]` (`userid`, `name`, `IP_created_with`, `created`, `cash`, `points`, `bank`, `live`, `level`, `profileimage`, `online`, `last_active`, `status`)VALUES('".${
${
"GLOBALS"
}
["lmldmyolmn"]
}
."', '".${
"installAdmName"
}
."', '".$_SERVER["REMOTE_ADDR"]."', '".time()."', '20000', '10', '0', '2', '4', '/game/images/default_profileimage.png', '".time()."', '".time()."', '1')");
${
${
"GLOBALS"
}
["cmucpwpss"]
}
="<p class="errsuccess">Successfully created an Administrator!</p>";
$sree->setSession("successTxt",${
${
"GLOBALS"
}
["cmucpwpss"]
}
);
$sree->locate("?step=5");
}
else{
${
"GLOBALS"
}
["dckhnes"]="error";
${
${
"GLOBALS"
}
["dckhnes"]
}
[]="Please complete all fields!";
}
}
}
}
else{
$sree->locate("?step=0");
}
if(${
${
"GLOBALS"
}
["swjrqmrbe"]
}
==2){
${
"GLOBALS"
}
["wlkbncqjwv"]="preDbName";
${
${
"GLOBALS"
}
["smdgjxdjvd"]
}
=${
"preDbHost"
}
==""?"localhost":${
${
"GLOBALS"
}
["smdgjxdjvd"]
};
${
"GLOBALS"
}
["iweiqcrgjb"]="preDbPass";
${
${
"GLOBALS"
}
["ehfhkwi"]
}
=${
${
"GLOBALS"
}
["wlkbncqjwv"]
}
==""?"":${
${
"GLOBALS"
}
["ehfhkwi"]
};
${
${
"GLOBALS"
}
["imecmcud"]
}
=${
${
"GLOBALS"
}
["imecmcud"]
}
==""?"":${
${
"GLOBALS"
}
["imecmcud"]
};
${
"preDbPass"
}
=${
${
"GLOBALS"
}
["alylouy"]
}
==""?"":${
${
"GLOBALS"
}
["iweiqcrgjb"]
};
}
else if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==4){
${
"GLOBALS"
}
["dnhgyiduxsc"]="preAdmName";
${
"GLOBALS"
}
["antpsgkir"]="preAdmName";
${
"preAdmName"
}
=${
${
"GLOBALS"
}
["antpsgkir"]
}
==""?"admin":${
${
"GLOBALS"
}
["dnhgyiduxsc"]
};
}
if(count(${
${
"GLOBALS"
}
["cjvlnpxyvx"]
}
)>0){
${
"GLOBALS"
}
["swuxmptsy"]="errorTxt";
${
"GLOBALS"
}
["vdixdolrw"]="errorCls";
${
${
"GLOBALS"
}
["vdixdolrw"]
}
=${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==0?"errfailed":"errfail";
${
${
"GLOBALS"
}
["swuxmptsy"]
}
="";
foreach(${
"error"
}
as${
"err"
}
){
${
${
"GLOBALS"
}
["xljkmv"]
}
.="<p class="".${
${
"GLOBALS"
}
["ohwxsifw"]
}
."\" style="margin-bottom:5px">".${
"err"
}
."</p>";
}
}
${
${
"GLOBALS"
}
["snyumu"]
}
=$sree->session("successTxt");
if(${
${
"GLOBALS"
}
["zeslteh"]
}
!=""){
${
"GLOBALS"
}
["tqwvxdwodv"]="successTxt";
${
"GLOBALS"
}
["hwkmqiy"]="sessEror";
${
${
"GLOBALS"
}
["tqwvxdwodv"]
}
=${
${
"GLOBALS"
}
["zeslteh"]
}
!=""?${
${
"GLOBALS"
}
["zeslteh"]
}
:"";
${
${
"GLOBALS"
}
["hwkmqiy"]
}
=$sree->unsetSession("successTxt");
}
echo "<!DOCTYPE html>\n<html>\n<head><title>Install ";
echo ${
${
"GLOBALS"
}
["iyhuyesj"]
};
echo "</title>\n\t<link rel="stylesheet\" href="style.css" />\n\t<script type=\"text/javascript\" src=\"install.js"></script>\n</head><body>";
${
"GLOBALS"
}
["npoohuuoy"]="step";
if(${
${
"GLOBALS"
}
["dtjvvhekjm"]
}
==0){
echo "<div id="box" class=\"btl bbr\"><h1 class="btl"><img src="i/b.gif\" class="logo mr10\" />";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " Installer</h1>";
if(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
!=0){
if(${
"errorTxt"
}
==""){
echo"<p class=\"desc">Please clear the following errors to start Installing...</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
${
"GLOBALS"
}
["ulvkriihgy"]="errorTxt";
echo${
${
"GLOBALS"
}
["ulvkriihgy"]
};
}
}
echo "<form method="POST" action=\"">\n\t<div class="form\">";
echo ${
${
"GLOBALS"
}
["xljkmv"]
};
echo "</div>\n\t<div class="stepper bbr\">\n\t\t<div class="fll">Pre-Install Checking...</div>\n\t\t<div class="flr"><input type="submit" value=\"Try again" class=\"btl bbr\"/></div>\n\t\t<div class=\"cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==1){
echo "<div id=\"box" class="btl bbr\">\n\t<h1 class=\"btl\"><img src="i/b.gif" class="logo mr10" /><span style=\"float:right;
margin-top:4px">";
${
"GLOBALS"
}
["swauul"]="appName";
echo ${
${
"GLOBALS"
}
["swauul"]
};
echo " Installer</span></h1>\n";
if(${
"errorTxt"
}
==""){
${
"GLOBALS"
}
["mjugxnnyjbn"]="successTxt";
echo"<p class=\"desc">Please fill your Serial Key and Order ID from <a href="https://mn-shop.net/account/download" target="_blank\"><b>MN-Shop.net/account/download</b></a></p>".${
${
"GLOBALS"
}
["mjugxnnyjbn"]
};
}
else{
${
"GLOBALS"
}
["scxmvvdzn"]="errorTxt";
echo${
${
"GLOBALS"
}
["scxmvvdzn"]
};
}
${
"GLOBALS"
}
["udhsdmdzhbb"]="appName";
echo "<form method=\"POST" action=\"\" id=\"installform\">\n\t<div class=\"form">\n\t\t<div class="initem\">\n\t\t\t<div class="dib name\">Order ID <img src=\"i/i.png\" title=\"Order ID generated when you bought ";
echo ${
${
"GLOBALS"
}
["udhsdmdzhbb"]
};
echo "" /></div>\n\t\t\t<div class="dib value\"><input type="text" name=\"mn_order" value=\"\" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class="dib name\">Serial Key <img src=\"i/i.png\" title=\"Serial Key generated when you bought ";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo "" /></div>\n\t\t\t<div class=\"dib value"><input type=\"text\" name=\"mn_key" value=\"" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr\">\n\t\t<div class="fll\">Step 1/5 : Licence check</div>\n\t\t<div class="flr"><input type=\"submit\" value=\"Validate & Continue\" class="btl bbr"/></div>\n\t\t<div class="cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
"step"
}
==2){
echo "<div id=\"box\" class="btl bbr\">\n\t<h1 class=\"btl"><img src=\"i/b.gif" class=\"logo mr10" /><span style=\"float:right;
margin-top:4px\">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
${
"GLOBALS"
}
["kswhrrzcnm"]="errorTxt";
echo " Installer</span></h1>\n";
if(${
${
"GLOBALS"
}
["kswhrrzcnm"]
}
==""){
echo"<p class=\"desc\">Please fill your database details to start Installing.</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
echo "<form method="POST\" action=\"" onSubmit=\"return validatedb();
\" id=\"installform\">\n\t<div class="form">\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Database Host</div>\n\t\t\t<div class=\"dib value\"><input type="text" name="dbhost\" value="";
echo ${
"preDbHost"
};
echo "\" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name\">Database Name</div>\n\t\t\t<div class="dib value\"><input type=\"text" name="dbname" value="";
echo ${
${
"GLOBALS"
}
["ehfhkwi"]
};
echo "" /></div>\n\t\t</div>\n\t\t<div class=\"initem\">\n\t\t\t<div class=\"dib name">Database User</div>\n\t\t\t<div class=\"dib value"><input type=\"text\" name="dbuser\" value=\"";
echo ${
${
"GLOBALS"
}
["imecmcud"]
};
echo "\" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Database Pass</div>\n\t\t\t<div class=\"dib value\"><input type=\"text" name=\"dbpass" value=\"";
echo ${
"preDbPass"
};
echo "" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr\">\n\t\t<div class=\"fll">Step 2/5 : Database Settings</div>\n\t\t<div class=\"flr\"><input type=\"submit\" value=\"Validate & Continue" class="btl bbr\"/></div>\n\t\t<div class="cls\"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["bgtxfgoerg"]
}
==3){
echo "<div id=\"box" class="btl bbr">\n\t<h1 class=\"btl\"><img src=\"i/b.gif" class="spr logo mr10" /><span style=\"float:right;
margin-top:4px">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " Installer</span></h1>\n";
if(${
"errorTxt"
}
==""){
echo"<p class=\"desc\">Enter your site informations in this Step.</p>".${
${
"GLOBALS"
}
["cmucpwpss"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
echo "<form method="POST" action="\" id="installform\">\n\t<div class="form">\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name">Site Name</div>\n\t\t\t<div class=\"dib value"><input type=\"text" name=\"site_name" value="";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo "" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name\">Site URL</div>\n\t\t\t<div class="dib value\"><input type=\"text" name="site_location\" value="http://";
echo $_SERVER["HTTP_HOST"];
echo "\" /></div>\n\t\t</div>\n\t\t<div class="initem">\n\t\t\t<div class=\"dib name">Contact Email</div>\n\t\t\t<div class="dib value\"><input type=\"text\" name="site_email\" value="" /></div>\n\t\t</div>\n\t\t<div class=\"initem\">\n\t\t\t<div class="dib name\">PayPal Email</div>\n\t\t\t<div class=\"dib value"><input type="text" name="site_paypal\" value="" /></div>\n\t\t</div>\n\t</div>\n\t<div class="stepper bbr\">\n\t\t<div class="fll">Step 3/5 : Website Settings</div>\n\t\t<div class=\"flr"><input type=\"submit" value="Validate & Continue\" class=\"btl bbr\"/></div>\n\t\t<div class="cls"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["xyoxwkz"]
}
==4){
${
"GLOBALS"
}
["grcyzfcam"]="errorTxt";
echo "<div id="box\" class="btl bbr\">\n\t<h1 class="btl\"><img src="i/b.gif" class="spr logo mr10" /><span style="float:right;
margin-top:4px">";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " Installer</span></h1>\n";
if(${
${
"GLOBALS"
}
["grcyzfcam"]
}
==""){
${
"GLOBALS"
}
["cfjxacx"]="successTxt";
echo"<p class=\"desc">Create an Administrator account to login on the website and Admin Panel.</p>".${
${
"GLOBALS"
}
["cfjxacx"]
};
}
else{
${
"GLOBALS"
}
["ysfpon"]="errorTxt";
echo${
${
"GLOBALS"
}
["ysfpon"]
};
}
echo "<form method="POST" action="" onSubmit="return validateuser();
" id=\"installform\">\n\t<div class="form\">\n\t\t<div class=\"initem">\n\t\t\t<div class="dib name\">Admin Name</div>\n\t\t\t<div class="dib value\"><input type="text\" name="admname" value=\"";
echo ${
"preAdmName"
};
echo "" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class=\"dib name\">Admin Email</div>\n\t\t\t<div class=\"dib value\"><input type=\"text\" name="admmail\" value=\"admin@";
echo $_SERVER["HTTP_HOST"];
echo "\" /></div>\n\t\t</div>\n\t\t<div class="initem\">\n\t\t\t<div class=\"dib name\">Admin Password</div>\n\t\t\t<div class=\"dib value\"><input type="password\" name="admpass1\" value="" /></div>\n\t\t</div>\n\t\t<div class=\"initem">\n\t\t\t<div class=\"dib name">Confirm Password</div>\n\t\t\t<div class=\"dib value\"><input type=\"password" name="admpass2\" value=\"" /></div>\n\t\t</div>\n\t</div>\n\t<div class=\"stepper bbr">\n\t\t<div class=\"fll">Step 4/5 : Administrator Account</div>\n\t\t<div class="flr"><input type="submit\" value="Validate & Continue" class="btl bbr"/></div>\n\t\t<div class=\"cls"></div>\n\t</div>\n</form></div>\n";
}
elseif(${
${
"GLOBALS"
}
["npoohuuoy"]
}
==5){
${
"GLOBALS"
}
["tdiyevbqfdic"]="appName";
echo "<div id=\"box" class="btl bbr">\n\t<h1 class="btl"><img src=\"i/b.gif\" class=\"spr logo mr10" /><span style=\"float:right;
margin-top:4px">";
${
"GLOBALS"
}
["dyuumuutlk"]="errorTxt";
echo ${
${
"GLOBALS"
}
["tdiyevbqfdic"]
};
echo " Installer</span></h1>\n";
if(${
${
"GLOBALS"
}
["dyuumuutlk"]
}
==""){
${
"GLOBALS"
}
["lgldlq"]="successTxt";
echo${
${
"GLOBALS"
}
["lgldlq"]
};
}
else{
echo${
${
"GLOBALS"
}
["xljkmv"]
};
}
echo "<div class=\"formm infosuccess">Congratulations! You have successfully Installed the ";
echo ${
${
"GLOBALS"
}
["drfigmmgyjwh"]
};
echo " and the Site is ready to get Online.<br /><br />Make sure you delete the directory <b>/install</b> to avoid further re-installs or unauthorized access to the service.</div>\n<div class="stepper bbr\">\n\t<div class="fll">Step 5/5 : Install Complete</div>\n\t<div class="flr\"><input type="button\" onClick="gotoAdmin()" value=\"Visit Admin Panel\" class="btl bbr"/></div>\n\t<div class="cls\"></div>\n</div></div>\n";
}
echo "</body></html>\n";
© 2023 Quttera Ltd. All rights reserved.