Exemplo n.º 1
0
	</div>
    <div role="tabpanel" class="tab-pane" id="imp_party">
	<!-- 3TH Part Start -->
	<div class="row">
		<div class="container-fluid">
			&nbsp;
			<form name="prty_form" id="prty_form" action="" method="POST">
				<div class="form-group">
					<label for="db_groups"><?php 
echo sh('Htj13E2WaU') . subscribers_groups;
?>
</label>
					<select name="db_groups" id="db_groups" class="form-control autoWidth">
						<?php 
foreach ($listGrps as $k => $v) {
    echo '<option value="' . $v['ID'] . '">' . showIn($v['group_name'], 'page') . ' (' . $v['sbr_cnt'] . ')</option>';
}
?>
					</select>
				</div>
				<div class="form-group">
					<label for="db_markas"><?php 
echo sh('8qtQgNmPD1') . subscribers_as_marked;
?>
</label>
					<div>
					<input type="checkbox" name="db_markas" id="db_markas" data-on-label="<?php 
echo letheglobal_active;
?>
" data-off-label="<?php 
echo letheglobal_inactive;
Exemplo n.º 2
0
         $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
         header('Location: lethe.newsletter.php?pos=');
         die;
     }
     $opCamp->close();
 } else {
     if ($pos == 'track') {
         date_default_timezone_set(lethe_default_timezone);
Exemplo n.º 3
0
     $rvVal = $rv;
     $frKeys = array('#\\{?(SUBSCRIBER_NAME)\\}#' => $opSubsRs['subscriber_name'] == '' ? '' : $opSubsRs['subscriber_name'], '#\\{?(SUBSCRIBER_MAIL)\\}#' => $opSubsRs['subscriber_mail'] == '' ? '' : $opSubsRs['subscriber_mail'], '#\\{?(SUBSCRIBER_WEB)\\}#' => $opSubsRs['subscriber_web'] == '' ? '' : $opSubsRs['subscriber_web'], '#\\{?(SUBSCRIBER_PHONE)\\}#' => $opSubsRs['subscriber_phone'] == '' ? '' : $opSubsRs['subscriber_phone'], '#\\{?(SUBSCRIBER_COMPANY)\\}#' => $opSubsRs['subscriber_company'] == '' ? '' : $opSubsRs['subscriber_company'], '#\\{?(NEWSLETTER_LINK\\[(.*?)\\])\\}#' => '<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=web&amp;id=' . $opCampRs['campaign_key'] . '&amp;sid=' . $opSubsRs['subscriber_key'] . '">$2</a>', '#\\{?(RSS_LINK\\[(.*?)\\])\\}#' => '<a href="' . $orgSets['set_org_rss_url'] . '">$2</a>', '#\\{?(UNSUBSCRIBE_LINK\\[(.*?)\\])\\}#' => '<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=unsubscribe&amp;id=' . $opCampRs['campaign_key'] . '&amp;sid=' . $opSubsRs['subscriber_key'] . '&amp;oid=' . $orgSets['set_public_key'] . '">$2</a>', '#\\{?(VERIFY_LINK\\[(.*?)\\])\\}#' => '');
     $rvVal = preg_replace(array_keys($frKeys), $frKeys, $rvVal);
     # Track Link
     $rvVal = preg_replace_callback('#\\{?(TRACK_LINK\\[(.*?)\\]\\[(.*?)\\])\\}#', create_function('$matches', 'return \'<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=track&amp;id=' . $opCampRs['campaign_key'] . '&amp;sid=' . $opSubsRs['subscriber_key'] . '&amp;redu=\'. letheURLEnc($matches[3]) .\'" target="_blank">\'. $matches[2] .\'</a>\';'), $rvVal);
     $ireplaced[$rk] = $rvVal;
 }
 # User Specific SC Replaces End ***********************************************
 $rcSubject = $ireplaced[0];
 $rcBody = $ireplaced[1];
 $rcAltBody = $ireplaced[2];
 /* Add Open Tracker */
 $rcBody .= '<img src="' . lethe_root_url . 'lethe.newsletter.php?pos=opntrck&amp;id=' . $opCampRs['campaign_key'] . '&amp;sid=' . $opSubsRs['subscriber_key'] . '" alt="" style="display:none;">';
 /* Design Receiver Data */
 $rcMail = showIn($opSubsRs['subscriber_mail'], 'page');
 $rcName = showIn($opSubsRs['subscriber_name'], 'page');
 $sentData[$rcMail] = array('name' => $rcName, 'subject' => $rcSubject, 'body' => $rcBody, 'altbody' => $rcAltBody);
 # Save Sent Mails
 $addSents->bind_param('s', $rcMail);
 $addSents->execute();
 $setMailPerConnCount++;
 # Send Mails With Per Conn Limit Start ****
 if ($setMailPerConnCount >= $setMailPerConn) {
     $opOrg->sub_mail_receiver = $sentData;
     $opOrg->letheSender();
     $setMailPerConnCount = 0;
     # Reset Conn Limit
     # LOG **
     $errLogs[] = "Progress ({$phase}): Rendered Data Send to Mail Engine - " . date("Y-m-d H:i:s A");
     $errLogs[] = "Progress ({$phase}): System Goes to Standby Mode - " . date("Y-m-d H:i:s A");
     # Go Standby
Exemplo n.º 4
0
					<label for="usr_name"><?php 
echo sh('IiIMsL5qIW') . letheglobal_name;
?>
</label>
					<input type="text" name="usr_name" id="usr_name" value="<?php 
echo isset($_POST['usr_name']) ? showIn($_POST['usr_name'], 'input') : '';
?>
" class="form-control autoWidth">
				</div>
				<div class="form-group">
					<label for="usr_mail"><?php 
echo sh('v21Akj0TAh') . letheglobal_e_mail;
?>
</label>
					<input type="email" name="usr_mail" id="usr_mail" value="<?php 
echo isset($_POST['usr_mail']) ? showIn($_POST['usr_mail'], 'input') : '';
?>
" class="form-control autoWidth">
				</div>
				<div class="form-group">
					<label for="usr_pass"><?php 
echo sh('XLjyd6v62s') . letheglobal_password;
?>
</label>
					<input type="password" name="usr_pass" id="usr_pass" value="" class="form-control autoWidth" autocomplete="off">
				</div>
				<div class="form-group">
					<label for="usr_pass2"><?php 
echo sh('9fSmVUpiv3') . letheglobal_type_it_again;
?>
</label>
Exemplo n.º 5
0
                echo sh('zIo5YkkltJ') . organizations_reply_e_mail;
                ?>
</label>
				<input type="email" class="form-control autoWidth" id="org_reply_mail" name="org_reply_mail" value="<?php 
                echo defined('set_org_reply_mail') ? showIn(set_org_reply_mail, 'input') : '';
                ?>
">
			</div>
			
			<div class="form-group">
				<label for="org_test_mail"><?php 
                echo sh('bcWtR8fOlU') . organizations_test_e_mail;
                ?>
</label>
				<input type="email" class="form-control autoWidth" id="org_test_mail" name="org_test_mail" value="<?php 
                echo defined('set_org_test_mail') ? showIn(set_org_test_mail, 'input') : '';
                ?>
">
			</div>
			
			<div class="form-group">
				<label for="org_timezone"><?php 
                echo sh('WqUDsK9a6d') . organizations_timezone;
                ?>
</label>
				<select name="org_timezone" id="org_timezone" class="form-control autoWidth">
					<?php 
                $tzones = timezone_list();
                foreach ($tzones as $k => $v) {
                    echo '<option value="' . $k . '"' . (defined('set_org_timezone') ? formSelector(set_org_timezone, $k, 0) : '') . '>' . $v . '</option>';
                }
Exemplo n.º 6
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;
}
Exemplo n.º 7
0
 public function sendVerify($mod = 1)
 {
     global $myconn;
     global $LETHE_ORG_SETS;
     # Mod 1 - Single
     # Mod 2 - Double
     # Only OID and SUBID required for simple verification sender calling, Mod value can be changed into first verification page
     /* Load Verification Template */
     $opTemp = $myconn->query("\n\t\t\t\t\t\t\t\t   SELECT \n\t\t\t\t\t\t\t\t\t\t\tTEMP.temp_type, TEMP.temp_name, TEMP.temp_contents,\n\t\t\t\t\t\t\t\t\t\t\tORG.ID,ORG.orgName,ORG.public_key AS OPLKEY,\n\t\t\t\t\t\t\t\t\t\t\tSBR.ID AS SBRID,\n\t\t\t\t\t\t\t\t\t\t\tSBR.subscriber_name, SBR.subscriber_mail, SBR.subscriber_web, SBR.subscriber_date, SBR.subscriber_phone, SBR.subscriber_company,\n\t\t\t\t\t\t\t\t\t\t\tSBR.subscriber_verify,SBR.subscriber_verify_key,SBR.subscriber_key,\n\t\t\t\t\t\t\t\t\t\t\tORGSET.OID AS OSOID,\n\t\t\t\t\t\t\t\t\t\t\tORGSET.set_key,ORGSET.set_val\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t     FROM \n\t\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "templates AS TEMP,\n\t\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "organizations AS ORG,\n\t\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "organization_settings AS ORGSET,\n\t\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "subscribers AS SBR\n\t\t\t\t\t\t\t\t    WHERE \n\t\t\t\t\t\t\t\t\t\t\tORG.ID=" . $this->OID . " \n\t\t\t\t\t\t\t\t\t  AND \n\t\t\t\t\t\t\t\t\t\t\t(TEMP.OID=ORG.ID AND TEMP.temp_type='verification')\n\t\t\t\t\t\t\t\t\t  AND\n\t\t\t\t\t\t\t\t\t\t\t(SBR.ID=" . $this->SUBID . ")\n\t\t\t\t\t\t\t\t\t  AND\n\t\t\t\t\t\t\t\t\t\t\t(ORGSET.OID=" . $this->OID . ")\n\t\t\t\t\t\t\t\t\t  AND\n\t\t\t\t\t\t\t\t\t\t\t(ORGSET.set_key='org_submission_account' OR ORGSET.set_key='org_sender_title' OR ORGSET.set_key='org_reply_mail')\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t") or die(mysqli_error($myconn));
     if (mysqli_num_rows($opTemp) == 0) {
         $opTemp->free();
         return false;
     } else {
         $opTempRs = $opTemp->fetch_assoc();
         $replaced = $this->shortReplaces(array($opTempRs['temp_name'], $opTempRs['temp_contents']));
         $mailTitle = $replaced[0];
         $mailBody = $replaced[1];
         /* Special System Codes */
         $find = array('{SUBSCRIBER_NAME}', '{SUBSCRIBER_MAIL}', '{SUBSCRIBER_PHONE}', '{SUBSCRIBER_COMPANY}');
         $replace = array($opTempRs['subscriber_name'], $opTempRs['subscriber_mail'], $opTempRs['subscriber_phone'], $opTempRs['subscriber_company']);
         $mailBody = str_replace($find, $replace, $mailBody);
         $mailTitle = str_replace($find, $replace, $mailTitle);
         /* Verify Code Replacer */
         $mailBody = preg_replace('#\\{?(VERIFY_LINK\\[)(.*?)\\]}#', '<a href="' . lethe_root_url . 'lethe.newsletter.php?pos=verification&amp;oid=' . $opTempRs['OPLKEY'] . '&amp;sid=' . $opTempRs['subscriber_key'] . '&amp;rt=' . ($mod == 1 ? $opTempRs['subscriber_verify_key'] : encr($opTempRs['subscriber_verify_key'])) . '">$2</a>', $mailBody);
         /* Send Mail */
         $subAccs = explode(',', $LETHE_ORG_SETS['set_org_submission_account']);
         if (count($subAccs) < 1) {
             return false;
         } else {
             $OSMIDs = $subAccs[0];
         }
         $this->OSMID = $OSMIDs;
         $this->sub_from_title = showIn($LETHE_ORG_SETS['set_org_sender_title'], 'page');
         $this->sub_reply_mail = showIn($LETHE_ORG_SETS['set_org_reply_mail'], 'page');
         $this->orgSubInit();
         # Load Submission Settings
         $this->sub_mail_id = md5($opTempRs['subscriber_mail']);
         /* Design Receiver Data */
         $rcMail = $opTempRs['subscriber_mail'];
         $rcName = $opTempRs['subscriber_name'];
         $rcSubject = trim($mailTitle);
         $rcBody = $mailBody;
         $rcAltBody = '';
         $recData = array($rcMail => array('name' => $rcName, 'subject' => $rcSubject, 'body' => $rcBody, 'altbody' => $rcAltBody));
         $this->sub_mail_receiver = $recData;
         $this->letheSender();
         if ($this->sendPos) {
             /* Update Interval */
             $intDate = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . "+2 minutes"));
             # Next submmission will execute 2 min later
             $myconn->query("UPDATE " . db_table_pref . "subscribers SET subscriber_verify_sent_interval='" . $intDate . "' WHERE ID=" . $this->SUBID . "") or die(mysqli_error($myconn));
             $opTemp->free();
             return true;
         } else {
             $opTemp->free();
             return false;
         }
     }
     $opTemp->free();
     return false;
 }
