示例#1
0
 $errLogs[] = "Progress ({$phase}): Engine Settings Initialization - " . date("Y-m-d H:i:s A");
 # Mail Settings Init
 $opOrg->OID = $opCampRs['OID'];
 $opOrg->OSMID = $opCampRs['campaign_sender_account'];
 $opOrg->sub_from_title = showIn($opCampRs['campaign_sender_title'], 'page');
 $opOrg->sub_reply_mail = showIn($opCampRs['campaign_reply_mail'], 'page');
 $opOrg->sub_mail_attach = $opCampRs['attach'];
 $opOrg->orgSubInit();
 # Load Submission Settings
 $opOrg->sub_mail_id = $opCampRs['campaign_key'];
 $setMailPerConn = $orgSets['set_send_per_conn'];
 $setMailPerConnCount = 0;
 # Static Short Code Replaces
 # LOG **
 $errLogs[] = "Progress ({$phase}): Static Data Rendering Started - " . date("Y-m-d H:i:s A");
 $replaced = $opOrg->shortReplaces(array($opCampRs['subject'], $opCampRs['details'], $opCampRs['alt_details']));
 # Campaign Group Loader
 # LOG **
 $errLogs[] = "Progress ({$phase}): Campaign Groups Initialization - " . date("Y-m-d H:i:s A");
 $subGrps = array();
 $opCampGrp = $myconn->query("SELECT * FROM " . db_table_pref . "campaign_groups WHERE OID=" . $opCampRs['OID'] . " AND CID=" . $opCampRs['ID'] . "") or die(mysqli_error($myconn));
 while ($opCampGrpRs = $opCampGrp->fetch_assoc()) {
     $subGrps[] = " S.GID=" . $opCampGrpRs['GID'] . " ";
 }
 if (mysqli_num_rows($opCampGrp) > 0) {
     $subGrps = " AND (" . implode(" OR ", $subGrps) . ") ";
     # LOG **
     $errLogs[] = "Progress ({$phase}): Campaign Groups Loaded - " . date("Y-m-d H:i:s A");
 } else {
     # LOG **
     $errLogs[] = "Error ({$phase}): Campaign Groups Corrupted - " . date("Y-m-d H:i:s A");
示例#2
0
         $OSMID = $subAccList;
     }
 }
 # Start
 $sendMail = new lethe();
 $sendMail->OID = set_org_id;
 $sendMail->OSMID = $OSMID;
 $sendMail->sub_from_title = showIn($_POST['campaign_sender_title'], 'page');
 $sendMail->sub_reply_mail = showIn($_POST['campaign_reply_mail'], 'page');
 $sendMail->sub_test_mail = showIn(set_org_test_mail, 'page');
 $sendMail->sub_mail_attach = $_POST['attach'];
 $sendMail->orgSubInit();
 # Load Submission Settings
 $sendMail->sub_mail_id = md5(set_org_test_mail);
 /* Short Code Replace */
 $replaced = $sendMail->shortReplaces(array($_POST['subject'], $_POST['details'], $_POST['alt_details']));
 $_POST['subject'] = $replaced[0];
 $_POST['details'] = $replaced[1];
 $_POST['alt_details'] = $replaced[2];
 /* Design Receiver Data */
 $rcMail = showIn(set_org_test_mail, 'page');
 $rcName = showIn($_POST['campaign_sender_title'], 'page');
 $rcSubject = showIn($_POST['subject'], 'page');
 $rcBody = $_POST['details'];
 $rcAltBody = $_POST['alt_details'];
 $recData = array($rcMail => array('name' => $rcName, 'subject' => $rcSubject, 'body' => $rcBody, 'altbody' => $rcAltBody));
 $sendMail->sub_mail_receiver = $recData;
 $sendMail->letheSender();
 if ($sendMail->sendPos) {
     echo errMod(autoresponder_test_mail_sent_successfully, 'success');
     if ($sendMail->sub_isDebug) {
示例#3
0
function rss_filter($v)
{
    $v = showIn($v, 'page');
    $v = clearSCs($v);
    # Short Code Formatting
    $scr = new lethe();
    $rss_str = $scr->shortReplaces(array($v));
    $rss_str = '<![CDATA[' . $rss_str[0] . ']]>';
    return $rss_str;
}
示例#4
0
     $campData = $sr->Get('details');
     $campTitle = $sr->Get('subject');
     $campTitle = clearSCs($campTitle);
     # Clear Some Short Codes
     $campData = clearSCs($campData, true);
     # Clear Some Short Codes
     $opSC = new lethe();
     $opSC->OID = $sr->Get('OID');
     # Load Organization Data
     $orgSets = array();
     if (!$opSC->loadOrg($sr->Get('OID'))) {
         $orgSets['set_public_key'] = '';
     }
     $LETHE_ORG_SETS['set_org_name'] = $orgSets['set_org_name'];
     # Short Codes
     $campDataSC = $opSC->shortReplaces(array($campData));
     if (is_array($campDataSC) && count($campDataSC) != 0) {
         foreach ($campDataSC as $k => $v) {
             $campData = $v;
         }
     }
     # Dynamics
     $frKeys = array('#\\{?(NEWSLETTER_LINK\\[(.*?)\\])\\}#' => '<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=web&amp;id=' . $id . '&amp;sid=">$2</a>', '#\\{?(RSS_LINK\\[(.*?)\\])\\}#' => '<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=rss&amp;oid=' . $orgSets['set_public_key'] . '">$2</a>', '#<title\\b[^>]*>(.*?)<\\/title>#im' => '<title>' . showIn($campTitle, 'page') . '</title>');
     $campData = preg_replace(array_keys($frKeys), $frKeys, $campData);
     # Track Link
     $campData = preg_replace_callback('#\\{?(TRACK_LINK\\[(.*?)\\]\\[(.*?)\\])\\}#', create_function('$matches', 'return \'<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=track&amp;id=' . $id . '&amp;sid=&amp;redu=\'. letheURLEnc($matches[3]) .\'" target="_blank">\'. $matches[2] .\'</a>\';'), $campData);
     # View Hit Will Use For Web?
     # *** currently is not..
     echo $campData;
 } else {
     # Page will shown 404 error page if campaign not able for web view