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


Show other level

goto Mh9r0;
 umT6M: require "../../../system/config_addons.php";
 goto dWMSz;
	 FOgxp: function EditsName() {
	 global $mysqli;
	 global $data;
	 $NesName = escape($_POST["NewName"]);
	 $user_id = $data["user_id"];
	 $custom2 = $mysqli->query("SELECT custom2 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom2;
		 if ($custom2 === "ruby") {
		 $amount = intval($mysqli->query("SELECT custom1 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom1);
			 $user_balance = intval($mysqli->query("SELECT user_ruby FROM boom_users WHERE user_id = '{
			$user_id
		}
		'")->fetch_object()->user_ruby);
		 $balance_column = "user_ruby";
		 
	}
		 elseif ($custom2 === "gold") {
		 $amount = intval($mysqli->query("SELECT custom3 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom3);
			 $user_balance = intval($mysqli->query("SELECT user_gold FROM boom_users WHERE user_id = '{
			$user_id
		}
		'")->fetch_object()->user_gold);
		 $balance_column = "user_gold";
		 
	}
		 else {
		 return 3;
		 
	}
		 $existing_user = $mysqli->query("SELECT user_id FROM boom_users WHERE user_name = '{
		$NesName
	}
	'")->fetch_object();
		 if ($existing_user) {
		 return 4;
		 
	}
		 if ($user_balance >= $amount) {
			 $mysqli->query("UPDATE boom_users SET user_name = '{
			$NesName
		}
			', {
			$balance_column
		}
			 = {
			$balance_column
		}
			 - '{
			$amount
		}
			' WHERE user_id = '{
			$user_id
		}
		'");
		 return 5;
		 
	}
	 return 3;
	 
}
 goto dhafW;
	 dWMSz: function SavesPanelsEditName() {
	 global $mysqli;
	 $SaPanelsLazAmo = escape($_POST["SetPanlesConfig"]);
	 $AmountPanels = escape($_POST["Amount"]);
	 $AmountChanges = escape($_POST["AmountChanges"]);
		 if ($AmountChanges === "ruby") {
			 $mysqli->query("UPDATE boom_addons SET addons_access = {
			$SaPanelsLazAmo
		}
			, custom3 = {
			$AmountPanels
		}
		, custom2 = 'ruby' WHERE addons = 'Edit_Name'");
		 
	}
		 else {
			 if ($AmountChanges === "gold") {
				 $mysqli->query("UPDATE boom_addons SET addons_access = {
				$SaPanelsLazAmo
			}
				, custom1 = {
				$AmountPanels
			}
			, custom2 = 'gold' WHERE addons = 'Edit_Name'");
			 
		}
		 
	}
	 redisUpdateAddons("Edit_Name");
	 return 5;
	 
}
 goto WbcG4;
	 dhafW: if (isset($_POST["NewName"])) {
	 echo EditsName();
	 die;
	 
}
 goto Zb0g8;
	 WbcG4: if (isset($_POST["SetPanlesConfig"], $_POST["Amount"], $_POST["AmountChanges"]) && canManageAddons()) {
	 echo SavesPanelsEditName();
	 die;
	 
}
 goto FOgxp;
 Mh9r0: $load_addons = "Edit_Name";
 goto umT6M;
 Zb0g8:

goto Mh9r0;
 umT6M: require "../../../system/config_addons.php";
 goto dWMSz;
	 FOgxp: function EditsName() {
	 global $mysqli;
	 global $data;
	 $NesName = escape($_POST["NewName"]);
	 $user_id = $data["user_id"];
	 $custom2 = $mysqli->query("SELECT custom2 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom2;
		 if ($custom2 === "ruby") {
		 $amount = intval($mysqli->query("SELECT custom1 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom1);
			 $user_balance = intval($mysqli->query("SELECT user_ruby FROM boom_users WHERE user_id = '{
			$user_id
		}
		'")->fetch_object()->user_ruby);
		  
	}
		 elseif ($custom2 === "gold") {
		 $amount = intval($mysqli->query("SELECT custom3 FROM boom_addons WHERE addons = 'Edit_Name'")->fetch_object()->custom3);
			 $user_balance = intval($mysqli->query("SELECT user_gold FROM boom_users WHERE user_id = '{
			$user_id
		}
		'")->fetch_object()->user_gold);
		 "user_ruby" = "user_gold";
		 
	}
		 else {
		 return 3;
		 
	}
		 $existing_user = $mysqli->query("SELECT user_id FROM boom_users WHERE user_name = '{
		$NesName
	}
	'")->fetch_object();
		 if ($existing_user) {
		 return 4;
		 
	}
		 if ($user_balance >= $amount) {
			 $mysqli->query("UPDATE boom_users SET user_name = '{
			$NesName
		}
			', {
			"user_ruby"
		}
			 = {
			"user_ruby"
		}
			 - '{
			$amount
		}
			' WHERE user_id = '{
			$user_id
		}
		'");
		 return 5;
		 
	}
	 return 3;
	 
}
 goto dhafW;
	 dWMSz: function SavesPanelsEditName() {
	 global $mysqli;
	 $SaPanelsLazAmo = escape($_POST["SetPanlesConfig"]);
	 $AmountPanels = escape($_POST["Amount"]);
	 $AmountChanges = escape($_POST["AmountChanges"]);
		 if ($AmountChanges === "ruby") {
			 $mysqli->query("UPDATE boom_addons SET addons_access = {
			$SaPanelsLazAmo
		}
			, custom3 = {
			$AmountPanels
		}
		, custom2 = 'ruby' WHERE addons = 'Edit_Name'");
		 
	}
		 else {
			 if ($AmountChanges === "gold") {
				 $mysqli->query("UPDATE boom_addons SET addons_access = {
				$SaPanelsLazAmo
			}
				, custom1 = {
				$AmountPanels
			}
			, custom2 = 'gold' WHERE addons = 'Edit_Name'");
			 
		}
		 
	}
	 redisUpdateAddons("Edit_Name");
	 return 5;
	 
}
 goto WbcG4;
	 dhafW: if (isset($_POST["NewName"])) {
	 echo EditsName();
	 die;
	 
}
 goto Zb0g8;
	 WbcG4: if (isset($_POST["SetPanlesConfig"], $_POST["Amount"], $_POST["AmountChanges"]) && canManageAddons()) {
	 echo SavesPanelsEditName();
	 die;
	 
}
 goto FOgxp;
 Mh9r0: $load_addons = "Edit_Name";
 goto umT6M;
 Zb0g8:



© 2023 Quttera Ltd. All rights reserved.