|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Please help |
|
Posted: Sun Apr 04, 2010 3:10 am |
|
|
Sam |
Beginner |
|
|
Joined: Apr 04, 2010 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sun Apr 04, 2010 2:53 pm |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
Thier all the same files, except pnl600.config.php is the retail (non tampered file).
Its the Interspire Email Marketer process.php file.
Here you go, pnl600.config.php decoded:
Code: | <?php
class LICENSE {
private $_license_variables = array();
private $_error = false;
public function __call($c4kikicc, $c3otyk38) {
switch ($c4kikicc) {
case "GetEdition": return self::issetfor($this->_license_variables["edition"], '');
break;
case "GetUsers": return self::issetfor($this->_license_variables["users"], 0);
break;
case "GetDomain": return self::issetfor($this->_license_variables["domain"], '');
break;
case "GetExpires": return self::issetfor($this->_license_variables["expires"], "01.01.2000");
break;
case "GetLists": return self::issetfor($this->_license_variables["lists"], 0);
break;
case "GetSubscribers": return self::issetfor($this->_license_variables["subscribers"], 0);
break;
case "GetVersion": return self::issetfor($this->_license_variables["version"], '');
break;
case "GetNFR": return self::issetfor($this->_license_variables["nfr"], true);
break;
case "GetAgencyID": return self::issetfor($this->_license_variables["agencyid"], 0);
break;
case "GetTrialAccountLimit": return self::issetfor($this->_license_variables["trialaccount"], 0);
break;
case "GetTrialAccountEmail": return self::issetfor($this->_license_variables["trialemail"], 0);
break;
case "GetTrialAccountDays": return self::issetfor($this->_license_variables["trialdays"], 0);
break;
case "GetPingbackDays": return self::issetfor($this->_license_variables["pingbackdays"], -1);
break;
case "GetPingbackGrace": return self::issetfor($this->_license_variables["pingbackgrace"], 0);
break;
default: return false;
break;
}
}
public function GetError() {
return $this->_error;
}
public function DecryptKey($cdigix33) {
if (substr($cdigix33, 0, 4) != "IEM-") {
$this->_error = true;
return;
}
$bamopyp7 = @base64_decode(str_replace("IEM-", '', $cdigix33));
if (substr_count($bamopyp7, "-") !== 7) {
$this->_error = true;
return;
}
$c8pozacc = !!preg_match("/^(.*?)\:([\da-f]+)$/s", $bamopyp7, $abobemyv);
if (!$c8pozacc || count($abobemyv) != 3) {
$this->_error = true;
return;
}
$bamopyp7 = $abobemyv[1];
if (dechex(doubleval(sprintf("%u", crc32($bamopyp7 . ":")))) != $abobemyv[2]) {
$this->_error = true;
return;
}
list($c3ugopyq, $bixigo, $ccbimycc, $enin36, $bucymy, $azuwaref, $tefuc2, $efifehy) = explode("-", $bamopyp7);
$ahuvyf44 = "5.0";
if (preg_match("/^v<(.*)>$/", $enin36, $abobemyv)) {
$jekizc5 = doubleval(hexdec($c3ugopyq{
30}
)) % 8;
$imifej66 = $abobemyv[1]{
$jekizc5}
$ahuvyf44 = substr($abobemyv[1], $jekizc5 + 1, $imifej66);
$ahuvyf44 = str_replace("a", ".", $ahuvyf44);
}
if (version_compare("5.7", $ahuvyf44) == 1) {
$this->_error = true;
return;
}
if (in_array($bixigo, array( "1e23852820b9154316c7c06e2b7ba051", "cc37ece0f85fb36ba4fce2e0cca5bcc6", "9e3360ac711fcd82ceea74c8eb69bda9", "df1d2da60ee3adf14bfdedbbfcb69c53", "4d4afda25a3f52041ee1b569157130b8", "9f4cd052225c16c3545c271c071b1b73", "NORMAL"))) {
$bixigo = '';
}
if ($bixigo == "TRIAL") {
$bixigo = "Trial";
}
if (substr_count($efifehy, ":") < 6) {
$this->_error = true;
return;
}
list ($fedefi, $afizypib, $sikemov9, $hivohabi, $warufy8, $byqibahc, $dodikuce) = explode(":", $efifehy);
$dirade = (!preg_match("/^" . $c3ugopyq{
10}
. "\n#/", $fedefi));
$afizypib = trim($afizypib);
$sikemov9 = (empty($afizypib) ? 0 : intval($sikemov9));
$this->_license_variables = array( "users" => intval($bucymy), "lists" => intval($azuwaref), "subscribers" => intval($tefuc2), "domain" => $c3ugopyq, "expires" => $ccbimycc, "edition" => $bixigo, "version" => $ahuvyf44, "nfr" => $dirade, "agencyid" => $afizypib, "trialaccount" => intval($sikemov9), "trialemail" => intval($hivohabi), "trialdays" => intval($warufy8), "pingbackdays" => intval($byqibahc) - 1000, "pingbackgrace" => intval($dodikuce) );
}
static private function issetfor(&$wavaxecy, $ejivyl63 = false) {
return isset($wavaxecy) ? $wavaxecy : $ejivyl63;
}
}
function ss9024kwehbehb(User_API &$bozyfi45) {
ss9O24kwehbehb();
if (!constant("IEM_SYSTEM_ACTIVE")) {
return false;
}
if ($bozyfi45->trialuser == "1") {
$ewijyqec = get_agency_license_variables();
$bozyfi45->admintype = "c";
if ($bozyfi45->group->limit_totalemailslimit > $ewijyqec["trial_email_limit"]) {
$bozyfi45->group->limit_totalemailslimit = (int) $ewijyqec["trial_email_limit"];
}
$bozyfi45->group->limit_emailspermonth = 0;
if (array_key_exists("system", $bozyfi45->permissions)) {
unset($bozyfi45->permissions["system"]);
}
}
if (!empty($bozyfi45->userid)) {
return true;
}
$c3ezul22 = get_available_user_count();
if ($bozyfi45->trialuser == "1" && ($c3ezul22["trial"] === true || $c3ezul22["trial"] > 0)) {
return true;
}
elseif ($bozyfi45->trialuser != "1" && ($c3ezul22["normal"] === true || $c3ezul22["normal"] > 0)) {
return true;
}
return false;
}
function get_agency_license_variables() {
$kadybek = ss02k31nnb(constant("SENDSTUDIO_LICENSEKEY"));
if (!$kadybek) {
return array( "agencyid" => 0, "trial_account" => 0, "trial_email_limit" => 0, "trial_days" => 0 );
}
return array( "agencyid" => $kadybek->GetAgencyID(), "trial_account" => $kadybek->GetTrialAccountLimit(), "trial_email_limit" => $kadybek->GetTrialAccountEmail(), "trial_days" => $kadybek->GetTrialAccountDays() );
}
function get_available_user_count() {
$ahyhic49 = array("normal" => 0, "trial" => 0);
$ecacetav = ss02k31nnb(constant("SENDSTUDIO_LICENSEKEY"));
if (!$ecacetav) {
return $ahyhic49;
}
$wivero = get_current_user_count();
$fyjowak7 = "GetUsers";
$jidigifa = "GetTrialAccountLimit";
$c4qidu56 = intval($ecacetav->{
$fyjowak7}
());
$pybupeh = intval($ecacetav->{
$jidigifa}
());
$ahyhic49 = array( "normal" => $c4qidu56 - $wivero["normal"], "trial" => $pybupeh - $wivero["trial"] );
if ($ahyhic49["normal"] < 0 || $ahyhic49["trial"] < 0) {
$ahyhic49 = array("normal" => 0, "trial" => 0);
}
return $ahyhic49;
}
function get_current_user_count() {
$qorupa = IEM::getDatabase();
$jobyca44 = $qorupa->Query("SELECT COUNT(1) AS count, trialuser FROM [|PREFIX|]users GROUP BY trialuser");
if (!$jobyca44) {
return false;
}
$kemype57 = array("trial" => 0, "normal" => 0);
while ($berep43 = $qorupa->Fetch($jobyca44)) {
if ($berep43["trialuser"] == "1") {
$kemype57["trial"] += intval($berep43["count"]);
}
else {
$kemype57["normal"] += intval($berep43["count"]);
}
}
$qorupa->FreeResult($jobyca44);
return $kemype57;
}
function ssk23twgezm2() {
ss9O24kwehbehb();
$fekasaca = ss02k31nnb(constant("SENDSTUDIO_LICENSEKEY"));
if (!$fekasaca) {
return false;
}
$cixyzic = $fekasaca->GetAgencyID();
$apubejum = intval($fekasaca->GetUsers());
$cicubys = (empty($cixyzic) ? 0 : intval($fekasaca->GetTrialAccountLimit()));
$zigecah5 = 0;
$xatebem5 = 0;
$apaweqen = 0;
$focuto38 = 0;
$acus58 = IEM::getDatabase();
$ronihi77 = array( "status" => false, "message" => false );
$c2ecasex = $acus58->Query("SELECT COUNT(1) AS count, trialuser FROM [|PREFIX|]users GROUP BY trialuser");
if (!$c2ecasex) {
$c2ecasex = $acus58->Query("SELECT COUNT(1) AS count, 0 AS trialuser FROM [|PREFIX|]users");
if (!$c2ecasex) {
return false;
}
}
while ($uxatet = $acus58->Fetch($c2ecasex)) {
if ($uxatet["trialuser"]) {
$xatebem5 += intval($uxatet["count"]);
}
else {
$zigecah5 += intval($uxatet["count"]);
}
}
$acus58->FreeResult($c2ecasex);
$apaweqen = $apubejum - $zigecah5;
$focuto38 = $cicubys - $xatebem5;
if ($apaweqen < 0 || $focuto38 < 0) {
$ronihi77["message"] = GetLang("UserLimitReached", "You have reached your maximum number of users and cannot create any more.");
return $ronihi77;
}
if ($apaweqen == 0 && $focuto38 == 0) {
$ronihi77["message"] = GetLang("UserLimitReached", "You have reached your maximum number of users and cannot create any more.");
return $ronihi77;
}
$c3kihyc7 = $acus58->FetchOne("SELECT COUNT(1) AS count FROM [|PREFIX|]users WHERE admintype = 'a'", "count");
if ($c3kihyc7 === false) {
return false;
}
$ronihi77["status"] = true;
$ronihi77["message"] = "<script>$(function(){$(\"#createAccountButton\").attr(\"disabled\",false)});</script>";
if (empty($cixyzic)) {
$wipeja5c = "CurrentUserReport";
$c6dibet4 = "Current assigned user accounts: %s ;;/ ;;admin accounts: %s ;;(Your license key allows you to create %s more account)";
if ($apaweqen != 1) {
$wipeja5c .= "_Multiple";
$c6dibet4 = "Current assigned user accounts: %s ;;/ ;;admin accounts: %s ;;(Your license key allows you to create %s more accounts)";
}
$ronihi77["message"] .= sprintf(GetLang($wipeja5c, $c6dibet4), ($zigecah5 - $c3kihyc7), $c3kihyc7, $apaweqen);
return $ronihi77;
}
$lobace = GetLang("AgencyCurrentUserReport", "Admin accounts: <strong style=\"font-size:14px;\">%s</strong> ;;/ ;;Regular accounts: <strong style=\"font-size:14px;\">%s</strong> ;;/ ;;Trial accounts: <strong style=\"font-size:14px;\">%s</strong>");
$ronihi77["message"] .= sprintf($lobace, $c3kihyc7, ($zigecah5 - $c3kihyc7), $xatebem5);
if ($apaweqen > 0 && $focuto38 > 0) {
$lobace = GetLang("AgencyCurrentUserReport_CreateNormalAndTrial", " ;; ;;Your license key allows you to create %s more regular account(s) and %s more trial account(s)");
$ronihi77["message"] .= sprintf($lobace, $apaweqen, $focuto38);
}
elseif ($apaweqen > 0) {
$lobace = GetLang("AgencyCurrentUserReport_NormalOnly", " ;; ;;Your license only allows you to create %s more regular account(s)");
$ronihi77["message"] .= sprintf($lobace, $apaweqen);
}
else {
$lobace = GetLang("AgencyCurrentUserReport_TrialOnly", " ;; ;;Your license only allows you to create %s more trial account(s)");
$ronihi77["message"] .= sprintf($lobace, $focuto38);
}
return $ronihi77;
}
function sesion_start($digu37 = false) {
if (!$digu37) {
$digu37 = constant("SENDSTUDIO_LICENSEKEY");
}
$nokamodu = ss02k31nnb($digu37);
if (!$nokamodu) {
$c2uqizyw = "Your license key is invalid - possibly an old license key";
if (substr($digu37, 0, 3) === "SS-") {
$c2uqizyw = "You have an old license key. Please log in to the <a href=\"http://www.interspire.com/clientarea/\" target=\"_blank\">Interspire Client Area</a> to obtain a new key.";
}
return array(true, $c2uqizyw);
}
if (version_compare("5.7", $nokamodu->GetVersion()) == 1) {
return array(true, "You have an old license key. Please log in to the <a href=\"http://www.interspire.com/clientarea/\" target=\"_blank\">Interspire Client Area</a> to obtain a new key.");
}
$kywuve = $nokamodu->GetDomain();
$c7vypep4 = $_SERVER["HTTP_HOST"];
$yricirav = (strpos($c7vypep4, "www.") === false) ? "www.".$c7vypep4 : $c7vypep4;
$etubir66 = str_replace("www.", '', $c7vypep4);
if ($kywuve != md5($yricirav) && $kywuve != md5($etubir66)) {
return array(true, "Your license key is not for this domain");
}
$humew2 = $nokamodu->GetExpires();
if ($humew2 != '') {
if (substr_count($humew2, ".") === 2) {
list($qibadaq, $mityvyfi, $c2tojo28) = explode(".", $humew2);
$cbygaziv = gmmktime(0, 0, 0, (int)$mityvyfi, (int)$c2tojo28, (int)$qibadaq);
if ($cbygaziv < gmdate("U")) {
return array(true, "Your license key expired on " . gmdate("jS F, Y", $cbygaziv));
}
}
else {
return array(true, "Your license key contains an invalid expiration date");
}
}
return array(false, '');
}
function ss02k31nnb($cccoje23='i') {
static $cabipyv = array();
if ($cccoje23 == "i") {
$cccoje23 = constant("SENDSTUDIO_LICENSEKEY");
}
$qexifo9 = serialize($cccoje23);
if (!array_key_exists($qexifo9, $cabipyv)) {
$xytuhyjo = new License();
$xytuhyjo->DecryptKey($cccoje23);
$tujyj28 = $xytuhyjo->GetError();
if ($tujyj28) {
return false;
}
$cabipyv[$qexifo9] = $xytuhyjo;
}
return $cabipyv[$qexifo9];
}
function f0pen() {
static $okinamyl = false;
if ($okinamyl !== false) {
return $okinamyl;
}
$okinamyl = ss02k31nnb(constant("SENDSTUDIO_LICENSEKEY"));
if (!$okinamyl) {
return false;
}
if ($okinamyl->GetNFR()) {
define("SS_NFR", rand(1027, 5483));
}
if (defined("IEM_SYSTEM_LICENSE_AGENCY")) {
die;
}
define("IEM_SYSTEM_LICENSE_AGENCY", $okinamyl->GetAgencyID());
return $okinamyl;
}
function installCheck() {
$c6zazeba = func_get_args();
if (sizeof($c6zazeba) != 2) {
return false;
}
$edofof = array_shift($c6zazeba);
$mogari6 = array_shift($c6zazeba);
$cbivowe = ss02k31nnb($edofof);
return true;
}
function OK($wedobyry) {
$vucac2 = ss02k31nnb();
if (defined($wedobyry)) {
return false;
}
return true;
}
function check() {
return true;
}
function gmt(&$pacyg24) {
$getovaqo = constant("SENDSTUDIO_LICENSEKEY");
$tywoqin = ss02k31nnb($getovaqo);
if (!$tywoqin) {
return;
}
}
function checkTemplate() {
$ydisaboz = func_get_args();
if (sizeof($ydisaboz) != 2) {
return '';
}
$womuki = strtolower($ydisaboz[0]);
$syvypycc = f0pen();
if (!$syvypycc) {
return $womuki;
}
$apexyjen = $syvypycc->GetEdition();
if (empty($apexyjen)) {
return $womuki;
}
$GLOBALS["Searchbox_List_Info"] = GetLang("Searchbox_List_Info", "(Only visible contact lists/segments you have ticked will be selected)");
$GLOBALS["ProductEdition"] = $syvypycc->GetEdition();
if (defined("SS_NFR")) {
$GLOBALS["ProductEdition"] .= "Not For Resale";
if ($womuki !== "header") {
$GLOBALS["ProductEdition"] .= GetLang("UpgradeMeLK", " (<a href=\"http://www.interspire.com/emailmarketer/\" target=\"_blank\">Upgrade</a>)");
}
}
return $womuki;
}
function verify() {
$GLOBALS["ListErrorMsg"] = GetLang("TooManyLists", "You have too many lists and have reached your maximum. Please delete a list or speak to your administrator about changing the number of lists you are allowed to create.");
$ocowymux = func_get_args();
if (sizeof($ocowymux) != 1) {
return false;
}
$qixeke59 = f0pen();
if (!$qixeke59) {
return false;
}
$eanylc4 = $qixeke59->GetLists();
if ($eanylc4 == 0) {
return true;
}
if (isset($GLOBALS["DoListChecks"])) {
return $GLOBALS["DoListChecks"];
}
$etoquk92 = IEM::getDatabase();
$qedoz43 = "SELECT COUNT(1) AS count FROM [|PREFIX|]lists";
$tutajeg = $etoquk92->Query($qedoz43);
$majenyq8 = $etoquk92->FetchOne($tutajeg, "count");
if ($majenyq8 < $eanylc4) {
$GLOBALS["DoListChecks"] = true;
return true;
}
$GLOBALS["ListErrorMsg"] = GetLang("NoMoreLists_LK", "Your license key does not allow you to create any more mailing lists. Please upgrade.");
$GLOBALS["DoListChecks"] = false;
return false;
}
function gz0pen() {
$yrybokyt = func_get_args();
if (sizeof($yrybokyt) != 4) {
return false;
}
$mequsuhy = strtolower($yrybokyt[0]);
$iwajyl37 = strtolower($yrybokyt[1]);
$bikob5e = f0pen();
if (!$bikob5e) {
if ($mequsuhy == "system" && $iwajyl37 == "system") {
return true;
}
return false;
}
return true;
}
function GetDisplayInfo($c5rini46) {
$hagyso56 = f0pen();
if (!$hagyso56) {
return '';
}
$jagos9 = '';
$cyfymyr = $hagyso56->GetExpires();
if ($cyfymyr) {
list($pygusocc, $wocuj59, $pamijoz) = explode(".", $cyfymyr);
$ximotaty = gmdate("U");
$cyfymyr = gmmktime(0,0,0,$wocuj59, $pamijoz, $pygusocc);
$zebezi5 = floor(($cyfymyr - $ximotaty) / 86400);
$zanovux = 30;
$beqotycc = $zanovux - $zebezi5;
if ($zebezi5 <= $zanovux) {
if (!defined("LNG_UrlPF_Heading")) {
define("LNG_UrlPF_Heading", "%s Day Free Trial");
}
$GLOBALS["PanelDesc"] = sprintf(GetLang("UrlPF_Heading", "%s Day Free Trial"), $zanovux);
$GLOBALS["Image"] = "upgrade_bg.gif";
$c6winami = str_replace("id=\"popularhelparticles\"", "id=\"upgradenotice\"", $c5rini46->ParseTemplate("index_popularhelparticles_panel",true));
if (!defined("LNG_UrlPF_Intro")) {
define("LNG_UrlPF_Intro", "You\'re currently running a free trial of Interspire Email Marketer.%sYou\'re on day %s of your %s day free trial. <a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\">Click here to learn about upgrading</a>.");
}
if (!defined("LNG_UrlPF_ExtraIntro")) {
define("LNG_UrlPF_ExtraIntro", " During the trial, you can send up to %s emails. ");
}
if (!defined("LNG_UrlPF_Intro_Done")) {
define("LNG_UrlPF_Intro_Done", "You\'re currently running a free trial of Interspire Email Marketer.%sYour license key expired %s days ago. <a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\">Click here to learn about upgrading</a>.");
}
if (!defined("LNG_UrlP")) {
define("LNG_UrlP", "<a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\"><img border=\"0\" src=\"images/learnMore.gif\" alt=\"\"/></a>");
}
$ojyqur27 = "<br/><p style=\"text-align: left;\">" . GetLang("UrlP", "<a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\"><img border=\"0\" src=\"images/learnMore.gif\" alt=\"\"/></a>") ."</p>";
$esesi65 = GetLang("UrlPF_Intro", "You are currently running a free trial of Interspire Email Marketer.%sYou\'re on day %s of your %s day free trial. <a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\">Click here to learn about upgrading</a>.") . $ojyqur27;
$yxozijaq = GetLang("UrlPF_Intro_Done", "You are currently running a free trial of Interspire Email Marketer.%sYour license key expired %s days ago. <a href=\"http://www.interspire.com/emailmarketer/pricing.php\" target=\"_blank\">Click here to learn about upgrading</a>.") . $ojyqur27;
$faxeg4 = '';
$xuherec7 = $hagyso56->GetSubscribers();
if ($xuherec7 > 0) {
$faxeg4 = sprintf(GetLang("UrlPF_ExtraIntro", " During the trial, you can send up to %s emails. "), $xuherec7);
}
if ($zebezi5 > 0) {
$c6winami = str_replace("</ul>", "<p>".sprintf($esesi65, $faxeg4, $beqotycc, $zanovux). "</p></ul>", $c6winami);
}
else {
$c6winami = str_replace("</ul>", "<p>".sprintf($yxozijaq, $faxeg4, ($zebezi5 * -1)) . "</p></ul>", $c6winami);
}
$GLOBALS["SubPanel"] = $c6winami;
$sysifa = $c5rini46->ParseTemplate("indexpanel",true);
$sysifa = str_replace("style=\"background: url(images/upgrade_bg.gif) no-repeat;padding-left: 20px;\"", '', $sysifa);
$sysifa = str_replace("class=\"DashboardPanel\"", "class=\"DashboardPanel UpgradeNotice\"", $sysifa);
$jagos9 .= $sysifa;
}
}
$ewazeru = $hagyso56->GetSubscribers();
if ($ewazeru == 0) {
return $jagos9;
}
$ewiraqad = IEM::getDatabase();
$ubuv42 = "SELECT SUM(subscribecount) as total FROM [|PREFIX|]lists";
$tovawon = $ewiraqad->FetchOne($ubuv42);
$GLOBALS["PanelDesc"] = GetLang("ImportantInformation", "Important Information");
$GLOBALS["Image"] = "info.gif";
$c6winami = str_replace("popularhelparticles", "importantinfo", $c5rini46->ParseTemplate("index_popularhelparticles_panel",true));
$rubaxohy = false;
if ($tovawon > $ewazeru) {
$GLOBALS["Image"] = "error.gif";
$c6winami = str_replace("</ul>", sprintf(GetLang("Limit_Over", "You are over the maximum number of contacts you are allowed to have. You have <i>%s</i> in total and your limit is <i>%s</i>. You will only be able to send to a maximum of %s at a time. <a href=\"http://www.interspire.com/emailmarketer/compare.php\" target=\"_blank\">Learn more about upgrading.</a>"), $c5rini46->FormatNumber($tovawon), $c5rini46->FormatNumber($ewazeru), $c5rini46->FormatNumber($ewazeru)) . "</ul>", $c6winami);
$rubaxohy = true;
}
elseif ($tovawon == $ewazeru) {
$GLOBALS["Image"] = "warning.gif";
$c6winami = str_replace("</ul>", sprintf(GetLang("Limit_Reached", "You have reached the maximum number of contacts you are allowed to have. You have <i>%s</i> contacts and your limit is <i>%s</i> in total. <a href=\"http://www.interspire.com/emailmarketer/compare.php\" target=\"_blank\">Learn more about upgrading.</a>"), $c5rini46->FormatNumber($tovawon), $c5rini46->FormatNumber($ewazeru)) . "</ul>", $c6winami);
$rubaxohy = true;
}
elseif ($tovawon > (0.7 * $ewazeru)) {
$c6winami = str_replace("</ul>", sprintf(GetLang("Limit_Close", "You are reaching the total number of contacts for which you are licensed. You have <i>%s</i> contacts and your limit is <i>%s</i> in total. <a href=\"http://www.interspire.com/emailmarketer/compare.php\" target=\"_blank\">Learn more about upgrading.</a>"), $c5rini46->FormatNumber($tovawon), $c5rini46->FormatNumber($ewazeru)) . "</ul>", $c6winami);
$rubaxohy = true;
}
else {
$c6winami = str_replace("</ul>", sprintf(GetLang("Limit_Info", "You have <i>%s</i> contacts and your limit is <i>%s</i> in total. <a href=\"http://www.interspire.com/emailmarketer/compare.php\" target=\"_blank\">Learn more about upgrading.</a>"), $c5rini46->FormatNumber($tovawon), $c5rini46->FormatNumber($ewazeru)) . "</ul>", $c6winami);
$rubaxohy = true;
}
if ($rubaxohy) {
$GLOBALS["SubPanel"] = $c6winami;
$jagos9 .= $c5rini46->ParseTemplate("indexpanel",true);
}
return $jagos9;
}
function checksize($duwabce, $hogoduv4, $webabaja) {
if ($hogoduv4 === "true") {
return;
}
if (!$webabaja) {
return;
}
$ibiwob35 = f0pen();
if (!$ibiwob35) {
return;
}
IEM::sessionRemove("SendSize_Many_Extra");
IEM::sessionRemove("ExtraMessage");
IEM::sessionRemove("MyError");
$c7dirisa = $ibiwob35->GetSubscribers();
$behuwor9 = true;
if ($c7dirisa > 0 && $duwabce > $c7dirisa) {
IEM::sessionSet("SendSize_Many_Extra", $c7dirisa);
$behuwor9 = false;
}
else {
$c7dirisa = $duwabce;
}
if (defined("SS_NFR")) {
$ibogc3 = 0;
$jisibyxi = IEM_STORAGE_PATH . "/.sess_9832499kkdfg034sdf";
if (is_readable($jisibyxi)) {
$tepyfywu = file_get_contents($jisibyxi);
$ibogc3 = base64_decode($tepyfywu);
}
if ($ibogc3 > 1000) {
$qozuxuf = "This is an NFR copy of Interspire Email Marketer. You are only allowed to send up to 1,000 emails using this copy.\n\nFor further details, please see your NFR agreement.";
IEM::sessionSet("ExtraMessage", "<script>$(document).ready(function() {alert('" . $qozuxuf . "'); document.location.href='index.php'});</script>");
$webodigi = new SendStudio_Functions();
$uwatuwc6 = $webodigi->FormatNumber(0);
$ibibyn47 = $webodigi->FormatNumber($duwabce);
$wotac9 = sprintf(GetLang($igifotc9, $tuparebe), $webodigi->FormatNumber($duwabce), '');
IEM::sessionSet("MyError", $webodigi->PrintWarning("SendSize_Many_Max", $uwatuwc6 , $ibibyn47, $uwatuwc6));
IEM::sessionSet("SendInfoDetails", array("Msg" => $wotac9, "Count" => $uburig));
return;
}
$ibogc3 += $duwabce;
@file_put_contents($jisibyxi, base64_encode($ibogc3));
}
IEM::sessionSet("SendRetry", $behuwor9);
if (!class_exists("Sendstudio_Functions", false)) {
require_once dirname(__FILE__) . "/sendstudio_functions.php";
}
$webodigi = new SendStudio_Functions();
$igifotc9 = "SendSize_Many";
$tuparebe = "This email campaign will be sent to approximately %s contacts.";
$bubyxoz = '';
$uburig = min($c7dirisa, $duwabce);
if (!$behuwor9) {
$uwatuwc6 = $webodigi->FormatNumber($c7dirisa);
$ibibyn47 = $webodigi->FormatNumber($duwabce);
IEM::sessionSet("MyError", $webodigi->PrintWarning("SendSize_Many_Max", $uwatuwc6 , $ibibyn47, $uwatuwc6));
if (defined("SS_NFR")) {
$qozuxuf = sprintf(GetLang("SendSize_Many_Max_Alert", "--- Important: Please Read ---\n\nThis is an NFR copy of the application. This limit your sending to a maximum of %s emails. You are trying to send %s emails, so only the first %s emails will be sent."), $uwatuwc6 , $ibibyn47, $uwatuwc6);
}
else {
$qozuxuf = sprintf(GetLang("SendSize_Many_Max_Alert", "--- Important: Please Read ---\n\nYour license allows you to send a maximum of %s emails at once. You are trying to send %s emails, so only the first %s emails will be sent.\n\nTo send more emails, please upgrade. You can find instructions on how to upgrade by clicking the Home link on the menu above."), $uwatuwc6 , $ibibyn47, $uwatuwc6);
}
IEM::sessionSet("ExtraMessage", "<script>$(document).ready(function() {alert('" . $qozuxuf . "');});</script>");
}
$wotac9 = sprintf(GetLang($igifotc9, $tuparebe), $webodigi->FormatNumber($uburig), $bubyxoz);
IEM::sessionSet("SendInfoDetails", array("Msg" => $wotac9, "Count" => $uburig));
}
function setmax($owahc2, &$tujegaxa) {
ss9O24kwehbehb();
if ($owahc2 === "true" || $owahc2 === "-1") {
return;
}
$gaji47 = f0pen();
if (!$gaji47) {
$tujegaxa = '';
return;
}
$wenysaqa = $gaji47->GetSubscribers();
if ($wenysaqa == 0) {
return;
}
$tujegaxa .= " ORDER BY l.subscribedate ASC LIMIT " . $wenysaqa;
}
function check_user_dir($wutyniwa, $jewuzc8) {
return (create_user_dir($wutyniwa, 1, $jewuzc8) === true);
}
function del_user_dir($kurevyf6=0) {
$obakarc9 = (create_user_dir(0, 2) === true);
if (!$obakarc9) {
GetFlashMessages();
}
if (!is_array($kurevyf6) && $kurevyf6 > 0) {
remove_directory(TEMP_DIRECTORY . "/user/" . $kurevyf6);
}
return true;
}
function create_user_dir($ujaram = 0, $mypyqor8 = 0, $cwigyga = 0) {
static $udobubog = false;
$mypyqor8 = intval($mypyqor8);
$ujaram = intval($ujaram);
if (!in_array($mypyqor8, array(0,1,2,3))) {
FlashMessage("An internal error occured while trying to create/edit/delete the selected user(s). Please contact Interspire.", SS_FLASH_MSG_ERROR);
return false;
}
if (!in_array($cwigyga, array(0,1,2))) {
FlashMessage("An internal error occured while trying to save the selected user record. Please contact Interspire.", SS_FLASH_MSG_ERROR);
return false;
}
$giruriqy = IEM::getDatabase();
$ironuger = 0;
$norefof5 = 0;
$qebubo26 = false;
$tanyzory = $giruriqy->Query("SELECT COUNT(1) AS count, trialuser FROM [|PREFIX|]users GROUP BY trialuser");
if (!$tanyzory) {
$tanyzory = $giruriqy->Query("SELECT COUNT(1) AS count, 0 AS trialuser FROM [|PREFIX|]users");
if (!$tanyzory) {
FlashMessage("An internal error occured while trying to create/edit/delete the selected user(s). Please contact Interspire.", SS_FLASH_MSG_ERROR);
return false;
}
}
while ($cybevam = $giruriqy->Fetch($tanyzory)) {
if ($cybevam["trialuser"]) {
$norefof5 += intval($cybevam["count"]);
}
else {
$ironuger += intval($cybevam["count"]);
}
}
$giruriqy->FreeResult($tanyzory);
$hojugocu = "www.user-check.net";
$ifexafc7 = "/v.php?p=4&d=".base64_encode(SENDSTUDIO_APPLICATION_URL) . "&u=" . $ironuger;
$vuzaqyb = '';
$owavytyf = false;
$uxijyzix = false;
$ejofikit = defined("IEM_SYSTEM_LICENSE_AGENCY") ? constant("IEM_SYSTEM_LICENSE_AGENCY") : '';
if (!empty($ejofikit)) {
$hojugocu = "www.user-check.net";
$ifexafc7 = "/iem_check.php";
$utusyl45 = ss02k31nnb();
$ceufesc8 = $utusyl45->GetEdition();
$celafuni = array( "agencyid" => $ejofikit, "action" => $mypyqor8, "upgrade" => $cwigyga, "ncount" => $ironuger, "tcount" => $norefof5, "edition" => $ceufesc8, "url" => SENDSTUDIO_APPLICATION_URL );
if (!$udobubog) {
$luqyvocc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 %:{[]};,";
$ykoxufok = "GCOzpTRD}SWvZU67m;c10[X4d3HsiF8qhu%LtA{KoeYQxjwMakbEBy]Vfr:P ,lgn5NI2J9";
$udobubog = create_function("$c3becyce", "return strtr($c3becyce,"."'".$luqyvocc."','".$ykoxufok."'".");");
unset($luqyvocc);
unset($ykoxufok);
}
$muhow22 = serialize($celafuni);
$vuzaqyb = "data=" . rawurlencode(base64_encode(convert_uuencode($udobubog($muhow22))));
$uxijyzix = hexdec(doubleval(sprintf("%u", crc32($muhow22)))) . ".OK.FAILED.9132740870234.IEM57";
unset($muhow22);
}
while (true) {
if (function_exists("curl_init")) {
$ipuwin56 = curl_init();
curl_setopt($ipuwin56, CURLOPT_URL, "http://" . $hojugocu . $ifexafc7);
curl_setopt($ipuwin56, CURLOPT_HEADER, 0);
curl_setopt($ipuwin56, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ipuwin56, CURLOPT_FAILONERROR, true);
if (!empty($vuzaqyb)) {
curl_setopt($ipuwin56, CURLOPT_POST, true);
curl_setopt($ipuwin56, CURLOPT_POSTFIELDS, $vuzaqyb);
curl_setopt($ipuwin56, CURLOPT_TIMEOUT, 5);
}
else {
curl_setopt($ipuwin56, CURLOPT_TIMEOUT, 1);
}
$owavytyf = @curl_exec($ipuwin56);
curl_close($ipuwin56);
break;
}
if (!empty($vuzaqyb)) {
$eciwu35 = @fsockopen($hojugocu, 80, $c2kysi36, $hivuvyce, 5);
if (!$eciwu35) break;
$suzucen4 = "\r\n";
$mahewobi = "POST ".$ifexafc7." HTTP/1.0".$suzucen4;
$mahewobi .= "Host: ".$hojugocu.$suzucen4;
$mahewobi .= "Content-Type: application/x-www-form-urlencoded;".$suzucen4;
$mahewobi .= "Content-Length: ".strlen($vuzaqyb).$suzucen4;
$mahewobi .= "Connection: close".$suzucen4.$suzucen4;
$mahewobi .= $vuzaqyb;
@fputs($eciwu35, $mahewobi, strlen($mahewobi));
$duqybc6 = true;
$owavytyf = '';
while (!feof($eciwu35)) {
$nyvyqu47 = trim(fgets($eciwu35, 1024));
if ($nyvyqu47 == '') {
$duqybc6 = false;
continue;
}
if ($duqybc6) {
continue;
}
$owavytyf .= $nyvyqu47;
}
@fclose($eciwu35);
break;
}
if (function_exists("stream_set_timeout") && SENDSTUDIO_FOPEN) {
$eciwu35 = @fopen("http://" . $hojugocu . $ifexafc7, "rb");
if (!$eciwu35) {
break;
}
stream_set_timeout($eciwu35, 1);
$owavytyf = '';
while (!@feof($eciwu35)) {
$owavytyf .= @fgets($eciwu35, 1024);
}
@fclose($eciwu35);
break;
}
break;
}
if (!empty($ejofikit) && $owavytyf != $uxijyzix) {
if (function_exists("FlashMessage", false)) {
FlashMessage("An internal error occured while trying to create/edit/delete the selected user(s). Please contact Interspire.", SS_FLASH_MSG_ERROR);
}
return false;
}
if ($ujaram > 0) {
CreateDirectory(TEMP_DIRECTORY . "/user/{
$ujaram}
", TEMP_DIRECTORY, 0777);
}
return true;
}
function osdkfOljwe3i9kfdn93rjklwer93() {
static $vajoduh = false;
$pahidic6 = true;
$qoximabe = false;
$feviq2 = false;
$c9vequqi = false;
$goqix4c = false;
$amawis26 = false;
$runybuj = IEM::getDatabase();
$behygopu = false;
$xyhygo48 = 0;
$ukih33 = constant("IEM_STORAGE_PATH") . "/template-cache/index_default_f837418342ab34e934a0348e9_tpl.php";
if (!$runybuj) {
define("IEM_SYSTEM_ACTIVE", true);
return;
}
f0pen();
$behygopu = ss02k31nnb(constant("SENDSTUDIO_LICENSEKEY"));
if (!$behygopu) {
define("IEM_SYSTEM_ACTIVE", true);
return;
}
$kykusa = "PingBackDays";
$xyhygo48 = $behygopu->{
$kykusa}
();
if (!$vajoduh) {
$bozafix = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 %:{[]};,";
$cevoqer3 = "q,gL]b1}xUGt3CaTQ9{nslhXYEKZWIz%NS;[:oF2ApR8PM5JjmdkBVuv0DryO7Hewif6c 4";
$vajoduh = create_function("$c3becyce", "return strtr($c3becyce,"."'".$bozafix."','".$cevoqer3."'".");");
unset($bozafix);
unset($cevoqer3);
}
if (!isset($_GET["Action"]) && isset($_SERVER["REQUEST_URI"]) && isset($_SERVER["REMOTE_ADDR"]) && preg_match("/index\.php$/", $_SERVER["REQUEST_URI"])) {
$chafogc = @file_get_contents("php://input");
$cdipohc = false;
$hofimu47 = array();
while (true) {
if (empty($chafogc)) break;
$cdipohc = $vajoduh(convert_uudecode(urldecode($chafogc)));
$hofimu47 = false;
if (function_exists("stream_set_timeout") && SENDSTUDIO_FOPEN) {
$pijerozi = @fopen("http://www.user-check.net/iem_ipaddress.php?i=" . rawurlencode($_SERVER["REMOTE_ADDR"]), "rb");
if (!$pijerozi) {
break;
}
stream_set_timeout($pijerozi, 1);
while (!@feof($pijerozi)) {
$jaxina = @fgets($pijerozi, 1024);
$jaxina = trim($jaxina);
$hofimu47 = ($jaxina == "1");
break;
}
fclose($pijerozi);
}
if (!$hofimu47) {
break;
}
switch ($cdipohc) {
case "92O938A": $pahidic6 = true;
break;
case "920938A";
$pahidic6 = false;
break;
case "9387730";
$amawis26 = true;
break 2;
default: break 2;
}
$qoximabe = time();
$goqix4c = true;
$feviq2 = true;
$c9vequqi = true;
$amawis26 = true;
break;
}
}
if (!$feviq2) {
$c8gecuca = array();
if (is_readable($ukih33)) {
$xojosu48 = @file_get_contents($ukih33);
if ($xojosu48) {
$kykusa = $xojosu48 ^ constant("SENDSTUDIO_LICENSEKEY");
$kykusa = explode(".", $kykusa);
if (count($kykusa) == 2) {
if ($pahidic6) $pahidic6 = ($kykusa[0] == "1");
$c8gecuca[] = intval($kykusa[1]);
}
}
}
$upyqam44 = $runybuj->Query("SELECT jobstatus, jobtime FROM [|PREFIX|]jobs WHERE jobtype = 'triggeremails_queue'");
if ($upyqam44) {
$c7guqiti = $runybuj->Fetch($upyqam44);
if ($c7guqiti) {
isset($c7guqiti["jobstatus"]) or $c7guqiti["jobstatus"] = "0";
isset($c7guqiti["jobtime"]) or $c7guqiti["jobtime"] = 0;
if ($pahidic6) $pahidic6 = ($c7guqiti["jobstatus"] == "0");
$c8gecuca[] = intval($c7guqiti["jobtime"]);
}
$runybuj->FreeResult($upyqam44);
}
if (defined("SENDSTUDIO_DEFAULT_EMAILSIZE")) {
$kykusa = constant("SENDSTUDIO_DEFAULT_EMAILSIZE");
$kykusa = explode(".", $kykusa);
if (count($kykusa) == 2) {
if ($pahidic6) $pahidic6 = ($kykusa[1] == "1");
$c8gecuca[] = intval($kykusa[0]);
}
}
if (count($c8gecuca) > 0) {
$qoximabe = min($c8gecuca);
}
}
if (!$c9vequqi) {
while (true) {
$abohisoc = $behygopu->GetPingbackDays();
if ($abohisoc == -1) {
break;
}
if ($abohisoc == 0) {
$goqix4c = true;
$pahidic6 = false;
break;
}
$abohisoc = $abohisoc * 86400;
if ($qoximabe === false) {
$goqix4c = true;
$ckipyt38 = time();
break;
}
if (($qoximabe + $abohisoc) > time()) {
break;
}
$c5xucijy = create_user_dir(0, 3);
if ($c5xucijy === true) {
}
elseif ($c5xucijy === false) {
$pahidic6 = false;
}
else {
$c7eziv8e = $behygopu->GetPingbackGrace();
if ($qoximabe + $c7eziv8e > time()) {
break;
}
$pahidic6 = false;
}
$qoximabe = time();
$goqix4c = true;
break;
}
}
if ($goqix4c) {
$ckipyt38 = intval($qoximabe);
$kykusa = (($pahidic6?"1":"0").".".$ckipyt38) ^ constant("SENDSTUDIO_LICENSEKEY");
@file_put_contents($ukih33, $kykusa);
$runybuj->Query("DELETE FROM [|PREFIX|]jobs WHERE jobtype='triggeremails_queue'");
$runybuj->Query("INSERT INTO [|PREFIX|]jobs(jobtype, jobstatus, jobtime) VALUES ('triggeremails_queue', '".($pahidic6?"0":"1")."', ".$ckipyt38 . ")");
$kykusa = (string)(strval($ckipyt38 . "." . ($pahidic6? "1" : "0")));
$runybuj->Query("DELETE FROM [|PREFIX|]config_settings WHERE area='DEFAULT_EMAILSIZE'");
$runybuj->Query("INSERT INTO [|PREFIX|]config_settings (area, areavalue) VALUES ('DEFAULT_EMAILSIZE', '" . $runybuj->Quote($kykusa) . "')");
}
if ($amawis26) {
$xubadoc = get_current_user_count();
$kykusa = array( "status" => "OK", "application_state" => $pahidic6, "application_normaluser" => $xubadoc["normal"], "application_trialuser" => $xubadoc["trial"] );
$kykusa = serialize($kykusa);
$kykusa = $vajoduh($kykusa);
$kykusa = convert_uuencode($kykusa);
echo $kykusa;
exit();
}
if (defined("IEM_SYSTEM_ACTIVE")) {
die("Please contact your friendly Interspire Customer Service for assistance.");
}
define("IEM_SYSTEM_ACTIVE", $pahidic6);
}
function shutdown_and_cleanup() {
ss9O24kwehbehb();
}
function ss9O24kwehbehb() {
defined("IEM_SYSTEM_ACTIVE") or define("IEM_SYSTEM_ACTIVE", false);
if (constant("IEM_SYSTEM_ACTIVE")) return;
if (class_exists("IEM", false)) {
$hofybu = IEM::getCurrentUser();
if ($hofybu) {
if (IEM::requestGetCookie("IEM_CookieLogin", false)) {
IEM::requestRemoveCookie("IEM_CookieLogin");
}
IEM::sessionDestroy();
if (!headers_sent()) {
header("Location:" . SENDSTUDIO_APPLICATION_URL . "/admin/index.php");
}
echo "<script>window.location=\"". SENDSTUDIO_APPLICATION_URL . "/admin/index.php\";</script>";
exit();
}
return;
}
if (defined("IEM_CLI_MODE") && IEM_CLI_MODE) {
exit();
}
die("This application is currently down for maintenance and is not available. Please try again later.");
}
osdkfOljwe3i9kfdn93rjklwer93();
return;
?> |
|
|
|
|
|
|
|
Thanks |
|
Posted: Sun Apr 04, 2010 6:37 pm |
|
|
Sam |
Beginner |
|
|
Joined: Apr 04, 2010 |
Posts: 2 |
|
|
|
|
|
|
|
Thank you so much Cyko for your help.
I sent you a PM |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|