Exemplo n.º 8
0
 public function formDesigner($fr)
 {
     $renderData = '';
     /* Vertical */
     if ($fr['form_view'] == 0) {
         foreach ($fr['form_fields'] as $a => $b) {
             $renderData .= '<div class="form-group">' . PHP_EOL;
             $renderData .= $b['field_type'] != 'submit' && $b['field_type'] != 'addremove' ? '<label for="' . $b['field_name'] . '">' . showIn($b['field_label'], 'page') . '</label>' : '';
             $renderData .= $this->drawField(array('field_id' => $b['field_id'], 'field_name' => $b['field_name'], 'field_type' => $b['field_type'], 'field_required' => intval($b['field_required']), 'field_pattern' => $b['field_pattern'], 'field_placeholder' => $b['field_placeholder'], 'field_data' => $b['field_data'], 'field_label' => $b['field_label']));
             $renderData .= '</div>' . PHP_EOL;
         }
     } else {
         if ($fr['form_view'] == 1) {
             foreach ($fr['form_fields'] as $a => $b) {
                 $renderData .= '<div ' . ($b['field_type'] != 'recaptcha' ? 'class="form-group"' : '') . '>' . PHP_EOL;
                 $renderData .= $b['field_type'] != 'radio' && $b['field_type'] != 'submit' && $b['field_type'] != 'addremove' ? '<label for="' . $b['field_name'] . '">' . showIn($b['field_label'], 'page') . '</label> ' : '';
                 $renderData .= $this->drawField(array('field_id' => $b['field_id'], 'field_name' => $b['field_name'], 'field_type' => $b['field_type'], 'field_required' => intval($b['field_required']), 'field_pattern' => $b['field_pattern'], 'field_placeholder' => $b['field_placeholder'], 'field_data' => $b['field_data'], 'field_label' => $b['field_label']));
                 $renderData .= '</div>' . PHP_EOL;
             }
         } else {
             if ($fr['form_view'] == 2) {
                 $renderData .= '<table style="height: 44px;" width="250"><tbody>';
                 foreach ($fr['form_fields'] as $a => $b) {
                     $renderData .= '<tr>' . PHP_EOL;
                     $renderData .= '<td style="padding:5px;">' . ($b['field_type'] != 'radio' && $b['field_type'] != 'submit' && $b['field_type'] != 'addremove' ? '<label for="' . $b['field_name'] . '">' . showIn($b['field_label'], 'page') . '</label></td><td style="padding:5px;">:</td>' : '<td></td>');
                     $renderData .= '<td style="padding:3px;">' . $this->drawField(array('field_id' => $b['field_id'], 'field_name' => $b['field_name'], 'field_type' => $b['field_type'], 'field_required' => intval($b['field_required']), 'field_pattern' => $b['field_pattern'], 'field_placeholder' => $b['field_placeholder'], 'field_data' => $b['field_data'], 'field_label' => $b['field_label'])) . '</td>';
                     $renderData .= '</tr>' . PHP_EOL;
                 }
                 $renderData .= '</tbody></table>';
             }
         }
     }
     return $renderData;
 }
