deivisonarthur
7/30/2013 - 2:38 AM

teste.php


${"GLOBALS"}["xgqwylqndun"]="co";${"GLOBALS"}["qozmiszqixo"]="v";${"GLOBALS"}["wouuyxig"]="key";${"GLOBALS"}["kjikbqjohq"]="atts";${"GLOBALS"}["cmchxtqkeh"]="email";${"GLOBALS"}["qtzlxxbfi"]="url";${"GLOBALS"}["irxfypt"]="data";${"GLOBALS"}["bkgeib"]="ch";${"GLOBALS"}["kfzngsjii"]="longshort";${"GLOBALS"}["qdkawdn"]="val";${"GLOBALS"}["tjhzwrchmrh"]="diff";${"GLOBALS"}["pvlwcqd"]="license";${"GLOBALS"}["sdlczcc"]="version_latest";${"GLOBALS"}["melffmiitspc"]="ip";${"GLOBALS"}["vlrpjzehsav"]="parts";${"GLOBALS"}["uejcmbbuxyd"]="currentFile";${"GLOBALS"}["pdtnwmdeck"]="table_count";${"GLOBALS"}["tkigemshnse"]="row";${"GLOBALS"}["lmhdiylgjh"]="r";${"GLOBALS"}["kypbtpqaite"]="q";${"GLOBALS"}["zymgfktjwdk"]="mysqli";${"GLOBALS"}["ornuwcbnhed"]="charset";$dxlsbps="q";${"GLOBALS"}["muwvgfjip"]="dbPass";${"GLOBALS"}["nvrqhz"]="dbUser";${"GLOBALS"}["xnlmiso"]="dbHost";ini_set("display_errors",0);session_start();include("config.php");include("helpers/locale.php");function
dbConnect(){global$mysqli;${"GLOBALS"}["syjbprc"]="dbPass";$wxopfvv="dbPort";${"GLOBALS"}["qgkqlgglqg"]="dbPort";${"GLOBALS"}["ukbcqeuznohf"]="mysqli";${"GLOBALS"}["gxnvcyyh"]="mysqli";global$dbHost;${"GLOBALS"}["xoogrhxkcl"]="charset";global$dbUser;$xjpxhlspgv="dbName";${"GLOBALS"}["jbvecviflksb"]="dbHost";global$dbPass;${"GLOBALS"}["vcxlqh"]="dbUser";${"GLOBALS"}["wpnxhmrcoewc"]="mysqli";global$dbName;${"GLOBALS"}["lkujqcuxnug"]="dbName";if(isset(${$wxopfvv}))${${"GLOBALS"}["wpnxhmrcoewc"]}=new
mysqli(${${"GLOBALS"}["xnlmiso"]},${${"GLOBALS"}["nvrqhz"]},${${"GLOBALS"}["syjbprc"]},${$xjpxhlspgv},${${"GLOBALS"}["qgkqlgglqg"]});else${${"GLOBALS"}["gxnvcyyh"]}=new
mysqli(${${"GLOBALS"}["jbvecviflksb"]},${${"GLOBALS"}["vcxlqh"]},${${"GLOBALS"}["muwvgfjip"]},${${"GLOBALS"}["lkujqcuxnug"]});if($mysqli->connect_error){fail("<!DOCTYPE html>
<html>
  <head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8\" />
		<link rel="Shortcut Icon\" type=\ " image / ico " href=\ " img /
			favicon.png ">
			<title>"._("Can't connect to database")."</title>
	</head>
	<style type=\ " text / css ">body{background: #ffffff;font-family:
		Helvetica, Arial;}#wrapper{background: #f2f2f2;width: 300px;height:
		110px;margin: -140px 0 0 -150px;position: absolute;top: 50%;left:
		50%;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius:
		5px;}p{text-align: center;line-height: 18px;font-size: 12px;padding: 0
		30px;}h2{font-weight: normal;text-align: center;font-size:
		20px;}a{color: #000;}a:hover{text-decoration: none;}</style>
	<body>
		<div id=\ " wrapper ">
			<p>
				<h2>"._("Can't connect to database")."</h2>
			</p>
			<p>"._("There is a problem connecting to the database. Please try
				again later.")."</p>
		</div>
	</body>
</html>
");}global$charset;mysqli_set_charset(${${"GLOBALS"}["ukbcqeuznohf"]},isset(${${"GLOBALS"}["ornuwcbnhed"]})?${${"GLOBALS"}["xoogrhxkcl"]}:"utf8");return${${"GLOBALS"}["zymgfktjwdk"]};}function
fail($errorMsg){$fiqofjlkx="errorMsg";echo${$fiqofjlkx};exit;}dbConnect();${"GLOBALS"}["wtmhcebeji"]="r";${$dxlsbps}="SELECT
COUNT(*)\nFROM information_schema.tables WHERE table_schema = '$dbName'
\nAND (table_name = 'apps' OR table_name = 'campaigns' OR table_name =
'links' OR table_name = 'lists' OR table_name = 'login' OR table_name =
'subscribers')";${${"GLOBALS"}["wtmhcebeji"]}=mysqli_query(${${"GLOBALS"}["zymgfktjwdk"]},${${"GLOBALS"}["kypbtpqaite"]});if(${${"GLOBALS"}["lmhdiylgjh"]}){${"GLOBALS"}["xiuqwumbhhg"]="r";while(${${"GLOBALS"}["tkigemshnse"]}=mysqli_fetch_array(${${"GLOBALS"}["xiuqwumbhhg"]})){${"GLOBALS"}["bocbtmwhzmqp"]="table_count";${${"GLOBALS"}["pdtnwmdeck"]}=${${"GLOBALS"}["tkigemshnse"]}["COUNT(*)"];if(${${"GLOBALS"}["bocbtmwhzmqp"]}!=6){if(currentPage()!="_install.php"){header("Location:
".get_app_info("path")."/_install.php");exit;}}}}include("update.php");$_SESSION["company"]="";$_SESSION["is_sub_user"]="";function
unlog_session(){session_destroy();if(setcookie("logged_in","",time()-60000,"/",COOKIE_DOMAIN))return
true;}function
currentPage(){${${"GLOBALS"}["uejcmbbuxyd"]}=$_SERVER["PHP_SELF"];$synwiokg="parts";$wdobbe="currentFile";${$synwiokg}=Explode("/",${$wdobbe});return${${"GLOBALS"}["vlrpjzehsav"]}[count(${${"GLOBALS"}["vlrpjzehsav"]})-1];}function
ipaddress(){if(getenv("HTTP_CLIENT_IP")){${${"GLOBALS"}["melffmiitspc"]}=getenv("HTTP_CLIENT_IP");}elseif(getenv("HTTP_X_FORWARDED_FOR")){${${"GLOBALS"}["melffmiitspc"]}=getenv("HTTP_X_FORWARDED_FOR");}else{${${"GLOBALS"}["melffmiitspc"]}=getenv("REMOTE_ADDR");}return${${"GLOBALS"}["melffmiitspc"]};}function
start_app(){global$mysqli;$wxqywuso="r";$iddclumdtx="q";${${"GLOBALS"}["kypbtpqaite"]}="SELECT
* FROM login WHERE id =
".$_SESSION["userID"];${$wxqywuso}=mysqli_query(${${"GLOBALS"}["zymgfktjwdk"]},${$iddclumdtx});if(${${"GLOBALS"}["lmhdiylgjh"]}&&mysqli_num_rows(${${"GLOBALS"}["lmhdiylgjh"]})>0){${"GLOBALS"}["rwrgerkngpw"]="r";${"GLOBALS"}["loukcmxe"]="row";while(${${"GLOBALS"}["loukcmxe"]}=mysqli_fetch_array(${${"GLOBALS"}["rwrgerkngpw"]})){${"GLOBALS"}["ovrlts"]="row";$nkxcmgzbh="row";$_SESSION["name"]=stripslashes(${${"GLOBALS"}["ovrlts"]}["name"]);$_SESSION["company"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["company"]);$_SESSION["email"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["username"]);$_SESSION["password"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["password"]);$_SESSION["s3_key"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["s3_key"]);$_SESSION["s3_secret"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["s3_secret"]);$_SESSION["api_key"]=stripslashes(${$nkxcmgzbh}["api_key"]);$_SESSION["license"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["license"]);$_SESSION["tied_to"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["tied_to"]);$_SESSION["restricted_to_app"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["app"]);${"GLOBALS"}["mnciebhmo"]="row";$_SESSION["timezone"]=stripslashes(${${"GLOBALS"}["mnciebhmo"]}["timezone"]);$_SESSION["language"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["language"]);$_SESSION["cron"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["cron"]);date_default_timezone_set($_SESSION["timezone"]);if($_SESSION["language"]!="en_US")set_locale($_SESSION["language"]);if($_SESSION["tied_to"]!=""){$gjnvssmsr="q";${"GLOBALS"}["zgihjqjiqcu"]="mysqli";${${"GLOBALS"}["kypbtpqaite"]}="SELECT
s3_key, s3_secret, license FROM login WHERE id =
".$_SESSION["tied_to"];${"GLOBALS"}["zgcrosuud"]="r";${"GLOBALS"}["pkwapxhu"]="r";${${"GLOBALS"}["lmhdiylgjh"]}=mysqli_query(${${"GLOBALS"}["zgihjqjiqcu"]},${$gjnvssmsr});if(${${"GLOBALS"}["zgcrosuud"]}&&mysqli_num_rows(${${"GLOBALS"}["pkwapxhu"]})>0){while(${${"GLOBALS"}["tkigemshnse"]}=mysqli_fetch_array(${${"GLOBALS"}["lmhdiylgjh"]})){$xdedkslgffqz="row";${"GLOBALS"}["ekvrklvhgq"]="row";$_SESSION["s3_key"]=stripslashes(${${"GLOBALS"}["tkigemshnse"]}["s3_key"]);$_SESSION["s3_secret"]=stripslashes(${${"GLOBALS"}["ekvrklvhgq"]}["s3_secret"]);$_SESSION["license"]=stripslashes(${$xdedkslgffqz}["license"]);}}$_SESSION["is_sub_user"]=true;}else{$_SESSION["is_sub_user"]=false;$_SESSION["tied_to"]=$_SESSION["userID"];}}}if(!isset($_COOKIE["version"])){${"GLOBALS"}["iepwdwkbk"]="version_latest";${${"GLOBALS"}["sdlczcc"]}=file_get_contents_curl("http://sendy.co/version-checker");if(setcookie("version",${${"GLOBALS"}["iepwdwkbk"]},time()+86400,"/",COOKIE_DOMAIN)){$_SESSION["version_latest"]=${${"GLOBALS"}["sdlczcc"]};}}else{$_SESSION["version_latest"]=$_COOKIE["version"];}if(!defined("CURRENT_VERSION"))define("CURRENT_VERSION","1.1.6.3");if(isset($_SESSION[$_SESSION["license"]])){if($_SESSION[$_SESSION["license"]]!=hash("sha512",$_SESSION["license"]."2ifQ9IppVwYdOgSJoQhKOHAUK/oPwKZy")){echo"<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content=\ " text / html ;
			charset=utf-8 " />
		<link rel=\ " Shortcut Icon " type=\ " image / ico \ href=\ " img /
			favicon.png \>
			<title>Invalid license or domain</title>
	</head>
	<style type="text/css\">body{background: #ffffff;font-family: Helvetica,
		Arial;}#wrapper{background: #f2f2f2;width: 300px;height: 110px;margin:
		-140px 0 0 -150px;position: absolute;top: 50%;left:
		50%;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius:
		5px;}p{text-align: center;line-height: 18px;font-size: 12px;padding: 0
		30px;}h2{font-weight: normal;text-align: center;font-size:
		20px;}a{color: #000;}a:hover{text-decoration: none;}</style>
	<body>
		<div id="wrapper\">
			<p>
				<h2>Invalid license or domain</h2>
			</p>
			<p>Are you running Sendy on the domain you purchased it for?</p>
		</div>
	</body>
</html>
";unlog_session();exit;}}else{${${"GLOBALS"}["pvlwcqd"]}=file_get_contents_curl("http://sendy.co/gateway/".$_SERVER["HTTP_HOST"]."/".$_SESSION["license"]."/".ipaddress()."/".str_replace("/","|s|",APP_PATH)."/".CURRENT_VERSION."/".time()."/");$luwydjpttli="license";if(${$luwydjpttli})$_SESSION[$_SESSION["license"]]=hash("sha512",$_SESSION["license"]."2ifQ9IppVwYdOgSJoQhKOHAUK/oPwKZy");else$_SESSION[$_SESSION["license"]]="";}session_write_close();}function
parse_date($val,$longshort,$relative=true){$ezwgyinuwr="relative";if(${$ezwgyinuwr}){$nlyfdpmmmdvy="diff";${"GLOBALS"}["xkkuud"]="diff";$uecyso="diff";$nnisbnnshnw="diff";$mcywukutktmi="diff";${"GLOBALS"}["voflqme"]="diff";$gtlwdborvxv="diff";$xrsudtnjvej="diff";${"GLOBALS"}["fjkglilq"]="diff";${"GLOBALS"}["hmdgwhpe"]="diff";${${"GLOBALS"}["tjhzwrchmrh"]}=time()-${${"GLOBALS"}["qdkawdn"]};${"GLOBALS"}["yyhyncpvkr"]="diff";$nfsyslqceq="diff";$obzousm="diff";${"GLOBALS"}["zhldxhtt"]="diff";${"GLOBALS"}["ppgmozifewp"]="diff";if(${${"GLOBALS"}["tjhzwrchmrh"]}<60)return${${"GLOBALS"}["voflqme"]}."
sec".plural(${$mcywukutktmi})."
ago";${${"GLOBALS"}["hmdgwhpe"]}=round(${${"GLOBALS"}["ppgmozifewp"]}/60);${"GLOBALS"}["xkmrjqnnbjsf"]="diff";if(${$nnisbnnshnw}<60)return${$xrsudtnjvej}."
min".plural(${${"GLOBALS"}["tjhzwrchmrh"]})."
ago";${${"GLOBALS"}["yyhyncpvkr"]}=round(${${"GLOBALS"}["xkkuud"]}/60);if(${${"GLOBALS"}["tjhzwrchmrh"]}<24)return${$nlyfdpmmmdvy}."
hr".plural(${${"GLOBALS"}["fjkglilq"]})."
ago";$tnviruft="diff";${${"GLOBALS"}["tjhzwrchmrh"]}=round(${$tnviruft}/24);if(${${"GLOBALS"}["tjhzwrchmrh"]}<7)return${$gtlwdborvxv}."
day".plural(${$obzousm})."
ago";${${"GLOBALS"}["tjhzwrchmrh"]}=round(${${"GLOBALS"}["xkmrjqnnbjsf"]}/7);if(${$nfsyslqceq}<4)return${$uecyso}."
week".plural(${${"GLOBALS"}["zhldxhtt"]})."
ago";}$bpecfidpp="longshort";if(${${"GLOBALS"}["kfzngsjii"]}=="long"){return
strftime("%a, %b %d, %Y,
%I:%M%p",${${"GLOBALS"}["qdkawdn"]});break;}else
if(${$bpecfidpp}=="short"){$cftrbuhxtcp="val";return strftime("%a, %b
%d, %I:%M%p",${$cftrbuhxtcp});break;}}function
plural($num){$mkyyck="num";if(${$mkyyck}!=1)return"s";}function
company_name(){$fjpmbwtj="q";global$mysqli;$gscmnfg="r";${"GLOBALS"}["ippguowvru"]="mysqli";${$fjpmbwtj}="SELECT
company FROM login LIMIT
1";${$gscmnfg}=mysqli_query(${${"GLOBALS"}["ippguowvru"]},${${"GLOBALS"}["kypbtpqaite"]});if(${${"GLOBALS"}["lmhdiylgjh"]}){$vnpaxhqojm="r";while(${${"GLOBALS"}["tkigemshnse"]}=mysqli_fetch_array(${$vnpaxhqojm})){${"GLOBALS"}["grggqjsx"]="company";return${${"GLOBALS"}["grggqjsx"]}=${${"GLOBALS"}["tkigemshnse"]}["company"];}}else{return"Sendy";}}function
file_get_contents_curl($url){${${"GLOBALS"}["bkgeib"]}=curl_init();$esetobqmoc="ch";${"GLOBALS"}["purjqgdbdfy"]="url";curl_setopt(${${"GLOBALS"}["bkgeib"]},CURLOPT_HEADER,0);$bdjvrmsebk="ch";curl_setopt(${${"GLOBALS"}["bkgeib"]},CURLOPT_RETURNTRANSFER,1);${"GLOBALS"}["cxmemdkyk"]="ch";${"GLOBALS"}["safpcvve"]="ch";curl_setopt(${$bdjvrmsebk},CURLOPT_URL,${${"GLOBALS"}["purjqgdbdfy"]});curl_setopt(${${"GLOBALS"}["cxmemdkyk"]},CURLOPT_SSL_VERIFYHOST,0);curl_setopt(${$esetobqmoc},CURLOPT_SSL_VERIFYPEER,0);${${"GLOBALS"}["irxfypt"]}=curl_exec(${${"GLOBALS"}["bkgeib"]});curl_close(${${"GLOBALS"}["safpcvve"]});return${${"GLOBALS"}["irxfypt"]};}function
get_gravatar($email,$s=80,$d='mm',$r='g',$img=false,$atts=array()){${"GLOBALS"}["ooidhnsobx"]="url";$rhbbcttou="url";$dwrcfxtvkjj="img";${${"GLOBALS"}["ooidhnsobx"]}="http://www.gravatar.com/avatar/";${${"GLOBALS"}["qtzlxxbfi"]}.=md5(strtolower(trim(${${"GLOBALS"}["cmchxtqkeh"]})));${"GLOBALS"}["ghwzwpjwjsc"]="url";${$rhbbcttou}.="?s=$s&d=$d&r=$r";if(${$dwrcfxtvkjj}){${"GLOBALS"}["edrjqpw"]="url";${${"GLOBALS"}["qtzlxxbfi"]}="
<img src="" . GLOBALS " edrjqpw " viedbkueeww="val" ; foreach (
	GLOBALS " kjikbqjohq " as $ GLOBALS " wouuyxig " =>${${"GLOBALS"}["qdkawdn"]})${${"GLOBALS"}["qtzlxxbfi"]}.="
	".${${"GLOBALS"}["wouuyxig"]}."="".${$viedbkueeww}.""";${${"GLOBALS"}["qtzlxxbfi"]}.="
	/>";}return${${"GLOBALS"}["ghwzwpjwjsc"]};}function
	get_app_info($v){$pklxofgkwp="co";${"GLOBALS"}["chcismew"]="co";$fokxim="co";switch(${${"GLOBALS"}["qozmiszqixo"]}){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"]))${${"GLOBALS"}["xgqwylqndun"]}=$_SESSION["company"];else${${"GLOBALS"}["chcismew"]}="";if(${$pklxofgkwp}=="")return
	company_name();else
	return${$fokxim};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;}}