Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

	${
	"GLOBALS"
}
["tiluqdcg"]="gg";
	${
	"GLOBALS"
}
["rtyfolhsvy"]="start";
	${
	"GLOBALS"
}
["adsuaxpdub"]="time_elapsed_secs";
	${
	"GLOBALS"
}
["pamhdnegfjhw"]="req";
	${
	"GLOBALS"
}
["uymqdw"]="req_ammo";
	${
	"GLOBALS"
}
["rltmwp"]="req_in_cargo";
	${
	"GLOBALS"
}
["mudbvko"]="spent_uridium";
	${
	"GLOBALS"
}
["xrfhtboromq"]="req_nano_hull";
	${
	"GLOBALS"
}
["qbcojzdmz"]="gg_encoded";
	${
	"GLOBALS"
}
["edugbqjaprr"]="gate";
	${
	"GLOBALS"
}
["jnkkxxhrpl"]="key";
	${
	"GLOBALS"
}
["imeatp"]="gg_decoded";
	${
	"GLOBALS"
}
["ehvwvhnnp"]="user_cargo";
	${
	"GLOBALS"
}
["rmtpkqn"]="techs";
	${
	"GLOBALS"
}
["lgwxfrh"]="ammo_rand";
	${
	"GLOBALS"
}
["lyewgdydn"]="value";
	${
	"GLOBALS"
}
["kavvkoqu"]="reward";
	${
	"GLOBALS"
}
["sslyjc"]="rewards";
	${
	"GLOBALS"
}
["nyirdexs"]="i";
	${
	"GLOBALS"
}
["qlhgmiru"]="amount";
	${
	"GLOBALS"
}
["rkmilbhroj"]="uridium_spins";
	${
	"GLOBALS"
}
["bfveqee"]="spent_spins";
	${
	"GLOBALS"
}
["hiwohvpq"]="free_spins";
	${
	"GLOBALS"
}
["ysakty"]="canSpin";
	${
	"GLOBALS"
}
["romogtq"]="price";
	${
	"GLOBALS"
}
["ccnjwqwn"]="uridium";
	${
	"GLOBALS"
}
["qulvxciz"]="infos";
	${
	"GLOBALS"
}
["cfwoexkmt"]="db";
	class GalaxyGates{
		public static function spin($amount,$gate){
		$vtkorsnp="start";
			${
			"GLOBALS"
		}
		["xgqujt"]="amount";
		$fwjiculyhv="i";
			${
			"GLOBALS"
		}
		["jljbop"]="allowed_amounts";
			${
			"GLOBALS"
		}
		["ryjwnx"]="req_logfiles";
		$ifpebbdr="allowed_amounts";
			${
			$vtkorsnp
		}
		=microtime(true);
		$fqlqjp="req_nano_hull";
		$rciuxldpbvbp="rewards";
			${
			$ifpebbdr
		}
		=array(1,5,50,100,500);
			${
			"GLOBALS"
		}
		["ndjoqmuisszc"]="gg_decoded";
		$wvjhuqnszh="rewards";
			${
			"GLOBALS"
		}
		["ramyerkte"]="req_in_cargo";
		$axqxhgiuch="premium";
			${
			"GLOBALS"
		}
		["sctaftmi"]="premium";
			${
			"GLOBALS"
		}
		["ejbxps"]="req_nano_hull";
			if(!in_array(${
				${
				"GLOBALS"
			}
			["xgqujt"]
		}
			,${
				${
				"GLOBALS"
			}
			["jljbop"]
		}
			)){
			return array(false,"Amount error",null,null,null,null);
		}
			${
				${
				"GLOBALS"
			}
			["cfwoexkmt"]
		}
		=new Database(DB_TYPE,DB_HOST,DB_NAME,DB_USER,DB_PASS);
			${
			"GLOBALS"
		}
		["shbbur"]="req_nano_hull";
		$krpbrycc="free_spins";
			${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		=$db->select("SELECT uridium,ggspins,techs,in_cargo,galaxy_gates FROM accounts WHERE id=:userId",array("userId"=>Session::get("id")));
			${
			"GLOBALS"
		}
		["ibuciopiby"]="gg_encoded";
			${
			$krpbrycc
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["ggspins"];
			${
				${
				"GLOBALS"
			}
			["ccnjwqwn"]
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["uridium"];
			${
				${
				"GLOBALS"
			}
			["sctaftmi"]
		}
		=User::current("premium")==1?true:false;
		$vpsyaiilra="req_techs";
			${
			"GLOBALS"
		}
		["drmwibnpipl"]="i";
			${
			"GLOBALS"
		}
		["czbpdha"]="req_techs";
			if(${
			$axqxhgiuch
		}
			){
				${
					${
					"GLOBALS"
				}
				["romogtq"]
			}
			=70;
		}
			else{
			$pxvpcudmzh="price";
				${
				$pxvpcudmzh
			}
			=100;
		}
			${
				${
				"GLOBALS"
			}
			["ysakty"]
		}
		=false;
			${
			"GLOBALS"
		}
		["jpsentlktfa"]="infos";
			if(${
				${
				"GLOBALS"
			}
			["hiwohvpq"]
		}
			>0){
				${
				"GLOBALS"
			}
			["ktmymov"]="amount";
				if(${
					${
					"GLOBALS"
				}
				["hiwohvpq"]
			}
				>=${
					${
					"GLOBALS"
				}
				["ktmymov"]
			}
				){
				$huudurmo="canSpin";
					${
					$huudurmo
				}
				=true;
				$hxnyddjgdq="amount";
					${
						${
						"GLOBALS"
					}
					["bfveqee"]
				}
					=${
					$hxnyddjgdq
				};
					${
					"GLOBALS"
				}
				["bsvmpblz"]="spent_uridium";
					${
						${
						"GLOBALS"
					}
					["bsvmpblz"]
				}
				=0;
			}
				else{
				$nuaveebf="free_spins";
					${
						${
						"GLOBALS"
					}
					["rkmilbhroj"]
				}
					=${
						${
						"GLOBALS"
					}
					["qlhgmiru"]
				}
					-${
					$nuaveebf
				};
					if((${
						${
						"GLOBALS"
					}
					["rkmilbhroj"]
				}
					*${
						${
						"GLOBALS"
					}
					["romogtq"]
				}
					)<=${
						${
						"GLOBALS"
					}
					["ccnjwqwn"]
				}
					){
						${
						"GLOBALS"
					}
					["bxrspxtvo"]="canSpin";
					$evfqjtcuxdc="price";
						${
						"GLOBALS"
					}
					["cmlsdtphda"]="spent_uridium";
						${
							${
							"GLOBALS"
						}
						["bxrspxtvo"]
					}
					=true;
						if(${
							${
							"GLOBALS"
						}
						["hiwohvpq"]
					}
						>0){
							${
							"GLOBALS"
						}
						["ygekkfy"]="free_spins";
							${
								${
								"GLOBALS"
							}
							["bfveqee"]
						}
							=${
								${
								"GLOBALS"
							}
							["ygekkfy"]
						};
					}
						${
							${
							"GLOBALS"
						}
						["cmlsdtphda"]
					}
						=${
							${
							"GLOBALS"
						}
						["rkmilbhroj"]
					}
						*${
						$evfqjtcuxdc
					};
				}
			}
		}
			else{
			$nvnvtubdxxs="uridium";
			$mibrekxre="amount";
				${
				"GLOBALS"
			}
			["nofptwwmyc"]="price";
				if((${
				$mibrekxre
			}
				*${
					${
					"GLOBALS"
				}
				["nofptwwmyc"]
			}
				)<=${
				$nvnvtubdxxs
			}
				){
					${
					"GLOBALS"
				}
				["xtbqwfgxyg"]="canSpin";
					${
					"GLOBALS"
				}
				["qmgemfjegmrq"]="spent_spins";
					${
						${
						"GLOBALS"
					}
					["xtbqwfgxyg"]
				}
				=true;
					${
						${
						"GLOBALS"
					}
					["qmgemfjegmrq"]
				}
				=0;
				$ggswixrc="spent_uridium";
					${
					$ggswixrc
				}
					=${
						${
						"GLOBALS"
					}
					["qlhgmiru"]
				}
					*${
						${
						"GLOBALS"
					}
					["romogtq"]
				};
			}
				else{
				return array(false,"error");
			}
		}
			if(!${
				${
				"GLOBALS"
			}
			["ysakty"]
		}
			){
			return array(false,"Not enough uridium",null,null,null,null);
		}
			${
			"GLOBALS"
		}
		["esrculefup"]="rewards";
		WebSocket::refresh("saveammos",Session::get("id"));
			${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
		=0;
		$etleeesgr="i";
		$mbjhdzyqk="req";
			${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
		=array("HIGH_TECH"=>array(1=>0,2=>0,3=>0,4=>0,5=>0),"NANO_HULL"=>0,"GATE_PART"=>0,"LOGFILE"=>0,"AMMO"=>array("changed"=>false,"MCB25"=>0,"MCB50"=>0,"SAB50"=>0,"UCB100"=>0),"SEPROM"=>0,"CBO"=>0,"XENOMIT"=>0);
			for(${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
		=0;
			${
				${
				"GLOBALS"
			}
			["drmwibnpipl"]
		}
			<${
				${
				"GLOBALS"
			}
			["qlhgmiru"]
		};
			${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
			++){
			$cjkoopqarc="value";
				${
				"GLOBALS"
			}
			["gydmfohel"]="value";
			$qzvsaqq="value";
				${
				"GLOBALS"
			}
			["hiaubyswfw"]="value";
				${
				"GLOBALS"
			}
			["qpiakizk"]="value";
				${
				"GLOBALS"
			}
			["nmyiprpnd"]="value";
				${
				$cjkoopqarc
			}
			=rand(0,100);
				if((${
					${
					"GLOBALS"
				}
				["hiaubyswfw"]
			}
				>=0&&${
					${
					"GLOBALS"
				}
				["nmyiprpnd"]
			}
				<10)){
				$mlrxnoirhni="reward";
					${
					"GLOBALS"
				}
				["rihnioe"]="rewards";
				$goijeofex="reward";
					${
					$mlrxnoirhni
				}
				=array("XENOMIT",rand(10,17));
					${
						${
						"GLOBALS"
					}
					["rihnioe"]
				}
					[${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
					[0]]+=${
					$goijeofex
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=10&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<20)){
					${
					"GLOBALS"
				}
				["xkjnrxa"]="reward";
					${
					"GLOBALS"
				}
				["vvrqfyelvqf"]="reward";
					${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				=array("NANO_HULL",2000);
					${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					[${
						${
						"GLOBALS"
					}
					["xkjnrxa"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["vvrqfyelvqf"]
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=20&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<26)){
				$wcpgyglw="reward";
					${
					"GLOBALS"
				}
				["motuof"]="reward";
				$pdkqmmdnlb="reward";
					${
					"GLOBALS"
				}
				["xlnbrneuxli"]="rewards";
					${
					$wcpgyglw
				}
				=array("GATE_PART",1);
					${
						${
						"GLOBALS"
					}
					["xlnbrneuxli"]
				}
					[${
						${
						"GLOBALS"
					}
					["motuof"]
				}
					[0]]+=${
					$pdkqmmdnlb
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["qpiakizk"]
			}
				>=26&&${
					${
					"GLOBALS"
				}
				["gydmfohel"]
			}
				<32)){
				$hrereysexlb="rewards";
					${
					"GLOBALS"
				}
				["drdxcxmc"]="reward";
				$zjwwwfcgvto="reward";
					${
					$zjwwwfcgvto
				}
				=array("LOGFILE",1);
					${
					$hrereysexlb
				}
					[${
						${
						"GLOBALS"
					}
					["drdxcxmc"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=32&&${
				$qzvsaqq
			}
				<80)){
				$aoivmiuovmdq="ammo_rand";
					${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
				["AMMO"]["changed"]=true;
				$itgfujrwjmqn="ammo_rand";
					${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
				=rand(1,16);
				$vjsmkic="ammo_rand";
					${
					"GLOBALS"
				}
				["ukpemnwiyjf"]="ammo_rand";
					${
					"GLOBALS"
				}
				["goswevdrtw"]="ammo_rand";
					if((${
					$aoivmiuovmdq
				}
					>=1&&${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					<5)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["MCB25"]+=rand(220,240);
				}
					elseif((${
					$vjsmkic
				}
					>=5&&${
					$itgfujrwjmqn
				}
					<9)){
						${
						"GLOBALS"
					}
					["wygpbgx"]="rewards";
						${
							${
							"GLOBALS"
						}
						["wygpbgx"]
					}
					["AMMO"]["MCB50"]+=rand(120,160);
				}
					elseif((${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					>=9&&${
						${
						"GLOBALS"
					}
					["ukpemnwiyjf"]
				}
					<13)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["SAB50"]+=rand(120,160);
				}
					elseif((${
						${
						"GLOBALS"
					}
					["goswevdrtw"]
				}
					>=13&&${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					<16)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["UCB100"]+=rand(40,80);
				}
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=80&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<100)){
					${
					"GLOBALS"
				}
				["xxobosdoz"]="reward";
					${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				=array("SEPROM",rand(1,2));
				$sklwklfzr="rewards";
					${
					$sklwklfzr
				}
					[${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["xxobosdoz"]
				}
				[1];
			}
		}
			${
			"GLOBALS"
		}
		["iekgofyey"]="i";
			${
			$vpsyaiilra
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["techs"];
			for(${
			$etleeesgr
		}
		=1;
			${
				${
				"GLOBALS"
			}
			["iekgofyey"]
		}
		<6;
			${
			$fwjiculyhv
		}
			++){
			$elyzbwhj="rewards";
				if(${
				$elyzbwhj
			}
				["HIGH_TECH"][${
					${
					"GLOBALS"
				}
				["nyirdexs"]
			}
				]>0){
				$msudfclu="techs";
					${
					"GLOBALS"
				}
				["qlqjiell"]="rewards";
					${
					"GLOBALS"
				}
				["umfgqgeeqxf"]="rewards";
					${
					"GLOBALS"
				}
				["nflkoiyy"]="techs";
					${
					"GLOBALS"
				}
				["ygmjdimd"]="rewards";
					${
					"GLOBALS"
				}
				["mlkfuuxujcjr"]="techs";
				$pofsict="req_techs";
				$bqnpqjmiqirl="techs";
					${
					$bqnpqjmiqirl
				}
					=explode("|",${
						${
						"GLOBALS"
					}
					["qulvxciz"]
				}
				[0]["techs"]);
					${
					$pofsict
				}
					=(${
					$msudfclu
				}
					[0]+${
						${
						"GLOBALS"
					}
					["qlqjiell"]
				}
					["HIGH_TECH"][1])."|".(${
						${
						"GLOBALS"
					}
					["nflkoiyy"]
				}
					[1]+${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					["HIGH_TECH"][2])."|".(${
						${
						"GLOBALS"
					}
					["rmtpkqn"]
				}
					[2]+${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					["HIGH_TECH"][3])."|".(${
						${
						"GLOBALS"
					}
					["mlkfuuxujcjr"]
				}
					[3]+${
						${
						"GLOBALS"
					}
					["umfgqgeeqxf"]
				}
					["HIGH_TECH"][4])."|".(${
						${
						"GLOBALS"
					}
					["rmtpkqn"]
				}
					[4]+${
						${
						"GLOBALS"
					}
					["ygmjdimd"]
				}
				["HIGH_TECH"][5]);
				break;
			}
		}
			${
				${
				"GLOBALS"
			}
			["ehvwvhnnp"]
		}
			=json_decode(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["in_cargo"],true);
			${
			"GLOBALS"
		}
		["viszuxure"]="gg_decoded";
			if(${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
			["SEPROM"]>0){
			$qkkodiqqdy="rewards";
				if(User::getCargoStorageLeft()>${
				$qkkodiqqdy
			}
				["SEPROM"]){
					${
					"GLOBALS"
				}
				["iludjwrlrz"]="rewards";
					${
						${
						"GLOBALS"
					}
					["ehvwvhnnp"]
				}
					["Seprom"]+=${
						${
						"GLOBALS"
					}
					["iludjwrlrz"]
				}
				["SEPROM"];
			}
		}
			if(${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
			["XENOMIT"]>0){
			$wpkcedb="rewards";
			$dffvzipygh="user_cargo";
				${
				$dffvzipygh
			}
				["Xenomit"]+=${
				$wpkcedb
			}
			["XENOMIT"];
		}
			${
			"GLOBALS"
		}
		["qzfvhunfctb"]="rewards";
			${
				${
				"GLOBALS"
			}
			["ramyerkte"]
		}
			=json_encode(${
				${
				"GLOBALS"
			}
			["ehvwvhnnp"]
		}
		,JSON_NUMERIC_CHECK);
			${
				${
				"GLOBALS"
			}
			["ryjwnx"]
		}
			=${
			$wvjhuqnszh
		}
		["LOGFILE"];
			${
			"GLOBALS"
		}
		["xpwztay"]="rewards";
			${
				${
				"GLOBALS"
			}
			["viszuxure"]
		}
			=json_decode(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["galaxy_gates"],true);
			if(${
				${
				"GLOBALS"
			}
			["esrculefup"]
		}
			["GATE_PART"]>0){
				${
				"GLOBALS"
			}
			["gygoqrgqu"]="key";
				foreach(${
					${
					"GLOBALS"
				}
				["imeatp"]
			}
				["galaxyGates"]as${
					${
					"GLOBALS"
				}
				["gygoqrgqu"]
			}
				=>${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				){
					${
					"GLOBALS"
				}
				["qexudcqp"]="gg_decoded";
					if(${
						${
						"GLOBALS"
					}
					["qexudcqp"]
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["jnkkxxhrpl"]
				}
					]["name"]==${
						${
						"GLOBALS"
					}
					["edugbqjaprr"]
				}
					){
						if((${
							${
							"GLOBALS"
						}
						["imeatp"]
					}
						["galaxyGates"][${
							${
							"GLOBALS"
						}
						["jnkkxxhrpl"]
					}
						]["parts"]+${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
						["GATE_PART"])<=${
							${
							"GLOBALS"
						}
						["imeatp"]
					}
						["galaxyGates"][${
							${
							"GLOBALS"
						}
						["jnkkxxhrpl"]
					}
						]["maxParts"]){
							${
								${
								"GLOBALS"
							}
							["imeatp"]
						}
							["galaxyGates"][${
								${
								"GLOBALS"
							}
							["jnkkxxhrpl"]
						}
							]["parts"]+=${
								${
								"GLOBALS"
							}
							["sslyjc"]
						}
						["GATE_PART"];
					}
						else{
						$svhttpt="key";
						$nlubxf="gg_decoded";
							${
								${
								"GLOBALS"
							}
							["imeatp"]
						}
							["galaxyGates"][${
								${
								"GLOBALS"
							}
							["jnkkxxhrpl"]
						}
							]["parts"]=${
							$nlubxf
						}
							["galaxyGates"][${
							$svhttpt
						}
						]["maxParts"];
					}
				}
			}
		}
			${
				${
				"GLOBALS"
			}
			["qbcojzdmz"]
		}
			=json_encode(${
				${
				"GLOBALS"
			}
			["ndjoqmuisszc"]
		}
		);
			${
			$fqlqjp
		}
		=User::current("nano_hull");
			${
				${
				"GLOBALS"
			}
			["xrfhtboromq"]
		}
			=(${
				${
				"GLOBALS"
			}
			["shbbur"]
		}
			+${
				${
				"GLOBALS"
			}
			["qzfvhunfctb"]
		}
			["NANO_HULL"]>100000?100000:${
				${
				"GLOBALS"
			}
			["xrfhtboromq"]
		}
			+${
			$rciuxldpbvbp
		}
		["NANO_HULL"]);
			${
			$mbjhdzyqk
		}
		=$db->prepare("UPDATE accounts SET uridium=uridium-:spent_uridium, ggspins=ggspins-:spent_spins, techs=:techs,\n\t\t\t\t\t\t\t\t\t\t\t\tlogfiles=logfiles+:logfiles, in_cargo=:in_cargo, galaxy_gates=:galaxy_gates,\n\t\t\t\t\t\t\t\t\t\t\t\tnano_hull=:nano_hull WHERE id=".Session::get("id"));
			$req->bindParam(":spent_uridium",${
				${
				"GLOBALS"
			}
			["mudbvko"]
		}
		);
			$req->bindParam(":spent_spins",${
				${
				"GLOBALS"
			}
			["bfveqee"]
		}
		);
			${
			"GLOBALS"
		}
		["dececkjjbdt"]="req_logfiles";
			$req->bindParam(":techs",${
				${
				"GLOBALS"
			}
			["czbpdha"]
		}
		);
			$req->bindParam(":logfiles",${
				${
				"GLOBALS"
			}
			["dececkjjbdt"]
		}
		);
			$req->bindParam(":in_cargo",${
				${
				"GLOBALS"
			}
			["rltmwp"]
		}
		);
			$req->bindParam(":galaxy_gates",${
				${
				"GLOBALS"
			}
			["ibuciopiby"]
		}
		);
			$req->bindParam(":nano_hull",${
				${
				"GLOBALS"
			}
			["ejbxps"]
		}
		);
		$kgqngogl="db";
		$req->execute();
			if(${
				${
				"GLOBALS"
			}
			["xpwztay"]
		}
			["AMMO"]["changed"]){
				${
				"GLOBALS"
			}
			["kcbvsdirp"]="req_ammo";
			$ynjudjolz="rewards";
			$mmohoebgw="req_ammo";
			$epuggeluz="rewards";
			$wwhcglybczfc="rewards";
				${
				"GLOBALS"
			}
			["lqzchqvyf"]="req_ammo";
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
			=$db->select("SELECT laser FROM users_ammo WHERE player_id=".Session::get("id"));
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				=json_decode(${
					${
					"GLOBALS"
				}
				["kcbvsdirp"]
			}
			[0]["laser"],true);
			$rnhphgpcbw="req_ammo";
				${
				"GLOBALS"
			}
			["dwpkrrjedmi"]="rewards";
				${
				$rnhphgpcbw
			}
				["ammo"][1]["amount"]+=${
				$ynjudjolz
			}
			["AMMO"]["MCB25"];
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				["ammo"][2]["amount"]+=${
				$epuggeluz
			}
			["AMMO"]["MCB50"];
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				["ammo"][3]["amount"]+=${
				$wwhcglybczfc
			}
			["AMMO"]["UCB100"];
			$bhmcflqopvvx="req_ammo";
				${
				"GLOBALS"
			}
			["mpqjfbwu"]="req_ammo";
				${
				$mmohoebgw
			}
				["ammo"][4]["amount"]+=${
					${
					"GLOBALS"
				}
				["dwpkrrjedmi"]
			}
			["AMMO"]["SAB50"];
				${
				$bhmcflqopvvx
			}
				=json_encode(${
					${
					"GLOBALS"
				}
				["lqzchqvyf"]
			}
			);
				${
					${
					"GLOBALS"
				}
				["pamhdnegfjhw"]
			}
			=$db->prepare("UPDATE users_ammo SET laser=:ammo WHERE player_id=".Session::get("id"));
				$req->bindValue(":ammo",${
					${
					"GLOBALS"
				}
				["mpqjfbwu"]
			}
			);
			$req->execute();
		}
			${
			"GLOBALS"
		}
		["juijbyq"]="rewards";
		WebSocket::refresh("cargo",Session::get("id"));
		WebSocket::refresh("ammo",Session::get("id"));
		WebSocket::refresh("gg",Session::get("id"));
			${
			$kgqngogl
		}
		=null;
			${
				${
				"GLOBALS"
			}
			["adsuaxpdub"]
		}
			=microtime(true)-${
				${
				"GLOBALS"
			}
			["rtyfolhsvy"]
		};
			return array(true,"success",${
				${
				"GLOBALS"
			}
			["juijbyq"]
		}
			,(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
			[0]["uridium"]-${
				${
				"GLOBALS"
			}
			["mudbvko"]
		}
			),(${
				${
				"GLOBALS"
			}
			["jpsentlktfa"]
		}
			[0]["ggspins"]-${
				${
				"GLOBALS"
			}
			["bfveqee"]
		}
			),${
				${
				"GLOBALS"
			}
			["adsuaxpdub"]
		}
		);
	}
		public static function prepareJump($gate){
		$wzpntyut="gg";
		$dayjjkxlerru="key";
			${
				${
				"GLOBALS"
			}
			["tiluqdcg"]
		}
		=User::current("galaxy_gates");
		$tcceywd="gg_decoded";
			${
			$tcceywd
		}
			=json_decode(${
			$wzpntyut
		}
		,true);
			foreach(${
				${
				"GLOBALS"
			}
			["imeatp"]
		}
			["galaxyGates"]as${
			$dayjjkxlerru
		}
			=>${
				${
				"GLOBALS"
			}
			["lyewgdydn"]
		}
			){
				if(${
					${
					"GLOBALS"
				}
				["imeatp"]
			}
				["galaxyGates"][${
					${
					"GLOBALS"
				}
				["jnkkxxhrpl"]
			}
				]["name"]==${
					${
					"GLOBALS"
				}
				["edugbqjaprr"]
			}
				){
				$bpnfteh="key";
				$yyqekt="gg_decoded";
				$jxhamdq="gg_decoded";
				$spbltmwwln="gg_decoded";
				$hkkggx="gg_decoded";
				$mseuidelj="key";
					if(${
						${
						"GLOBALS"
					}
					["imeatp"]
				}
					["galaxyGates"][${
					$bpnfteh
				}
					]["parts"]<${
					$spbltmwwln
				}
					["galaxyGates"][${
					$mseuidelj
				}
					]["maxParts"]){
					return array(false,"Not enough parts");
				}
					if(${
					$jxhamdq
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["jnkkxxhrpl"]
				}
					]["lives"]>0){
					return array(false,"Already prepared");
				}
					${
					"GLOBALS"
				}
				["lpvryczgqi"]="key";
					${
					"GLOBALS"
				}
				["ozhnputid"]="key";
					${
					$hkkggx
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["lpvryczgqi"]
				}
				]["parts"]=0;
					${
						${
						"GLOBALS"
					}
					["imeatp"]
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["ozhnputid"]
				}
				]["lives"]=3;
					${
						${
						"GLOBALS"
					}
					["qbcojzdmz"]
				}
					=json_encode(${
					$yyqekt
				}
				);
					${
					"GLOBALS"
				}
				["ezjedlpv"]="gg_encoded";
					User::setUserDataById("galaxy_gates",${
						${
						"GLOBALS"
					}
					["ezjedlpv"]
				}
				,Session::get("id"));
				WebSocket::refresh("gg",Session::get("id"));
				return array(true,"Jump prepared !");
			}
		}
		return array(false,"Invalid gate");
	}
}

	${
	"GLOBALS"
}
["tiluqdcg"]="gg";
	${
	"GLOBALS"
}
["rtyfolhsvy"]="start";
	${
	"GLOBALS"
}
["adsuaxpdub"]="time_elapsed_secs";
	${
	"GLOBALS"
}
["pamhdnegfjhw"]="req";
	${
	"GLOBALS"
}
["uymqdw"]="req_ammo";
	${
	"GLOBALS"
}
["rltmwp"]="req_in_cargo";
	${
	"GLOBALS"
}
["mudbvko"]="spent_uridium";
	${
	"GLOBALS"
}
["xrfhtboromq"]="req_nano_hull";
	${
	"GLOBALS"
}
["qbcojzdmz"]="gg_encoded";
	${
	"GLOBALS"
}
["edugbqjaprr"]="gate";
	${
	"GLOBALS"
}
["jnkkxxhrpl"]="key";
	${
	"GLOBALS"
}
["imeatp"]="gg_decoded";
	${
	"GLOBALS"
}
["ehvwvhnnp"]="user_cargo";
	${
	"GLOBALS"
}
["rmtpkqn"]="techs";
	${
	"GLOBALS"
}
["lgwxfrh"]="ammo_rand";
	${
	"GLOBALS"
}
["lyewgdydn"]="value";
	${
	"GLOBALS"
}
["kavvkoqu"]="reward";
	${
	"GLOBALS"
}
["sslyjc"]="rewards";
	${
	"GLOBALS"
}
["nyirdexs"]="i";
	${
	"GLOBALS"
}
["qlhgmiru"]="amount";
	${
	"GLOBALS"
}
["rkmilbhroj"]="uridium_spins";
	${
	"GLOBALS"
}
["bfveqee"]="spent_spins";
	${
	"GLOBALS"
}
["hiwohvpq"]="free_spins";
	${
	"GLOBALS"
}
["ysakty"]="canSpin";
	${
	"GLOBALS"
}
["romogtq"]="price";
	${
	"GLOBALS"
}
["ccnjwqwn"]="uridium";
	${
	"GLOBALS"
}
["qulvxciz"]="infos";
	${
	"GLOBALS"
}
["cfwoexkmt"]="db";
	class GalaxyGates{
		public static function spin($amount,$gate){
			${
			"GLOBALS"
		}
		["xgqujt"]="amount";
			${
			"GLOBALS"
		}
		["jljbop"]="allowed_amounts";
			${
			"GLOBALS"
		}
		["ryjwnx"]="req_logfiles";
			${
			"start"
		}
		=microtime(true);
			${
			"allowed_amounts"
		}
		=array(1,5,50,100,500);
			${
			"GLOBALS"
		}
		["ndjoqmuisszc"]="gg_decoded";
			${
			"GLOBALS"
		}
		["ramyerkte"]="req_in_cargo";
			${
			"GLOBALS"
		}
		["sctaftmi"]="premium";
			${
			"GLOBALS"
		}
		["ejbxps"]="req_nano_hull";
			if(!in_array(${
				${
				"GLOBALS"
			}
			["xgqujt"]
		}
			,${
				${
				"GLOBALS"
			}
			["jljbop"]
		}
			)){
			return array(false,"Amount error",null,null,null,null);
		}
			${
				${
				"GLOBALS"
			}
			["cfwoexkmt"]
		}
		=new Database(DB_TYPE,DB_HOST,DB_NAME,DB_USER,DB_PASS);
			${
			"GLOBALS"
		}
		["shbbur"]="req_nano_hull";
			${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		=$db->select("SELECT uridium,ggspins,techs,in_cargo,galaxy_gates FROM accounts WHERE id=:userId",array("userId"=>Session::get("id")));
			${
			"GLOBALS"
		}
		["ibuciopiby"]="gg_encoded";
			${
			"free_spins"
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["ggspins"];
			${
				${
				"GLOBALS"
			}
			["ccnjwqwn"]
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["uridium"];
			${
				${
				"GLOBALS"
			}
			["sctaftmi"]
		}
		=User::current("premium")==1?true:false;
			${
			"GLOBALS"
		}
		["drmwibnpipl"]="i";
			${
			"GLOBALS"
		}
		["czbpdha"]="req_techs";
			if(${
			"premium"
		}
			){
				${
					${
					"GLOBALS"
				}
				["romogtq"]
			}
			=70;
		}
			else{
				${
				"price"
			}
			=100;
		}
			${
				${
				"GLOBALS"
			}
			["ysakty"]
		}
		=false;
			${
			"GLOBALS"
		}
		["jpsentlktfa"]="infos";
			if(${
				${
				"GLOBALS"
			}
			["hiwohvpq"]
		}
			>0){
				${
				"GLOBALS"
			}
			["ktmymov"]="amount";
				if(${
					${
					"GLOBALS"
				}
				["hiwohvpq"]
			}
				>=${
					${
					"GLOBALS"
				}
				["ktmymov"]
			}
				){
					${
					"canSpin"
				}
				=true;
					${
						${
						"GLOBALS"
					}
					["bfveqee"]
				}
					=${
					"amount"
				};
					${
					"GLOBALS"
				}
				["bsvmpblz"]="spent_uridium";
					${
						${
						"GLOBALS"
					}
					["bsvmpblz"]
				}
				=0;
			}
				else{
					${
						${
						"GLOBALS"
					}
					["rkmilbhroj"]
				}
					=${
						${
						"GLOBALS"
					}
					["qlhgmiru"]
				}
					-${
					"free_spins"
				};
					if((${
						${
						"GLOBALS"
					}
					["rkmilbhroj"]
				}
					*${
						${
						"GLOBALS"
					}
					["romogtq"]
				}
					)<=${
						${
						"GLOBALS"
					}
					["ccnjwqwn"]
				}
					){
						${
						"GLOBALS"
					}
					["bxrspxtvo"]="canSpin";
						${
						"GLOBALS"
					}
					["cmlsdtphda"]="spent_uridium";
						${
							${
							"GLOBALS"
						}
						["bxrspxtvo"]
					}
					=true;
						if(${
							${
							"GLOBALS"
						}
						["hiwohvpq"]
					}
						>0){
							${
							"GLOBALS"
						}
						["ygekkfy"]="free_spins";
							${
								${
								"GLOBALS"
							}
							["bfveqee"]
						}
							=${
								${
								"GLOBALS"
							}
							["ygekkfy"]
						};
					}
						${
							${
							"GLOBALS"
						}
						["cmlsdtphda"]
					}
						=${
							${
							"GLOBALS"
						}
						["rkmilbhroj"]
					}
						*${
						"price"
					};
				}
			}
		}
			else{
				${
				"GLOBALS"
			}
			["nofptwwmyc"]="price";
				if((${
				"amount"
			}
				*${
					${
					"GLOBALS"
				}
				["nofptwwmyc"]
			}
				)<=${
				"uridium"
			}
				){
					${
					"GLOBALS"
				}
				["xtbqwfgxyg"]="canSpin";
					${
					"GLOBALS"
				}
				["qmgemfjegmrq"]="spent_spins";
					${
						${
						"GLOBALS"
					}
					["xtbqwfgxyg"]
				}
				=true;
					${
						${
						"GLOBALS"
					}
					["qmgemfjegmrq"]
				}
				=0;
					${
					"spent_uridium"
				}
					=${
						${
						"GLOBALS"
					}
					["qlhgmiru"]
				}
					*${
						${
						"GLOBALS"
					}
					["romogtq"]
				};
			}
				else{
				return array(false,"error");
			}
		}
			if(!${
				${
				"GLOBALS"
			}
			["ysakty"]
		}
			){
			return array(false,"Not enough uridium",null,null,null,null);
		}
			${
			"GLOBALS"
		}
		["esrculefup"]="rewards";
		WebSocket::refresh("saveammos",Session::get("id"));
			${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
		=0;
			${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
		=array("HIGH_TECH"=>array(1=>0,2=>0,3=>0,4=>0,5=>0),"NANO_HULL"=>0,"GATE_PART"=>0,"LOGFILE"=>0,"AMMO"=>array("changed"=>false,"MCB25"=>0,"MCB50"=>0,"SAB50"=>0,"UCB100"=>0),"SEPROM"=>0,"CBO"=>0,"XENOMIT"=>0);
			for(${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
		=0;
			${
				${
				"GLOBALS"
			}
			["drmwibnpipl"]
		}
			<${
				${
				"GLOBALS"
			}
			["qlhgmiru"]
		};
			${
				${
				"GLOBALS"
			}
			["nyirdexs"]
		}
			++){
				${
				"GLOBALS"
			}
			["gydmfohel"]="value";
				${
				"GLOBALS"
			}
			["hiaubyswfw"]="value";
				${
				"GLOBALS"
			}
			["qpiakizk"]="value";
				${
				"GLOBALS"
			}
			["nmyiprpnd"]="value";
				${
				"value"
			}
			=rand(0,100);
				if((${
					${
					"GLOBALS"
				}
				["hiaubyswfw"]
			}
				>=0&&${
					${
					"GLOBALS"
				}
				["nmyiprpnd"]
			}
				<10)){
					${
					"GLOBALS"
				}
				["rihnioe"]="rewards";
					${
					"reward"
				}
				=array("XENOMIT",rand(10,17));
					${
						${
						"GLOBALS"
					}
					["rihnioe"]
				}
					[${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
					[0]]+=${
					"reward"
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=10&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<20)){
					${
					"GLOBALS"
				}
				["xkjnrxa"]="reward";
					${
					"GLOBALS"
				}
				["vvrqfyelvqf"]="reward";
					${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				=array("NANO_HULL",2000);
					${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					[${
						${
						"GLOBALS"
					}
					["xkjnrxa"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["vvrqfyelvqf"]
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=20&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<26)){
					${
					"GLOBALS"
				}
				["motuof"]="reward";
					${
					"GLOBALS"
				}
				["xlnbrneuxli"]="rewards";
					${
					"reward"
				}
				=array("GATE_PART",1);
					${
						${
						"GLOBALS"
					}
					["xlnbrneuxli"]
				}
					[${
						${
						"GLOBALS"
					}
					["motuof"]
				}
					[0]]+=${
					"reward"
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["qpiakizk"]
			}
				>=26&&${
					${
					"GLOBALS"
				}
				["gydmfohel"]
			}
				<32)){
					${
					"GLOBALS"
				}
				["drdxcxmc"]="reward";
					${
					"reward"
				}
				=array("LOGFILE",1);
					${
					"rewards"
				}
					[${
						${
						"GLOBALS"
					}
					["drdxcxmc"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				[1];
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=32&&${
				"value"
			}
				<80)){
					${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
				["AMMO"]["changed"]=true;
					${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
				=rand(1,16);
					${
					"GLOBALS"
				}
				["ukpemnwiyjf"]="ammo_rand";
					${
					"GLOBALS"
				}
				["goswevdrtw"]="ammo_rand";
					if((${
					"ammo_rand"
				}
					>=1&&${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					<5)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["MCB25"]+=rand(220,240);
				}
					elseif((${
					"ammo_rand"
				}
					>=5&&${
					"ammo_rand"
				}
					<9)){
						${
						"GLOBALS"
					}
					["wygpbgx"]="rewards";
						${
							${
							"GLOBALS"
						}
						["wygpbgx"]
					}
					["AMMO"]["MCB50"]+=rand(120,160);
				}
					elseif((${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					>=9&&${
						${
						"GLOBALS"
					}
					["ukpemnwiyjf"]
				}
					<13)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["SAB50"]+=rand(120,160);
				}
					elseif((${
						${
						"GLOBALS"
					}
					["goswevdrtw"]
				}
					>=13&&${
						${
						"GLOBALS"
					}
					["lgwxfrh"]
				}
					<16)){
						${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
					["AMMO"]["UCB100"]+=rand(40,80);
				}
			}
				elseif((${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				>=80&&${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				<100)){
					${
					"GLOBALS"
				}
				["xxobosdoz"]="reward";
					${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
				=array("SEPROM",rand(1,2));
					${
					"rewards"
				}
					[${
						${
						"GLOBALS"
					}
					["kavvkoqu"]
				}
					[0]]+=${
						${
						"GLOBALS"
					}
					["xxobosdoz"]
				}
				[1];
			}
		}
			${
			"GLOBALS"
		}
		["iekgofyey"]="i";
			${
			"req_techs"
		}
			=${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["techs"];
			for(${
			"i"
		}
		=1;
			${
				${
				"GLOBALS"
			}
			["iekgofyey"]
		}
		<6;
			${
			"i"
		}
			++){
				if(${
				"rewards"
			}
				["HIGH_TECH"][${
					${
					"GLOBALS"
				}
				["nyirdexs"]
			}
				]>0){
					${
					"GLOBALS"
				}
				["qlqjiell"]="rewards";
					${
					"GLOBALS"
				}
				["umfgqgeeqxf"]="rewards";
					${
					"GLOBALS"
				}
				["nflkoiyy"]="techs";
					${
					"GLOBALS"
				}
				["ygmjdimd"]="rewards";
					${
					"GLOBALS"
				}
				["mlkfuuxujcjr"]="techs";
					${
					"techs"
				}
					=explode("|",${
						${
						"GLOBALS"
					}
					["qulvxciz"]
				}
				[0]["techs"]);
					${
					"req_techs"
				}
					=(${
					"techs"
				}
					[0]+${
						${
						"GLOBALS"
					}
					["qlqjiell"]
				}
					["HIGH_TECH"][1])."|".(${
						${
						"GLOBALS"
					}
					["nflkoiyy"]
				}
					[1]+${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					["HIGH_TECH"][2])."|".(${
						${
						"GLOBALS"
					}
					["rmtpkqn"]
				}
					[2]+${
						${
						"GLOBALS"
					}
					["sslyjc"]
				}
					["HIGH_TECH"][3])."|".(${
						${
						"GLOBALS"
					}
					["mlkfuuxujcjr"]
				}
					[3]+${
						${
						"GLOBALS"
					}
					["umfgqgeeqxf"]
				}
					["HIGH_TECH"][4])."|".(${
						${
						"GLOBALS"
					}
					["rmtpkqn"]
				}
					[4]+${
						${
						"GLOBALS"
					}
					["ygmjdimd"]
				}
				["HIGH_TECH"][5]);
				break;
			}
		}
			${
				${
				"GLOBALS"
			}
			["ehvwvhnnp"]
		}
			=json_decode(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["in_cargo"],true);
			${
			"GLOBALS"
		}
		["viszuxure"]="gg_decoded";
			if(${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
			["SEPROM"]>0){
				if(User::getCargoStorageLeft()>${
				"rewards"
			}
				["SEPROM"]){
					${
					"GLOBALS"
				}
				["iludjwrlrz"]="rewards";
					${
						${
						"GLOBALS"
					}
					["ehvwvhnnp"]
				}
					["Seprom"]+=${
						${
						"GLOBALS"
					}
					["iludjwrlrz"]
				}
				["SEPROM"];
			}
		}
			if(${
				${
				"GLOBALS"
			}
			["sslyjc"]
		}
			["XENOMIT"]>0){
				${
				"user_cargo"
			}
				["Xenomit"]+=${
				"rewards"
			}
			["XENOMIT"];
		}
			${
			"GLOBALS"
		}
		["qzfvhunfctb"]="rewards";
			${
				${
				"GLOBALS"
			}
			["ramyerkte"]
		}
			=json_encode(${
				${
				"GLOBALS"
			}
			["ehvwvhnnp"]
		}
		,JSON_NUMERIC_CHECK);
			${
				${
				"GLOBALS"
			}
			["ryjwnx"]
		}
			=${
			"rewards"
		}
		["LOGFILE"];
			${
			"GLOBALS"
		}
		["xpwztay"]="rewards";
			${
				${
				"GLOBALS"
			}
			["viszuxure"]
		}
			=json_decode(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
		[0]["galaxy_gates"],true);
			if(${
				${
				"GLOBALS"
			}
			["esrculefup"]
		}
			["GATE_PART"]>0){
				${
				"GLOBALS"
			}
			["gygoqrgqu"]="key";
				foreach(${
					${
					"GLOBALS"
				}
				["imeatp"]
			}
				["galaxyGates"]as${
					${
					"GLOBALS"
				}
				["gygoqrgqu"]
			}
				=>${
					${
					"GLOBALS"
				}
				["lyewgdydn"]
			}
				){
					${
					"GLOBALS"
				}
				["qexudcqp"]="gg_decoded";
					if(${
						${
						"GLOBALS"
					}
					["qexudcqp"]
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["jnkkxxhrpl"]
				}
					]["name"]==${
						${
						"GLOBALS"
					}
					["edugbqjaprr"]
				}
					){
						if((${
							${
							"GLOBALS"
						}
						["imeatp"]
					}
						["galaxyGates"][${
							${
							"GLOBALS"
						}
						["jnkkxxhrpl"]
					}
						]["parts"]+${
							${
							"GLOBALS"
						}
						["sslyjc"]
					}
						["GATE_PART"])<=${
							${
							"GLOBALS"
						}
						["imeatp"]
					}
						["galaxyGates"][${
							${
							"GLOBALS"
						}
						["jnkkxxhrpl"]
					}
						]["maxParts"]){
							${
								${
								"GLOBALS"
							}
							["imeatp"]
						}
							["galaxyGates"][${
								${
								"GLOBALS"
							}
							["jnkkxxhrpl"]
						}
							]["parts"]+=${
								${
								"GLOBALS"
							}
							["sslyjc"]
						}
						["GATE_PART"];
					}
						else{
							${
								${
								"GLOBALS"
							}
							["imeatp"]
						}
							["galaxyGates"][${
								${
								"GLOBALS"
							}
							["jnkkxxhrpl"]
						}
							]["parts"]=${
							"gg_decoded"
						}
							["galaxyGates"][${
							"key"
						}
						]["maxParts"];
					}
				}
			}
		}
			${
				${
				"GLOBALS"
			}
			["qbcojzdmz"]
		}
			=json_encode(${
				${
				"GLOBALS"
			}
			["ndjoqmuisszc"]
		}
		);
			${
			"req_nano_hull"
		}
		=User::current("nano_hull");
			${
				${
				"GLOBALS"
			}
			["xrfhtboromq"]
		}
			=(${
				${
				"GLOBALS"
			}
			["shbbur"]
		}
			+${
				${
				"GLOBALS"
			}
			["qzfvhunfctb"]
		}
			["NANO_HULL"]>100000?100000:${
				${
				"GLOBALS"
			}
			["xrfhtboromq"]
		}
			+${
			"rewards"
		}
		["NANO_HULL"]);
			${
			"req"
		}
		=$db->prepare("UPDATE accounts SET uridium=uridium-:spent_uridium, ggspins=ggspins-:spent_spins, techs=:techs,\n\t\t\t\t\t\t\t\t\t\t\t\tlogfiles=logfiles+:logfiles, in_cargo=:in_cargo, galaxy_gates=:galaxy_gates,\n\t\t\t\t\t\t\t\t\t\t\t\tnano_hull=:nano_hull WHERE id=".Session::get("id"));
			$req->bindParam(":spent_uridium",${
				${
				"GLOBALS"
			}
			["mudbvko"]
		}
		);
			$req->bindParam(":spent_spins",${
				${
				"GLOBALS"
			}
			["bfveqee"]
		}
		);
			${
			"GLOBALS"
		}
		["dececkjjbdt"]="req_logfiles";
			$req->bindParam(":techs",${
				${
				"GLOBALS"
			}
			["czbpdha"]
		}
		);
			$req->bindParam(":logfiles",${
				${
				"GLOBALS"
			}
			["dececkjjbdt"]
		}
		);
			$req->bindParam(":in_cargo",${
				${
				"GLOBALS"
			}
			["rltmwp"]
		}
		);
			$req->bindParam(":galaxy_gates",${
				${
				"GLOBALS"
			}
			["ibuciopiby"]
		}
		);
			$req->bindParam(":nano_hull",${
				${
				"GLOBALS"
			}
			["ejbxps"]
		}
		);
		$req->execute();
			if(${
				${
				"GLOBALS"
			}
			["xpwztay"]
		}
			["AMMO"]["changed"]){
				${
				"GLOBALS"
			}
			["kcbvsdirp"]="req_ammo";
				${
				"GLOBALS"
			}
			["lqzchqvyf"]="req_ammo";
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
			=$db->select("SELECT laser FROM users_ammo WHERE player_id=".Session::get("id"));
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				=json_decode(${
					${
					"GLOBALS"
				}
				["kcbvsdirp"]
			}
			[0]["laser"],true);
				${
				"GLOBALS"
			}
			["dwpkrrjedmi"]="rewards";
				${
				"req_ammo"
			}
				["ammo"][1]["amount"]+=${
				"rewards"
			}
			["AMMO"]["MCB25"];
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				["ammo"][2]["amount"]+=${
				"rewards"
			}
			["AMMO"]["MCB50"];
				${
					${
					"GLOBALS"
				}
				["uymqdw"]
			}
				["ammo"][3]["amount"]+=${
				"rewards"
			}
			["AMMO"]["UCB100"];
				${
				"GLOBALS"
			}
			["mpqjfbwu"]="req_ammo";
				${
				"req_ammo"
			}
				["ammo"][4]["amount"]+=${
					${
					"GLOBALS"
				}
				["dwpkrrjedmi"]
			}
			["AMMO"]["SAB50"];
				${
				"req_ammo"
			}
				=json_encode(${
					${
					"GLOBALS"
				}
				["lqzchqvyf"]
			}
			);
				${
					${
					"GLOBALS"
				}
				["pamhdnegfjhw"]
			}
			=$db->prepare("UPDATE users_ammo SET laser=:ammo WHERE player_id=".Session::get("id"));
				$req->bindValue(":ammo",${
					${
					"GLOBALS"
				}
				["mpqjfbwu"]
			}
			);
			$req->execute();
		}
			${
			"GLOBALS"
		}
		["juijbyq"]="rewards";
		WebSocket::refresh("cargo",Session::get("id"));
		WebSocket::refresh("ammo",Session::get("id"));
		WebSocket::refresh("gg",Session::get("id"));
			${
			"db"
		}
		=null;
			${
				${
				"GLOBALS"
			}
			["adsuaxpdub"]
		}
			=microtime(true)-${
				${
				"GLOBALS"
			}
			["rtyfolhsvy"]
		};
			return array(true,"success",${
				${
				"GLOBALS"
			}
			["juijbyq"]
		}
			,(${
				${
				"GLOBALS"
			}
			["qulvxciz"]
		}
			[0]["uridium"]-${
				${
				"GLOBALS"
			}
			["mudbvko"]
		}
			),(${
				${
				"GLOBALS"
			}
			["jpsentlktfa"]
		}
			[0]["ggspins"]-${
				${
				"GLOBALS"
			}
			["bfveqee"]
		}
			),${
				${
				"GLOBALS"
			}
			["adsuaxpdub"]
		}
		);
	}
		public static function prepareJump($gate){
			${
				${
				"GLOBALS"
			}
			["tiluqdcg"]
		}
		=User::current("galaxy_gates");
			${
			"gg_decoded"
		}
			=json_decode(${
			"gg"
		}
		,true);
			foreach(${
				${
				"GLOBALS"
			}
			["imeatp"]
		}
			["galaxyGates"]as${
			"key"
		}
			=>${
				${
				"GLOBALS"
			}
			["lyewgdydn"]
		}
			){
				if(${
					${
					"GLOBALS"
				}
				["imeatp"]
			}
				["galaxyGates"][${
					${
					"GLOBALS"
				}
				["jnkkxxhrpl"]
			}
				]["name"]==${
					${
					"GLOBALS"
				}
				["edugbqjaprr"]
			}
				){
					if(${
						${
						"GLOBALS"
					}
					["imeatp"]
				}
					["galaxyGates"][${
					"key"
				}
					]["parts"]<${
					"gg_decoded"
				}
					["galaxyGates"][${
					"key"
				}
					]["maxParts"]){
					return array(false,"Not enough parts");
				}
					if(${
					"gg_decoded"
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["jnkkxxhrpl"]
				}
					]["lives"]>0){
					return array(false,"Already prepared");
				}
					${
					"GLOBALS"
				}
				["lpvryczgqi"]="key";
					${
					"GLOBALS"
				}
				["ozhnputid"]="key";
					${
					"gg_decoded"
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["lpvryczgqi"]
				}
				]["parts"]=0;
					${
						${
						"GLOBALS"
					}
					["imeatp"]
				}
					["galaxyGates"][${
						${
						"GLOBALS"
					}
					["ozhnputid"]
				}
				]["lives"]=3;
					${
						${
						"GLOBALS"
					}
					["qbcojzdmz"]
				}
					=json_encode(${
					"gg_decoded"
				}
				);
					${
					"GLOBALS"
				}
				["ezjedlpv"]="gg_encoded";
					User::setUserDataById("galaxy_gates",${
						${
						"GLOBALS"
					}
					["ezjedlpv"]
				}
				,Session::get("id"));
				WebSocket::refresh("gg",Session::get("id"));
				return array(true,"Jump prepared !");
			}
		}
		return array(false,"Invalid gate");
	}
}



© 2023 Quttera Ltd. All rights reserved.