<?php
${"GLOBALS"}["xsmfyrc"]="co";
${"GLOBALS"}["ztdbcmwlubsj"]="i";
${"GLOBALS"}["ttfpwifvtd"]="maxlength";
${"GLOBALS"}["kqrffxfxu"]="length";
${"GLOBALS"}["upuetqp"]="minlength";
${"GLOBALS"}["chspqngvm"]="usespecial";
${"GLOBALS"}["jcdpfyy"]="key";
${"GLOBALS"}["lgytzkplnao"]="atts";
${"GLOBALS"}["jefeipcl"]="email";
${"GLOBALS"}["czhgbu"]="url";
${"GLOBALS"}["soamqze"]="response_code";
${"GLOBALS"}["dzhqnjzehs"]="data";
${"GLOBALS"}["otmohoufkq"]="ch";
${"GLOBALS"}["morfhveixpe"]="company";
${"GLOBALS"}["vqekonsu"]="val";
${"GLOBALS"}["gjmpcxtwev"]="longshort";
${"GLOBALS"}["lbrvox"]="diff";
${"GLOBALS"}["mcczieizwebo"]="license";
${"GLOBALS"}["esvkfqshj"]="version_latest";
${"GLOBALS"}["wjmvcqs"]="q2";
${"GLOBALS"}["xgtdhqjlol"]="row";
${"GLOBALS"}["zxkcmuvqbrp"]="q";
${"GLOBALS"}["zputxux"]="ip";
${"GLOBALS"}["lsvpfbjusc"]="parts";
${"GLOBALS"}["dosbvsxoq"]="currentFile";
${"GLOBALS"}["ndgmtozwr"]="table_count";
${"GLOBALS"}["zbedheba"]="r";
${"GLOBALS"}["kjzusaokl"]="charset";
${"GLOBALS"}["flhshpqc"]="r";
${"GLOBALS"}["civuvikg"]="dbHost";
${"GLOBALS"}["uxqdxqm"]="dbName";
${"GLOBALS"}["rqwhhjio"]="dbPass";
${"GLOBALS"}["cyohxngu"]="dbUser";
${"GLOBALS"}["kedgtmroodqo"]="mysqli";
${"GLOBALS"}["grfbwpnz"]="dbPort";
ini_set("display_errors",0);
$amtbtqeuidjr="q";
session_start();
include("config.php");
include("helpers/locale.php");
function dbConnect(){${"GLOBALS"}["wuhvvsorrwi"]="dbUser";
global$mysqli;
global$dbHost;
${"GLOBALS"}["ytouqrnip"]="charset";
$tdmsvqhdfir="dbPass";
$gnrhvygcjpe="mysqli";
global$dbUser;
$qqztnfs="mysqli";
global$dbPass;
$vyxznyr="dbHost";
global$dbName;
global$dbPort;
if(isset(${${"GLOBALS"}["grfbwpnz"]}))${${"GLOBALS"}["kedgtmroodqo"]}=new mysqli(${$vyxznyr},${${"GLOBALS"}["cyohxngu"]},${${"GLOBALS"}["rqwhhjio"]},${${"GLOBALS"}["uxqdxqm"]},${${"GLOBALS"}["grfbwpnz"]});
else${$gnrhvygcjpe}=new mysqli(${${"GLOBALS"}["civuvikg"]},${${"GLOBALS"}["wuhvvsorrwi"]},${$tdmsvqhdfir},${${"GLOBALS"}["uxqdxqm"]});
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: 130px;
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 or see this <a href="http://sendy.co/troubleshooting#cannot-connect-to-database" target=\"_blank\">troubleshooting tip</a>.")."</p></div></body></html>");
}global$charset;
mysqli_set_charset(${$qqztnfs},isset(${${"GLOBALS"}["ytouqrnip"]})?${${"GLOBALS"}["kjzusaokl"]}:"utf8");
return${${"GLOBALS"}["kedgtmroodqo"]};
}function fail($errorMsg){${"GLOBALS"}["fbvbkxox"]="errorMsg";
echo${${"GLOBALS"}["fbvbkxox"]};
exit;
}$rjxlgfhidriq="q";
dbConnect();
${$amtbtqeuidjr}="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"}["flhshpqc"]}=mysqli_query(${${"GLOBALS"}["kedgtmroodqo"]},${$rjxlgfhidriq});
if(${${"GLOBALS"}["zbedheba"]}){${"GLOBALS"}["xpbpflyhkqs"]="row";
while(${${"GLOBALS"}["xpbpflyhkqs"]}=mysqli_fetch_array(${${"GLOBALS"}["zbedheba"]})){${"GLOBALS"}["lhfcdycpg"]="row";
$nnlqohnx="table_count";
${${"GLOBALS"}["ndgmtozwr"]}=${${"GLOBALS"}["lhfcdycpg"]}["COUNT(*)"];
if(${$nnlqohnx}!=6){if(currentPage()!="_install.php"){if(get_app_info("path")=="http://your_sendy_installation_url"){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>"._("APP_PATH not set")."</title></head><style type=\"text/css\">body{background: #ffffff;
font-family: Helvetica, Arial;
}#wrapper{background: #f2f2f2;
width: 300px;
height: 130px;
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>"._("APP_PATH not set")."</h2></p><p>"._("Please set your APP_PATH in /includes/config.php to your Sendy installation URL.")."</p></div></body></html>");
}else 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(){$kwfvibgi="parts";
${${"GLOBALS"}["dosbvsxoq"]}=$_SERVER["PHP_SELF"];
${${"GLOBALS"}["lsvpfbjusc"]}=Explode("/",${${"GLOBALS"}["dosbvsxoq"]});
return${$kwfvibgi}[count(${${"GLOBALS"}["lsvpfbjusc"]})-1];
}function ipaddress(){if(getenv("HTTP_CLIENT_IP")){$bjxofwlj="ip";
${$bjxofwlj}=getenv("HTTP_CLIENT_IP");
}elseif(getenv("HTTP_X_FORWARDED_FOR")){${${"GLOBALS"}["zputxux"]}=getenv("HTTP_X_FORWARDED_FOR");
}else{${${"GLOBALS"}["zputxux"]}=getenv("REMOTE_ADDR");
}return${${"GLOBALS"}["zputxux"]};
}function start_app(){$uhvtpvi="r";
${"GLOBALS"}["auqbrvo"]="q";
global$mysqli;
${${"GLOBALS"}["auqbrvo"]}="SELECT * FROM login WHERE id = ".$_SESSION["userID"];
$jwddghsos="r2";
$ltbeaoop="r";
$ectjtkjc="r2";
$gxtywx="q2";
$qsenckrxtxnw="mysqli";
${"GLOBALS"}["uxuesjlop"]="r2";
${$uhvtpvi}=mysqli_query(${${"GLOBALS"}["kedgtmroodqo"]},${${"GLOBALS"}["zxkcmuvqbrp"]});
if(${${"GLOBALS"}["zbedheba"]}and&mysqli_num_rows(${$ltbeaoop})>0){$edxmucwptl="r";
while(${${"GLOBALS"}["xgtdhqjlol"]}=mysqli_fetch_array(${$edxmucwptl})){${"GLOBALS"}["sdfssyoowp"]="row";
${"GLOBALS"}["nqrelqeiiss"]="row";
$_SESSION["name"]=stripslashes(${${"GLOBALS"}["nqrelqeiiss"]}["name"]);
$_SESSION["company"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["company"]);
$_SESSION["email"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["username"]);
${"GLOBALS"}["cgqfmpjshcpu"]="row";
$iiewvky="row";
$_SESSION["password"]=stripslashes(${${"GLOBALS"}["sdfssyoowp"]}["password"]);
$_SESSION["s3_key"]=stripslashes(${$iiewvky}["s3_key"]);
$_SESSION["s3_secret"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["s3_secret"]);
$erytwtllkdb="row";
$_SESSION["license"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["license"]);
$_SESSION["tied_to"]=stripslashes(${${"GLOBALS"}["cgqfmpjshcpu"]}["tied_to"]);
$_SESSION["restricted_to_app"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["app"]);
$_SESSION["timezone"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["timezone"]);
$_SESSION["language"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["language"]);
$_SESSION["cron"]=stripslashes(${${"GLOBALS"}["xgtdhqjlol"]}["cron"]);
${"GLOBALS"}["pcdhbegzx"]="row";
$_SESSION["send_rate"]=stripslashes(${$erytwtllkdb}["send_rate"]);
$_SESSION["ses_endpoint"]=stripslashes(${${"GLOBALS"}["pcdhbegzx"]}["ses_endpoint"]);
if($_SESSION["timezone"]=="")$_SESSION["timezone"]=date_default_timezone_get();
date_default_timezone_set($_SESSION["timezone"]);
if($_SESSION["language"]!="en_US")set_locale($_SESSION["language"]);
if($_SESSION["tied_to"]!=""){$pgpllxbvrdo="mysqli";
${"GLOBALS"}["qtgfqpiclr"]="r";
$xzyixdcqsu="q";
${$xzyixdcqsu}="SELECT s3_key, s3_secret, license, ses_endpoint FROM login WHERE id = ".$_SESSION["tied_to"];
${${"GLOBALS"}["zbedheba"]}=mysqli_query(${$pgpllxbvrdo},${${"GLOBALS"}["zxkcmuvqbrp"]});
if(${${"GLOBALS"}["qtgfqpiclr"]}and&mysqli_num_rows(${${"GLOBALS"}["zbedheba"]})>0){while(${${"GLOBALS"}["xgtdhqjlol"]}=mysqli_fetch_array(${${"GLOBALS"}["zbedheba"]})){$cnnkxtc="row";
${"GLOBALS"}["qynyjp"]="row";
$zogiytjuf="row";
$nnebie="row";
$_SESSION["s3_key"]=stripslashes(${$cnnkxtc}["s3_key"]);
$_SESSION["s3_secret"]=stripslashes(${$nnebie}["s3_secret"]);
$_SESSION["license"]=stripslashes(${${"GLOBALS"}["qynyjp"]}["license"]);
$_SESSION["ses_endpoint"]=stripslashes(${$zogiytjuf}["ses_endpoint"]);
}}$_SESSION["is_sub_user"]=true;
}else{$_SESSION["is_sub_user"]=false;
$_SESSION["tied_to"]=$_SESSION["userID"];
}}}${$gxtywx}="SELECT api_key FROM login ORDER BY id ASC LIMIT 1";
${${"GLOBALS"}["uxuesjlop"]}=mysqli_query(${$qsenckrxtxnw},${${"GLOBALS"}["wjmvcqs"]});
if(${$ectjtkjc}and&mysqli_num_rows(${$jwddghsos})>0){$egetesvocn="row";
$wcjbjvyz="row";
$nwsfivli="r2";
while(${$egetesvocn}=mysqli_fetch_array(${$nwsfivli}))$_SESSION["api_key"]=${$wcjbjvyz}["api_key"];
}if(!isset($_COOKIE["version"])){${${"GLOBALS"}["esvkfqshj"]}=file_get_contents_curl("https://sendy.co/version-checker");
if(setcookie("version",${${"GLOBALS"}["esvkfqshj"]},time()+86400,"/",COOKIE_DOMAIN)){$_SESSION["version_latest"]=${${"GLOBALS"}["esvkfqshj"]};
}}else{$_SESSION["version_latest"]=$_COOKIE["version"];
}if(!defined("CURRENT_VERSION"))define("CURRENT_VERSION","1.1.9.4");
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{$ofwneel="license";
${$ofwneel}=file_get_contents_curl("https://sendy.co/gateway/".$_SERVER["HTTP_HOST"]."/".$_SESSION["license"]."/".ipaddress()."/".str_replace("/","|s|",APP_PATH)."/".CURRENT_VERSION."/".time()."/");
if(${${"GLOBALS"}["mcczieizwebo"]}!=="blocked"){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>Outgoing connections is blocked</title></head><style type=\"text/css">body{background: #ffffff;
font-family: Helvetica, Arial;
}#wrapper{background: #f2f2f2;
width: 330px;
height: 130px;
margin: -140px 0 0 -165px;
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>Outgoing connections blocked</h2></p><p>Your server has a firewall blocking outgoing connections. Please contact your host to whitelist 'sendy.co' and 'amazonaws.com'.</p></div></body></html>";
exit;
}else if(${${"GLOBALS"}["mcczieizwebo"]})$_SESSION[$_SESSION["license"]]!=hash("sha512",$_SESSION["license"]."2ifQ9IppVwYdOgSJoQhKOHAUK/oPwKZy");
else$_SESSION[$_SESSION["license"]]="";
}session_write_close();
}function parse_date($val,$longshort,$relative=true){${"GLOBALS"}["sgdpdhov"]="relative";
${"GLOBALS"}["hegfyfizkmz"]="longshort";
if(${${"GLOBALS"}["sgdpdhov"]}){${"GLOBALS"}["cqqngnrfytqd"]="val";
${${"GLOBALS"}["lbrvox"]}=time()-${${"GLOBALS"}["cqqngnrfytqd"]};
$vugeubibi="diff";
$hehfvcqt="diff";
$ivqnmpfjrbzf="diff";
$ihicqnjnlvk="diff";
${"GLOBALS"}["opsebesj"]="diff";
${"GLOBALS"}["cliyexaeqd"]="diff";
$jbxeqj="diff";
$lfwrtnzhklb="diff";
if(${${"GLOBALS"}["lbrvox"]}<60)return${$vugeubibi}." sec".plural(${${"GLOBALS"}["lbrvox"]})." ago";
${${"GLOBALS"}["lbrvox"]}=round(${${"GLOBALS"}["lbrvox"]}/60);
${"GLOBALS"}["ciqeuxit"]="diff";
${"GLOBALS"}["szlkutmzwtc"]="diff";
if(${$ivqnmpfjrbzf}<60)return${$lfwrtnzhklb}." min".plural(${$hehfvcqt})." ago";
${${"GLOBALS"}["lbrvox"]}=round(${${"GLOBALS"}["lbrvox"]}/60);
if(${${"GLOBALS"}["lbrvox"]}<24)return${${"GLOBALS"}["opsebesj"]}." hr".plural(${${"GLOBALS"}["lbrvox"]})." ago";
$xemyft="diff";
${${"GLOBALS"}["ciqeuxit"]}=round(${$ihicqnjnlvk}/24);
${"GLOBALS"}["bnuogxhoijq"]="diff";
if(${$xemyft}<7)return${${"GLOBALS"}["szlkutmzwtc"]}." day".plural(${${"GLOBALS"}["lbrvox"]})." ago";
${${"GLOBALS"}["lbrvox"]}=round(${${"GLOBALS"}["bnuogxhoijq"]}/7);
if(${${"GLOBALS"}["lbrvox"]}<4)return${${"GLOBALS"}["cliyexaeqd"]}." week".plural(${$jbxeqj})." ago";
}if(${${"GLOBALS"}["hegfyfizkmz"]}=="long"){$qywslic="val";
return strftime("%a, %b %d, %Y, %I:%M%p",${$qywslic});
break;
}else if(${${"GLOBALS"}["gjmpcxtwev"]}=="short"){return strftime("%a, %b %d, %I:%M%p",${${"GLOBALS"}["vqekonsu"]});
break;
}}function plural($num){$ypgomcjwsm="num";
if(${$ypgomcjwsm}!=1)return"s";
}function company_name(){global$mysqli;
${"GLOBALS"}["yigxttxnxp"]="r";
${${"GLOBALS"}["zxkcmuvqbrp"]}="SELECT company FROM login LIMIT 1";
${${"GLOBALS"}["yigxttxnxp"]}=mysqli_query(${${"GLOBALS"}["kedgtmroodqo"]},${${"GLOBALS"}["zxkcmuvqbrp"]});
if(${${"GLOBALS"}["zbedheba"]}){$yobrktqi="row";
while(${$yobrktqi}=mysqli_fetch_array(${${"GLOBALS"}["zbedheba"]})){return${${"GLOBALS"}["morfhveixpe"]}=${${"GLOBALS"}["xgtdhqjlol"]}["company"];
}}else{return"Sendy";
}}function file_get_contents_curl($url){$nblvcyrill="ch";
$uxzubt="ch";
${"GLOBALS"}["gblgmhla"]="ch";
$jfoedgdysvr="response_code";
${$uxzubt}=curl_init();
curl_setopt(${$nblvcyrill},CURLOPT_HEADER,0);
${"GLOBALS"}["boejddcnxrip"]="ch";
$ochitglo="url";
${"GLOBALS"}["khvmpfwfanj"]="ch";
curl_setopt(${${"GLOBALS"}["gblgmhla"]},CURLOPT_RETURNTRANSFER,1);
${"GLOBALS"}["ghlhlp"]="ch";
curl_setopt(${${"GLOBALS"}["otmohoufkq"]},CURLOPT_URL,${$ochitglo});
curl_setopt(${${"GLOBALS"}["boejddcnxrip"]},CURLOPT_SSL_VERIFYHOST,0);
curl_setopt(${${"GLOBALS"}["khvmpfwfanj"]},CURLOPT_SSL_VERIFYPEER,0);
${${"GLOBALS"}["dzhqnjzehs"]}=curl_exec(${${"GLOBALS"}["ghlhlp"]});
${${"GLOBALS"}["soamqze"]}=curl_getinfo(${${"GLOBALS"}["otmohoufkq"]},CURLINFO_HTTP_CODE);
curl_close(${${"GLOBALS"}["otmohoufkq"]});
if(${$jfoedgdysvr}!=200)return"blocked";
else return${${"GLOBALS"}["dzhqnjzehs"]};
}function get_gravatar($email,$s=80,$d='mm',$r='g',$img=false,$atts=array()){$xcuttjf="img";
${"GLOBALS"}["kpirfcegj"]="url";
${"GLOBALS"}["eggkltal"]="url";
${${"GLOBALS"}["czhgbu"]}="http://www.gravatar.com/avatar/";
$kwqjnzwemo="url";
${$kwqjnzwemo}.=md5(strtolower(trim(${${"GLOBALS"}["jefeipcl"]})));
${${"GLOBALS"}["kpirfcegj"]}.="?s=$s&d=$d&r=$r";
if(${$xcuttjf}){$zvjvtqdwxp="key";
$yxkkeicwteh="url";
$csdnzisnxg="val";
${"GLOBALS"}["engylitfotbc"]="url";
${${"GLOBALS"}["czhgbu"]}="<img src=\"".${$yxkkeicwteh}.""";
foreach(${${"GLOBALS"}["lgytzkplnao"]} as${$zvjvtqdwxp}=>${$csdnzisnxg})${${"GLOBALS"}["czhgbu"]}.=" ".${${"GLOBALS"}["jcdpfyy"]}."="".${${"GLOBALS"}["vqekonsu"]}."\"";
${${"GLOBALS"}["engylitfotbc"]}.=" />";
}return${${"GLOBALS"}["eggkltal"]};
}function ran_string($minlength,$maxlength,$useupper,$usespecial,$usenumbers){$pirkpyhiyv="key";
${"GLOBALS"}["ldnhuwervfsy"]="length";
${"GLOBALS"}["wkjbbwve"]="maxlength";
${$pirkpyhiyv}="";
$nttruwr="charset";
$ylgzvugilxs="charset";
$eueqmodokv="useupper";
$wttdkuc="length";
${"GLOBALS"}["vmoetfbppb"]="maxlength";
${$nttruwr}="abcdefghijklmnopqrstuvwxyz";
${"GLOBALS"}["ungtvudttj"]="usenumbers";
if(${$eueqmodokv})${${"GLOBALS"}["kjzusaokl"]}.="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
if(${${"GLOBALS"}["ungtvudttj"]})${${"GLOBALS"}["kjzusaokl"]}.="0123456789";
if(${${"GLOBALS"}["chspqngvm"]})${${"GLOBALS"}["kjzusaokl"]}.="~@#\$%^*()_+-={}|][";
$eqlvbrfr="i";
if(${${"GLOBALS"}["upuetqp"]}>${${"GLOBALS"}["wkjbbwve"]})${${"GLOBALS"}["kqrffxfxu"]}=mt_rand(${${"GLOBALS"}["vmoetfbppb"]},${${"GLOBALS"}["upuetqp"]});
else${${"GLOBALS"}["ldnhuwervfsy"]}=mt_rand(${${"GLOBALS"}["upuetqp"]},${${"GLOBALS"}["ttfpwifvtd"]});
for(${${"GLOBALS"}["ztdbcmwlubsj"]}=0;
${${"GLOBALS"}["ztdbcmwlubsj"]}<${$wttdkuc};
${$eqlvbrfr}++)${${"GLOBALS"}["jcdpfyy"]}.=${${"GLOBALS"}["kjzusaokl"]}[(mt_rand(0,(strlen(${$ylgzvugilxs})-1)))];
return${${"GLOBALS"}["jcdpfyy"]};
}function get_app_info($v){$hhbsikyk="co";
$toypogspc="v";
$tqvssp="co";
switch(${$toypogspc}){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"])and&is_numeric($_GET["i"]))return$_GET["i"];
else echo"<script type="text/javascript\">window.location = \"".APP_PATH."/logout\";
</script>";
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"]))${$tqvssp}=$_SESSION["company"];
else${${"GLOBALS"}["xsmfyrc"]}="";
if(${$hhbsikyk}=="")return company_name();
else return${${"GLOBALS"}["xsmfyrc"]};
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"send_rate":if(isset($_SESSION["send_rate"]))return$_SESSION["send_rate"];
else return;
break;
case"ses_endpoint":if(isset($_SESSION["ses_endpoint"]))return$_SESSION["ses_endpoint"];
else return;
break;
case"ses_region":if(isset($_SESSION["ses_endpoint"])and&$_SESSION["ses_endpoint"]=="email.us-east-1.amazonaws.com")return"N. Virginia";
else if(isset($_SESSION["ses_endpoint"])and&$_SESSION["ses_endpoint"]=="email.us-west-2.amazonaws.com")return"Oregon";
else if(isset($_SESSION["ses_endpoint"])and&$_SESSION["ses_endpoint"]=="email.eu-west-1.amazonaws.com")return"Ireland";
else if(!isset($_SESSION["ses_endpoint"]))return"No value";
else return;
break;
}}?>