Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function get_app_info($v){ $msuwbtql="c\x6f"; ${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x77\x6..

Decoded Output download

<?  function get_app_info($v){ 
	$msuwbtql="co"; 
	${"GLOBALS"}["rwepsbej"]="co"; 
	${"GLOBALS"}["spsonnvei"]="v"; 
	switch(${${"GLOBALS"}["spsonnvei"]}){ 
		case"version":return CURRENT_VERSION; 
		break; 
		case"version_latest": 
		if(isset($_SESSION["version_latest"])) 
			return $_SESSION["version_latest"]; 
		else 
			return; 
		break; 
		case"cookie_domain": 
			return COOKIE_DOMAIN; 
		break; 
		case"path": 
		return APP_PATH; 
		break; 
		case"s3_key": 
		if(isset($_SESSION["s3_key"])) 
			return$_SESSION["s3_key"]; 
		else 
			return; 
		break; 
		case"s3_secret": 
		if(isset($_SESSION["s3_secret"])) 
			return$_SESSION["s3_secret"]; 
		else 
			return; 
		break; 
		case"app":if(isset($_GET["i"]))return$_GET["i"]; 
		else return; 
		break; 
		case"userID":if(isset($_SESSION["userID"]))return$_SESSION["userID"]; 
		else return; 
		break; 
		case"name":if(isset($_SESSION["name"]))return$_SESSION["name"]; 
		else return; 
		break; 
		case"company":if(isset($_SESSION["company"]))${$msuwbtql}=$_SESSION["company"]; 
		else 
			${${"GLOBALS"}["tfrvbebm"]}=""; 
		if(${${"GLOBALS"}["rwepsbej"]}=="")return company_name(); 
		else return${${"GLOBALS"}["tfrvbebm"]}; 
		break; 
		case"email":if(isset($_SESSION["email"]))return$_SESSION["email"]; 
		else return; 
		break; 
		case"password":if(isset($_SESSION["password"]))return$_SESSION["password"]; 
		else return; 
		break; 
		case"api_key":if(isset($_SESSION["api_key"]))return$_SESSION["api_key"]; 
		else return; 
		break; 
		case"license":if(isset($_SESSION["license"]))return$_SESSION["license"]; 
		else return; 
		break; 
		case"is_sub_user":if(isset($_SESSION["is_sub_user"]))return$_SESSION["is_sub_user"]; 
		else return; 
		break; 
		case"main_userID":if(isset($_SESSION["tied_to"]))return$_SESSION["tied_to"]; 
		else return; 
		break; 
		case"restricted_to_app":if(isset($_SESSION["restricted_to_app"]))return$_SESSION["restricted_to_app"]; 
		else return; 
		break; 
		case"timezone": 
		if(isset($_SESSION["timezone"])) 
			return$_SESSION["timezone"]; 
		else 
			return; 
		break; 
		case"language": 
		if(isset($_SESSION["language"])) 
			return$_SESSION["language"]; 
		else 
			return; 
		break; 
		case"cron_sending": 
		if($_SESSION["cron"]==1) 
			return true; 
		else 
			return false; 
		break; 
		case"ses_endpoint": 
		if(isset($_SESSION["ses_endpoint"])) 
			return $_SESSION["ses_endpoint"]; 
		else 
			return; 
		break; 
		case"ses_region":if(isset($_SESSION["ses_endpoint"])&&$_SESSION["ses_endpoint"]=="email.us-east-1.amazonaws.com")return"N. Virginia"; 
		else if(isset($_SESSION["ses_endpoint"])&&$_SESSION["ses_endpoint"]=="email.us-west-2.amazonaws.com")return"Oregon"; 
		else if(isset($_SESSION["ses_endpoint"])&&$_SESSION["ses_endpoint"]=="email.eu-west-1.amazonaws.com")return"Ireland"; 
		else if(!isset($_SESSION["ses_endpoint"]))return"No value"; 
		else return; 
		break; 
	} 
} ?>

Did this file decode correctly?

Original Code

function get_app_info($v){
	$msuwbtql="c\x6f";
	${"\x47\x4c\x4fB\x41\x4c\x53"}["r\x77\x65\x70\x73b\x65j"]="c\x6f";
	${"G\x4c\x4f\x42AL\x53"}["\x73\x70\x73onn\x76e\x69"]="\x76";
	switch(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73\x70\x73\x6fnnv\x65\x69"]}){
		case"ver\x73i\x6f\x6e":return CURRENT_VERSION;
		break;
		case"\x76er\x73\x69on\x5f\x6ca\x74\x65\x73\x74":
		if(isset($_SESSION["\x76\x65\x72\x73\x69\x6fn_\x6ca\x74est"]))
			return $_SESSION["\x76\x65\x72si\x6f\x6e\x5fla\x74\x65\x73t"];
		else
			return;
		break;
		case"co\x6fkie\x5f\x64o\x6d\x61\x69\x6e":
			return COOKIE_DOMAIN;
		break;
		case"pa\x74\x68":
		return APP_PATH;
		break;
		case"\x73\x33_key":
		if(isset($_SESSION["s\x33\x5f\x6be\x79"]))
			return$_SESSION["s3_k\x65y"];
		else
			return;
		break;
		case"s\x33_secret":
		if(isset($_SESSION["s3\x5fs\x65\x63r\x65t"]))
			return$_SESSION["\x733_\x73e\x63r\x65\x74"];
		else
			return;
		break;
		case"ap\x70":if(isset($_GET["\x69"]))return$_GET["\x69"];
		else return;
		break;
		case"\x75\x73e\x72I\x44":if(isset($_SESSION["\x75s\x65\x72\x49D"]))return$_SESSION["\x75\x73\x65r\x49\x44"];
		else return;
		break;
		case"\x6eame":if(isset($_SESSION["n\x61me"]))return$_SESSION["na\x6de"];
		else return;
		break;
		case"c\x6f\x6dpany":if(isset($_SESSION["c\x6f\x6dp\x61\x6ey"]))${$msuwbtql}=$_SESSION["co\x6d\x70\x61\x6e\x79"];
		else
			${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x66r\x76\x62\x65b\x6d"]}="";
		if(${${"GL\x4fB\x41L\x53"}["r\x77\x65p\x73b\x65j"]}=="")return company_name();
		else return${${"G\x4c\x4fB\x41L\x53"}["\x74\x66rvb\x65\x62\x6d"]};
		break;
		case"em\x61i\x6c":if(isset($_SESSION["e\x6dail"]))return$_SESSION["e\x6da\x69l"];
		else return;
		break;
		case"\x70ass\x77\x6f\x72d":if(isset($_SESSION["pas\x73\x77ord"]))return$_SESSION["pa\x73s\x77o\x72\x64"];
		else return;
		break;
		case"\x61pi_\x6b\x65\x79":if(isset($_SESSION["\x61pi_\x6bey"]))return$_SESSION["a\x70i\x5f\x6bey"];
		else return;
		break;
		case"l\x69\x63\x65\x6es\x65":if(isset($_SESSION["l\x69\x63e\x6es\x65"]))return$_SESSION["l\x69ce\x6e\x73e"];
		else return;
		break;
		case"\x69\x73\x5fsub\x5f\x75s\x65r":if(isset($_SESSION["\x69s\x5f\x73u\x62\x5f\x75\x73\x65r"]))return$_SESSION["\x69s\x5fs\x75\x62\x5fus\x65r"];
		else return;
		break;
		case"m\x61\x69\x6e\x5f\x75s\x65rID":if(isset($_SESSION["t\x69e\x64_\x74o"]))return$_SESSION["t\x69\x65\x64_to"];
		else return;
		break;
		case"\x72es\x74\x72ic\x74\x65d\x5f\x74o\x5f\x61p\x70":if(isset($_SESSION["restricte\x64\x5ft\x6f\x5f\x61p\x70"]))return$_SESSION["re\x73tr\x69\x63\x74ed\x5f\x74\x6f_a\x70\x70"];
		else return;
		break;
		case"t\x69\x6dez\x6fn\x65":
		if(isset($_SESSION["t\x69\x6d\x65zo\x6e\x65"]))
			return$_SESSION["ti\x6d\x65z\x6fne"];
		else
			return;
		break;
		case"\x6cang\x75\x61ge":
		if(isset($_SESSION["\x6c\x61ng\x75ag\x65"]))
			return$_SESSION["l\x61nguage"];
		else
			return;
		break;
		case"cr\x6fn_se\x6ed\x69\x6eg":
		if($_SESSION["\x63\x72\x6f\x6e"]==1)
			return true;
		else
			return false;
		break;
		case"se\x73\x5fe\x6e\x64po\x69\x6et":
		if(isset($_SESSION["s\x65\x73_en\x64\x70\x6fi\x6et"]))
			return $_SESSION["ses\x5fe\x6edp\x6fi\x6e\x74"];
		else
			return;
		break;
		case"s\x65\x73\x5fregi\x6f\x6e":if(isset($_SESSION["\x73\x65s\x5fe\x6e\x64\x70oi\x6e\x74"])&&$_SESSION["s\x65\x73_\x65n\x64p\x6fi\x6et"]=="e\x6d\x61i\x6c.us-\x65as\x74-1.\x61\x6da\x7a\x6f\x6e\x61\x77s\x2e\x63o\x6d")return"N\x2e\x20\x56i\x72g\x69n\x69a";
		else if(isset($_SESSION["\x73\x65\x73_\x65\x6e\x64\x70oint"])&&$_SESSION["se\x73\x5f\x65nd\x70\x6fi\x6et"]=="\x65\x6d\x61i\x6c\x2e\x75\x73-w\x65st-2\x2e\x61mazo\x6eaws\x2e\x63o\x6d")return"\x4fr\x65g\x6fn";
		else if(isset($_SESSION["ses\x5fe\x6e\x64\x70o\x69nt"])&&$_SESSION["s\x65\x73_\x65\x6e\x64\x70\x6f\x69nt"]=="\x65\x6d\x61il.\x65\x75-west-1.\x61maz\x6f\x6e\x61ws\x2eco\x6d")return"\x49\x72\x65\x6c\x61n\x64";
		else if(!isset($_SESSION["s\x65\x73\x5fendpoi\x6et"]))return"\x4eo\x20\x76\x61l\x75\x65";
		else return;
		break;
	}
}

Function Calls

None

Variables

None

Stats

MD5 6ac1feb2a4dc8709cca8c0171685d788
Eval Count 0
Decode Time 99 ms