Exemplo n.º 9
0
} else {
    if ($page_sub2 == 'add') {
        echo '<h1>' . $pg_title . '<span class="help-block text-primary">' . subscribers_add_subscriber . '</span></h1><hr>' . $pg_nav_buts . $errText;
        ?>
<!-- Subscriber Add Start -->
	<div class="form-group">
		<label for="exampleInputEmail1"><?php 
        echo subscribers_subscribe_forms;
        ?>
</label>
		<select class="form-control autoWidth" name="formSelector" id="formSelector">
			<?php 
        $tempList = $myconn->query("SELECT ID,form_name,isSystem,isDraft,form_type,form_id FROM " . db_table_pref . "subscribe_forms WHERE OID=" . set_org_id . " AND isDraft=0 AND form_type=0 ORDER BY isSystem=1 ASC,form_name ASC") or die(mysqli_error($myconn));
        echo '<option value="0">' . letheglobal_choose . '</option>';
        while ($tempListRs = $tempList->fetch_assoc()) {
            echo '<option value="' . $tempListRs['ID'] . '">' . showIn($tempListRs['form_name'], 'page') . '</option>';
        }
        $tempList->free();
        ?>
		</select><hr>
		
		<div class="row">
			<div class="col-md-3">
				<div id="formArea"></div>
			</div>
		</div>
		
		<script>
			$("#formSelector").change(function(){
				if($(this).val()!=0){
				
Exemplo n.º 10
0
		<div class="col-md-4">
			<p><strong>' . newsletter_daily_limit . ':</strong></p>
			<p><strong>' . letheglobal_sending . ':</strong></p>
			<p><strong>' . letheglobal_type . ':</strong></p>
			<p><strong>' . newsletter_test_mail . ':</strong></p>
		</div>
		<div class="col-md-8">
			<p>' . $subAccData['daily_sent'] . ' / ' . $subAccData['daily_limit'] . '</p>
			<p>' . $LETHE_MAIL_METHOD[$subAccData['send_method']] . '</p>
			<p>' . $LETHE_MAIL_TYPE[$subAccData['mail_type']] . '</p>
			<p>' . set_org_test_mail . '</p>
		</div>
	</div>';
    $printData .= '
		<script>
			if($("#campaign_sender_title").val()==""){
				$("#campaign_sender_title").val("' . showIn(set_org_sender_title, 'input') . '");
			}
			if($("#campaign_reply_mail").val()==""){
				$("#campaign_reply_mail").val("' . showIn(set_org_reply_mail, 'input') . '");
			}
		</script>
	';
    echo $printData;
}
# End
if (isset($myconn)) {
    $myconn->close();
    unset($myconn);
    ob_end_flush();
}
Exemplo n.º 11
0
                    foreach ($LETHE_SUBSCRIBE_FORM_VIEWS as $k => $v) {
                        echo '<option value="' . $k . '"' . formSelector($opDraftRs['form_view'], $k, 0) . '>' . $v . '</option>';
                    }
                    ?>
									</select>
								</div>
								<div class="form-group">
									<label for="form_group"><?php 
                    echo sh('LLwa28jVb4') . subscribers_groups;
                    ?>
</label>
									<select class="form-control autoWidth" id="form_group" name="form_group">
										<?php 
                    $opGroups = $myconn->query("SELECT * FROM " . db_table_pref . "subscriber_groups WHERE OID=" . set_org_id . " AND isUnsubscribe=0 " . (LETHE_AUTH_VIEW_TYPE ? ' AND UID=' . LETHE_AUTH_ID . '' : '') . "") or die(mysqli_error($myconn));
                    while ($opGroupsRs = $opGroups->fetch_assoc()) {
                        echo '<option value="' . $opGroupsRs['ID'] . '"' . formSelector($opDraftRs['form_group'], $opGroupsRs['ID'], 0) . '>' . showIn($opGroupsRs['group_name'], 'page') . '</option>';
                    }
                    $opGroups->free();
                    ?>
									</select>
								</div>
								<div class="form-group">
									<span><?php 
                    echo sh('0vwnCyrPJN');
                    ?>
</span><label for="include_jquery"><?php 
                    echo subscribers_include_jquery;
                    ?>
</label>
									<input type="checkbox" class="ionc" name="include_jquery" id="include_jquery" value="YES"<?php 
                    echo formSelector($opDraftRs['include_jquery'], 1, 2);
Exemplo n.º 12
0
</span></label><input type="checkbox" name="del_<?php 
    echo $opGroupRs['ID'];
    ?>
" id="del_<?php 
    echo $opGroupRs['ID'];
    ?>
" value="YES" class="ionc"<?php 
    echo $opGroupRs['isUnsubscribe'] || $opGroupRs['isUngroup'] ? ' disabled' : '';
    ?>
></div></div>
				<div class="col-md-1"><span class="label label-info"><?php 
    echo $grpCount;
    ?>
</span></div>
				<div class="col-md-10"><div class="form-group"><input type="text" value="<?php 
    echo showIn($opGroupRs['group_name'], 'input');
    ?>
" class="form-control input-sm" name="grp_val_<?php 
    echo $opGroupRs['ID'];
    ?>
" id="grp_val_<?php 
    echo $opGroupRs['ID'];
    ?>
"></div></div>
				<input type="hidden" name="group_datas[]" value="<?php 
    echo $opGroupRs['ID'];
    ?>
">
				<hr class="visible-xs">
			</div>
			<?php 
Exemplo n.º 13
0
                        ?>
</label>
			<input type="text" class="form-control autoWidth" id="title" name="title" size="40" value="<?php 
                        echo showIn($sr->Get('temp_name'), 'input');
                        ?>
">
		</div>
		
		<div class="form-group">
			<label for="preview"><?php 
                        echo sh('BIbU9iwML7') . letheglobal_preview;
                        ?>
</label>
			<div class="input-group">
				<input type="url" class="form-control autoWidth" id="preview" name="preview" size="40" value="<?php 
                        echo showIn($sr->Get('temp_prev'), 'input');
                        ?>
"> <span class="input-group-btn autoWidth"><button class="btn btn-default leupload_link" data-leupload-opener="fancybox" data-leupload-model="default" data-leupload-form="preview" data-leupload-platform="normal" type="button">leUpload</button></span>
			</div>
		</div>
		
		<div class="form-group">
			<label for="sc-lists"><?php 
                        echo sh('44ql7ZGaYA') . letheglobal_short_codes;
                        ?>
 <a href="javascript:;" class="sc-opener"><span class="glyphicon glyphicon-chevron-down"></span></a></label>
			<div id="sc-box" class="sHide">
				<div class="well"><?php 
                        echo scList('details');
                        ?>
</div>
Exemplo n.º 14
0
		</script>
		
		<script type="text/javascript" src="Scripts/jquery.scrollbox.min.js"></script>
		<h3><?php 
echo subscribers_latest_subscriptions;
?>
 (25)</h3><hr>
		<?php 
$opLatests = $myconn->query("SELECT ID,OID,subscriber_mail,add_date,local_country,subscriber_verify FROM " . db_table_pref . "subscribers WHERE OID=" . set_org_id . " ORDER BY ID DESC LIMIT 0,25") or die(mysqli_error($myconn));
?>
		<div id="latestSubscribers" style="height:150px; overflow:hidden;">
		  <ul class="list-group">
			<?php 
while ($opLatestsRs = $opLatests->fetch_assoc()) {
    echo '<li class="list-group-item">
						<strong class="text-primary">' . showIn($opLatestsRs['subscriber_mail'], 'page') . '</strong>
						<span class="help-block">' . setMyDate($opLatestsRs['add_date'], 2) . '
							<span class="pull-right">
								<span class="flag flag-' . $opLatestsRs['local_country'] . '"></span>
								<span class="tooltips" title="' . $LETHE_VERIFICATION_TYPE[$opLatestsRs['subscriber_verify']] . '">' . getBullets($opLatestsRs['subscriber_verify']) . '</span>
							</span>
						</span>
					  </li>';
}
$opLatests->free();
?>
		  </ul>
		</div>
		<script>
			$(document).ready(function(){
				$('#latestSubscribers').scrollbox({
Exemplo n.º 15
0
</span></label><input type="checkbox" name="del_<?php 
    echo $opCodesRs['ID'];
    ?>
" id="del_<?php 
    echo $opCodesRs['ID'];
    ?>
" value="YES" class="ionc"></div></div>
		<div class="col-md-4"><div class="form-group"><span class="label label-<?php 
    echo $opCodesRs['isSystem'] == 0 ? 'primary' : 'warning';
    ?>
">{<?php 
    echo showIn($opCodesRs['code_key'], 'page');
    ?>
}</span></div></div>
		<div class="col-md-7"><div class="form-group"><input type="text" value="<?php 
    echo showIn($opCodesRs['code_val'], 'input');
    ?>
" class="form-control" name="code_val_<?php 
    echo $opCodesRs['ID'];
    ?>
" id="code_val_<?php 
    echo $opCodesRs['ID'];
    ?>
"></div></div>
		<input type="hidden" name="code_datas[]" value="<?php 
    echo $opCodesRs['ID'];
    ?>
">
		<input type="hidden" name="code_key_<?php 
    echo $opCodesRs['ID'];
    ?>
Exemplo n.º 16
0
			<tbody>
			<?php 
        isMob() ? $limit = 10 : ($limit = 20);
        !isset($_GET["pgGo"]) || !is_numeric($_GET["pgGo"]) ? $pgGo = 1 : ($pgGo = intval($_GET["pgGo"]));
        $count = mysqli_num_rows($myconn->query("SELECT ID FROM " . db_table_pref . "submission_accounts"));
        $total_page = ceil($count / $limit);
        $dtStart = ($pgGo - 1) * $limit;
        $opAccs = $myconn->query("SELECT * FROM " . db_table_pref . "submission_accounts ORDER BY systemAcc DESC,acc_title ASC LIMIT {$dtStart},{$limit}") or die(mysqli_error($myconn));
        while ($opAccsRs = $opAccs->fetch_assoc()) {
            ?>
				<tr>
					<td><a href="?p=settings/submission/edit&amp;ID=<?php 
            echo $opAccsRs['ID'];
            ?>
"><?php 
            echo showIn($opAccsRs['acc_title'], 'page');
            ?>
</a></td>
					<td data-value="<?php 
            echo $opAccsRs['daily_limit'];
            ?>
">
						<?php 
            echo getMyLimits($opAccsRs['daily_sent'], $opAccsRs['daily_limit']);
            ?>
						<span class="text-mute"><small><?php 
            echo letheglobal_reset;
            ?>
: <?php 
            echo setMyDate($opAccsRs['daily_reset'], 2);
            ?>
Exemplo n.º 17
0
    $listGrps = array();
    $opGroups = $myconn->query("SELECT \n\t\t\t\t\t\t\t\t\t\tSG.*,\n\t\t\t\t\t\t\t\t\t\t(SELECT COUNT(ID) FROM " . db_table_pref . "subscribers WHERE GID=SG.ID) AS sbr_cnt\n\t\t\t\t\t\t\t\t  FROM \n\t\t\t\t\t\t\t\t\t\t" . db_table_pref . "subscriber_groups AS SG\n\t\t\t\t\t\t\t\t WHERE \n\t\t\t\t\t\t\t\t\t\tOID=" . set_org_id . " \n\n\t\t\t\t\t\t\t\t\t\t" . (LETHE_AUTH_VIEW_TYPE ? ' AND UID=' . LETHE_AUTH_ID . '' : '') . "\n\t\t\t\t\t\t\t  ORDER BY\n\t\t\t\t\t\t\t\t\t\tgroup_name\n\t\t\t\t\t\t\t\t   ASC\n\t\t\t\t\t\t\t\t") or die(mysqli_error($myconn));
    while ($opGroupsRs = $opGroups->fetch_assoc()) {
        $listGrps[] = $opGroupsRs;
    }
    $opGroups->free();
    $bulks = '
	<h4 class="text-primary">' . subscribers_bulk_actions . '</h4><hr>
	<div id="updateResult"></div>
	<form name="actBulk" id="actBulk" action="" method="POST">
	<input type="hidden" name="RunAction" value="YES">
		<div class="form-group">
			<label for="groups">' . subscribers_groups . '</label>
			<select name="groups[]" id="groups" class="form-control autoWidth" multiple>';
    foreach ($listGrps as $k => $v) {
        $bulks .= '<option value="' . $v['ID'] . '">' . showIn($v['group_name'], 'page') . '</option>';
    }
    $bulks .= '
			</select>
		</div>
		<div class="form-group">
			<label for="actions">' . subscribers_action . '</label>
			<select name="actions" id="actions" class="form-control autoWidth">
				<option value="">' . letheglobal_choose . '</option>
				<option value="toactive">' . subscribers_mark_as_active . '</option>
				<option value="toinactive">' . subscribers_mark_as_inactive . '</option>
				<option value="tounverified">' . subscribers_mark_as_unverified . '</option>
				<option value="tosingleverified">' . subscribers_mark_as_single_verified . '</option>
				<option value="todoubleverified">' . subscribers_mark_as_double_verified . '</option>
			</select>
		</div>
Exemplo n.º 18
0
}
/* Report Extra Info */
if ($pos == 'extInfo') {
    # Clicked URLs etc
    $extraInfo = '<h4 class="text-primary">' . autoresponder_extra_info . '</h4><hr>';
    $opData = $myconn->prepare("SELECT * FROM " . db_table_pref . "reports WHERE OID=" . set_org_id . " AND ID=?") or die(mysqli_error($myconn));
    $opData->bind_param('i', $ID);
    $opData->execute();
    $opData->store_result();
    if ($opData->num_rows == 0) {
        $extraInfo .= errMod(letheglobal_record_not_found, 'danger');
    } else {
        $extST = new Statement_Result($opData);
        $opData->fetch();
        $extraInfo .= letheglobal_e_mail . ': ' . showIn($extST->Get('email'), 'page') . '<br>';
        $extraInfo .= letheglobal_date . ': ' . setMyDate($extST->Get('add_date'), 2) . '<br>';
        $extraInfo .= letheglobal_clicks . ' / ' . letheglobal_opens . ' ' . autoresponder_hit . ': ' . showIn($extST->Get('hit_cnt'), 'page') . '<br>';
        $extraInfo .= autoresponder_extra_info . ': <hr>';
        if ($extST->Get('extra_info') != '') {
            $extraInfo .= '<pre>' . showIn($extST->Get('extra_info'), 'page') . '</pre>';
        }
    }
    $opData->close();
    echo $extraInfo;
}
?>


<?php 
$myconn->close();
ob_end_flush();
Exemplo n.º 19
0
 } else {
     $srm = new Statement_Result($opUser);
     $opUser->fetch();
     # Load phpMailer basic mail sender
     # Start
     /* Design Receiver Data (Mail body could be used with system template) */
     $rndPassEnc = encr('myLethe' . time() . rand() . uniqid(true));
     $newPass = substr($rndPassEnc, 1, 12);
     $newPassEnc = encr($newPass);
     $mailBody = '<p>Hello ' . $srm->Get('real_name') . ',</p>';
     $mailBody .= '<p><strong>Your new password:</strong> ' . $newPass . '</p>';
     $mailBody .= '<p>Do not forget to change your password after logged in.</p>';
     $mailBody .= '<p>Thank you!</p>';
     $rcMail = showIn($srm->Get('mail'), 'page');
     $rcName = showIn($srm->Get('real_name'), 'page');
     $rcSubject = showIn(letheglobal_password_recovery, 'page');
     $rcBody = $mailBody;
     $rcAltBody = $mailBody;
     $recData = array($rcMail => array('name' => $rcName, 'subject' => $rcSubject, 'body' => $rcBody, 'altbody' => $rcAltBody));
     $sendMail = new lethe();
     $sendMail->sub_mail_id = md5($rcMail . time());
     $sendMail->sub_mail_receiver = $recData;
     $sendMail->sysSubInit();
     if ($sendMail->sendPos) {
         # Change Password
         $upPass = $myconn->prepare("UPDATE " . db_table_pref . "users SET pass=? WHERE ID=" . (int) $srm->Get('ID') . "") or die(mysqli_error($myconn));
         $upPass->bind_param('s', $newPassEnc);
         $upPass->execute();
         $upPass->close();
         $pwrm_res = mysql_prep(errMod(subscribers_e_mail_sent_successfully, 'success'));
     } else {
Exemplo n.º 20
0
				<label for="usr_name"><?php 
                    echo sh('cR6FGFiiTW') . organizations_name;
                    ?>
</label>
				<input type="text" class="form-control autoWidth" id="usr_name" name="usr_name" size="40" value="<?php 
                    echo showIn($sr->Get('real_name'), 'input');
                    ?>
">
			</div>
			<div class="form-group">
				<label for="usr_mail"><?php 
                    echo sh('Ekp38ddLLh') . organizations_e_mail;
                    ?>
</label>
				<input type="email" class="form-control autoWidth" id="usr_mail" name="usr_mail" size="40" value="<?php 
                    echo showIn($sr->Get('mail'), 'input');
                    ?>
">
			</div>
			<div class="form-group">
				<label for="usr_pass"><?php 
                    echo sh('r4Xr11XyDs') . organizations_password;
                    ?>
</label>
				<input type="password" class="form-control autoWidth" id="usr_pass" name="usr_pass" size="20" value="" autocomplete="OFF">
			</div>
			<div class="form-group">
				<label for="usr_pass2"><?php 
                    echo sh('TOGetPSb63') . organizations_re_type;
                    ?>
</label>
Exemplo n.º 21
0
        $handle->process($dest);
        if ($handle->processed) {
            # Uploaded
            /* Parsing Start */
            $uploadedFile = $dest . $handle->file_dst_name;
            $importer = new CsvImporter($uploadedFile, false, $sepMod[$delimiter]);
            $data = $importer->get(1);
            if (!array_key_exists(0, $data)) {
                die(errMod(subscribers_invalid_csv_content . "!", 'danger'));
            }
            if (count($data[0]) < 2) {
                die(errMod(subscribers_incorrect_delimiter . "!", 'danger'));
            }
            $parsedList = '<ul id="sortable1" class="list-unstyled csvlist connectedSortable">';
            foreach ($data[0] as $k => $v) {
                $parsedList .= '<li><input type="hidden" class="csvkey" value="' . $k . '">' . ($v == '' ? '<span class="label label-danger">{' . subscribers_empty . '}</span>' : '<span class="label label-success">' . showIn($v, 'page') . '</span>') . '</li>';
            }
            $parsedList .= '</ul>';
            /* Parsing End */
            $handle->clean();
        } else {
            # Uploading Error
            $parsedList = errMod($handle->error, 'danger');
        }
        # Uploading Finished
    } else {
        $parsedList = errMod($handle->error, 'danger');
    }
    $csvAnalyst = '
	<style>
		  .ui-state-highlight { height: 1.5em; line-height: 1.2em; }
Exemplo n.º 22
0
            echo $opUsersRs['ID'];
            ?>
"><?php 
            echo showIn($opUsersRs['real_name'], 'page');
            ?>
</a></th>
					<td><?php 
            echo setMyDate($opUsersRs['add_date'], 2);
            ?>
</td>
					<td><?php 
            echo setMydate($opUsersRs['last_login'], 2);
            ?>
</td>
					<td><?php 
            echo showIn($opUsersRs['mail'], 'page');
            ?>
</td>
					<td data-value="<?php 
            echo $opUsersRs['isActive'];
            ?>
"><?php 
            echo getBullets($opUsersRs['isActive']);
            ?>
</td>
					<td data-value="<?php 
            echo $opUsersRs['isPrimary'];
            ?>
"><?php 
            echo getBullets($opUsersRs['isPrimary']);
            ?>
Exemplo n.º 23
0
					<td><div class="inlineIonc text-center"><label for="del<?php 
        echo $opRecsRs['ID'];
        ?>
"></label><input type="checkbox" name="del[]" id="del<?php 
        echo $opRecsRs['ID'];
        ?>
" class="ionc checkRow" value="<?php 
        echo $opRecsRs['ID'];
        ?>
"></div></td>
					<td><?php 
        echo showIn($opRecsRs['email'], 'page');
        ?>
</td>
					<td><?php 
        echo showIn($opRecsRs['ipAddr'], 'page');
        ?>
</td>
					<td><?php 
        echo $LETHE_BLACKLIST_REASON[$opRecsRs['reasons']];
        ?>
</td>
					<td><?php 
        echo setMyDate($opRecsRs['add_date'], 2);
        ?>
</td>
				</tr>
			<?php 
    }
    ?>
			</tbody>
Exemplo n.º 24
0
				<label for="lethe_google_recaptcha_private"><?php 
echo sh('KX1M7K1MmV') . 'Google reCaptcha ' . settings_private_key;
?>
</label>
				<input type="text" name="lethe_google_recaptcha_private" id="lethe_google_recaptcha_private" value="<?php 
echo DEMO_MODE ? 'DEMO MODE' : showIn(lethe_google_recaptcha_private, 'input');
?>
" class="form-control autoWidth" size="50">
			</div>
			<div class="form-group">
				<label for="lethe_license_key"><?php 
echo sh('VPGMkzEra7') . settings_license_key;
?>
</label>
				<input type="text" name="lethe_license_key" id="lethe_license_key" value="<?php 
echo DEMO_MODE ? 'DEMO MODE' : showIn(lethe_license_key, 'input');
?>
" class="form-control autoWidth" size="50">
			</div>
	</div>
	<!-- HELPERS -->
    <div role="tabpanel" class="tab-pane fade" id="helpers">
	&nbsp;
			<div class="form-group">
				<label for="lethe_debug_mode"><?php 
echo sh('ZVKMZNoMLA') . settings_debug_mode;
?>
</label>
				<div>
				<input type="checkbox" name="lethe_debug_mode" id="lethe_debug_mode" data-on-label="<?php 
echo letheglobal_yes;
Exemplo n.º 25
0
<!-- Newsletter Reports End -->
<?php 
                    } else {
                        echo '<h1>' . $pg_title . '</h1><hr><div class="container-fluid"><div class="row">';
                        foreach ($mod_confs['contents'] as $k => $v) {
                            echo '<div class="col-md-2 module-splash">
				<h4><span class="' . $v['icon'] . '"></span></h4>
				<div><a href="' . $v['page'] . '">' . $v['title'] . '</a></div>
			  </div>';
                        }
                        echo '</div></div>';
                    }
                }
            }
        }
        ?>

<!-- NEWSLETTER END -->

<?php 
        echo '
<script>
	$(document).ready(function(){
		$("head title").text("' . showIn($pg_title, 'page') . ' - "+$("head title").text());
	});
</script>
';
    }
    # Permission Check End
}
# Module Load End
Exemplo n.º 26
0
</a></li>
					<li><a href="?p=settings/submission"><span class="glyphicon glyphicon-send"></span> <?php 
    echo letheglobal_submission_accounts;
    ?>
