function checksize($tyzeveh4, $cckoceji, $noxosi23) { if ($cckoceji === "true") { return; } if (!$noxosi23) { return; } $enozirek = f0pen(); if (!$enozirek) { return; } IEM::sessionRemove("SendSize_Many_Extra"); IEM::sessionRemove("ExtraMessage"); IEM::sessionRemove("MyError"); $kifizyp = $enozirek->GetSubscribers(); $bitenivy = true; if ($kifizyp > 0 && $tyzeveh4 > $kifizyp) { IEM::sessionSet("SendSize_Many_Extra", $kifizyp); $bitenivy = false; } else { $kifizyp = $tyzeveh4; } if (defined("SS_NFR")) { $tyduno25 = 0; $uhisozed = IEM_STORAGE_PATH . "/.sess_9832499kkdfg034sdf"; if (is_readable($uhisozed)) { $qysuduc4 = file_get_contents($uhisozed); $tyduno25 = base64_decode($qysuduc4); } if ($tyduno25 > 1000) { $obuxut53 = "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('" . $obuxut53 . "'); document.location.href='index.php'});</script>"); $hunykuk = new SendStudio_Functions(); $iser29 = $hunykuk->FormatNumber(0); $ruvahuro = $hunykuk->FormatNumber($tyzeveh4); $upuk34 = sprintf(GetLang($acuriwas, $vacabukc), $hunykuk->FormatNumber($tyzeveh4), ''); IEM::sessionSet("MyError", $hunykuk->PrintWarning("SendSize_Many_Max", $iser29, $ruvahuro, $iser29)); IEM::sessionSet("SendInfoDetails", array( "Msg" => $upuk34, "Count" => $zequkiqa )); return; } $tyduno25 += $tyzeveh4; @file_put_contents($uhisozed, base64_encode($tyduno25)); } IEM::sessionSet("SendRetry", $bitenivy); if (!class_exists("Sendstudio_Functions", false)) { require_once dirname(__FILE__) . "/sendstudio_functions.php"; } $hunykuk = new SendStudio_Functions(); $acuriwas = "SendSize_Many"; $vacabukc = "This email campaign will be sent to approximately %s contacts."; $xavededu = ''; $zequkiqa = min($kifizyp, $tyzeveh4); if (!$bitenivy) { $iser29 = $hunykuk->FormatNumber($kifizyp); $ruvahuro = $hunykuk->FormatNumber($tyzeveh4); IEM::sessionSet("MyError", $hunykuk->PrintWarning("SendSize_Many_Max", $iser29, $ruvahuro, $iser29)); if (defined("SS_NFR")) { $obuxut53 = 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."), $iser29, $ruvahuro, $iser29); } else { $obuxut53 = 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."), $iser29, $ruvahuro, $iser29); } IEM::sessionSet("ExtraMessage", "<script>$(document).ready(function() {alert('" . $obuxut53 . "');});</script>"); } $upuk34 = sprintf(GetLang($acuriwas, $vacabukc), $hunykuk->FormatNumber($zequkiqa), $xavededu); IEM::sessionSet("SendInfoDetails", array( "Msg" => $upuk34, "Count" => $zequkiqa )); }