</a></li>
				  </ul>
				</li>
				<?php 
}
?>
				<li class="dropdown">
				  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="flag flag-<?php 
echo LOADED_LANG;
?>
"></span> <span class="caret"></span></a>
				  <ul class="dropdown-menu lethe-langs" role="menu">
					<?php 
foreach ($SLNG_LIST as $k => $v) {
    echo '<li><a href="pg.lang.php?l=' . $k . '&amp;p=' . $p . '"><span class="flag flag-' . $k . '"></span> ' . showIn($v['sname'], 'page') . '</a></li>';
}
?>
				  </ul>
				</li>
				<li>
				  <a href="pg.login.php?loginPos=logout"><span class="glyphicon glyphicon-off"></span></a>
				</li>
			</ul>
			  
			</div><!-- /.navbar-collapse -->
		  </div><!-- /.container-fluid -->
		</nav>
Exemplo n.º 27
0
                } else {
                    if ($tempRes['err'] == 'NO_RECORD') {
                        echo '<div class="col-md-12">' . errMod(templates_there_no_found_template, 'danger') . '</div>';
                    }
                }
            } else {
                $temps = '';
                if (!is_array($tempRes['cont'])) {
                    $temps .= '<div class="col-md-12">' . errMod(templates_template_server_is_temporarily_down, 'danger') . '</div>';
                } else {
                    foreach ($tempRes['cont'] as $k => $v) {
                        $controller = cntData("SELECT ID FROM " . db_table_pref . "templates WHERE OID=" . set_org_id . " AND temp_id='" . mysql_prep($v['temp_id']) . "'");
                        $temps .= '
		  <div class="col-sm-5 col-md-3">
			<div class="thumbnail">
			  <a href="modules/lethe.templates/act.xmlhttp.php?pos=tempdown&tempID=' . $v['down_link'] . '&prevs=1" data-fancybox-type="iframe" class="fancybox tempPrevs effect6"><span><img src="' . ($v['image'] == '' ? 'images/temp/tempHolder.png' : showIn($v['image'], 'input')) . '" alt=""></span></a>
			  <div class="caption">
				<a href="modules/lethe.templates/act.xmlhttp.php?pos=tempdown&tempID=' . $v['down_link'] . '&prevs=1" data-fancybox-type="iframe" class="fancybox">' . $v['name'] . '</a>
				<p><small>' . setMyDate($v['add_date'], 2) . '</small></p>
				<p>';
                        if ($controller == 0) {
                            if ($v['isPremium']) {
                                $temps .= '<span class="t' . $v['ID'] . '"><a href="http://www.newslether.com/buyTemplate.php?id=' . $v['premiumKey'] . '" target="_blank" id="t' . $v['ID'] . '" class="text-danger tooltips buyNow" title="' . templates_buy_now . '"><span class="glyphicon glyphicon-shopping-cart"></span></a></span> <span class="text-primary">' . number_format($v['price'], 2) . '$</span><span class="premiumTemp label label-info"><span class="glyphicon glyphicon-star"></span> Premium</span>';
                            } else {
                                $temps .= '<span class="t' . $v['ID'] . '"><a href="javascript:;" id="t' . $v['ID'] . '" class="text-primary tooltips download" title="' . templates_download_now . '" data-temp-premium="0" data-temp-ids="' . $v['down_link'] . '"><span class="glyphicon glyphicon-save"></span></a></span>';
                            }
                        } else {
                            $temps .= '<a href="javascript:;" class="text-success tooltips" title="' . templates_downloaded . '"><span class="glyphicon glyphicon-ok"></span></a>';
                        }
                        $temps .= '
				<span class="label label-warning pull-right">' . templates_download . ': ' . $v['downloads'] . '</span>