/** 
 * This function provides a hook to be able to write special parses for provider emails that are difficult to work with 
 * If you want to extend this functionality - write a new function and call it from here
 */
function SpecialMessageParsing(&$content, &$attachments, $config)
{
    if (preg_match('/You have been sent a message from Vodafone mobile/', $content)) {
        VodafoneHandler($content, $attachments);
        //Everything for this type of message is handled below
        return;
    }
    if ($config["MESSAGE_START"]) {
        StartFilter($content, $config["MESSAGE_START"]);
    }
    if ($config["MESSAGE_END"]) {
        EndFilter($content, $config["MESSAGE_END"]);
    }
    if ($config["DROP_SIGNATURE"]) {
        RemoveSignature($content, $config["SIG_PATTERN_LIST"]);
    }
    if ($config["PREFER_TEXT_TYPE"] == "html" && count($attachments["cids"])) {
        ReplaceImageCIDs($content, $attachments);
    }
    if (!$config['CUSTOM_IMAGE_FIELD']) {
        ReplaceImagePlaceHolders($content, $attachments["html"], $config);
    } else {
        $customImages = array();
        foreach ($attachments["html"] as $value) {
            preg_match("/src=['\"]([^'\"]*)['\"]/", $value, $matches);
            array_push($customImages, $matches[1]);
        }
        return $customImages;
    }
    return NULL;
}
Exemple #2
0
/** 
 * This function provides a hook to be able to write special parses for provider emails that are difficult to work with 
 * If you want to extend this functionality - write a new function and call it from here
 */
function SpecialMessageParsing(&$content, &$attachments, $config)
{
    extract($config);
    if (preg_match('/You have been sent a message from Vodafone mobile/', $content)) {
        VodafoneHandler($content, $attachments);
        //Everything for this type of message is handled below
        return;
    }
    if ($message_start) {
        StartFilter($content, $message_start);
    }
    if ($message_end) {
        EndFilter($content, $message_end);
    }
    if ($drop_signature) {
        $content = remove_signature($content, $sig_pattern_list);
    }
    if ($prefer_text_type == "html" && count($attachments["cids"])) {
        ReplaceImageCIDs($content, $attachments);
    }
    if (!$custom_image_field) {
        ReplaceImagePlaceHolders($content, $attachments["html"], $config);
    } else {
        $customImages = array();
        foreach ($attachments["html"] as $value) {
            preg_match("/src=['\"]([^'\"]*)['\"]/", $value, $matches);
            array_push($customImages, $matches[1]);
        }
        return $customImages;
    }
    return NULL;
}
Exemple #3
0
				<td width="0%"><font class="tablebodytext">&nbsp;</font></td>
				<td width="100%" align="left"><font class="tablebodytext"><input class="button" type="submit" name="del_filter" value="<?php 
echo GetMessage("STAT_F_DEL_FILTER");
?>
"></font></td>
				<td width="0%"><?php 
ShowAddFavorite();
?>
</td>
			</tr>
		</table>
	</td>
</tr>
</form>
<?php 
echo EndFilter();
?>
<br>
<p><?php 
$total_COUNTER = 0;
$total_COUNTER_BACK = 0;
$arEvents = array();
while ($arEvent = $events->Fetch()) {
    $arEvents[] = $arEvent;
    $total_COUNTER += intval($arEvent["COUNTER"]);
    $total_COUNTER_BACK += intval($arEvent["COUNTER_BACK"]);
}
$events = new CDBResult();
$events->InitFromArray($arEvents);
$events->NavStart();
echo $events->NavPrint(GetMessage("STAT_ADV_EVENTS_PAGES"));
Exemple #4
0
/** 
 * This function provides a hook to be able to write special parses for provider emails that are difficult to work with 
 * If you want to extend this functionality - write a new function and call it from here
 */
function SpecialMessageParsing(&$content, &$attachments)
{
    $config = GetConfig();
    if (preg_match('/You have been sent a message from Vodafone mobile/', $content)) {
        VodafoneHandler($content, $attachments);
        //Everything for this type of message is handled below
        return;
    }
    if ($config["MESSAGE_START"]) {
        StartFilter($content, $config["MESSAGE_START"]);
    }
    if ($config["MESSAGE_END"]) {
        EndFilter($content, $config["MESSAGE_END"]);
    }
    if ($config["DROP_SIGNATURE"]) {
        RemoveSignature($content, $config["SIG_PATTERN_LIST"]);
    }
    if ($config["PREFER_TEXT_TYPE"] == "html" && count($attachments["cids"])) {
        ReplaceImageCIDs($content, $attachments);
    }
    ReplaceImagePlaceHolders($content, $attachments["html"]);
}
	}
	elseif ($arrF["PARAMETER_NAME"]=="ANSWER_VALUE")
	{
		echo "&nbsp;<sup>(<font class='ansvalue'>...</font>)</sup>";
		$f_ansvalue = "Y";
	}
	echo "<br>";
	$prev_fname = $fname;
	endif;
	endif;

	endwhile;

endwhile;
?></font></td>
</tr>
<tr>
	<td colspan="2" align="right" nowrap class="tablebody">
		<table border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<td width="0%"><font class="tablebodytext"><input type="hidden" name="set_filter" value="Y"><input class="button" type="submit" name="set_filter" value="<?echo GetMessage("FORM_F_SET_FILTER")?>"></font></td>
				<td width="0%"><font class="tablebodytext">&nbsp;</font></td>
				<td width="100%" align="left"><font class="tablebodytext"><input class="button" type="submit" name="del_filter" value="<?echo GetMessage("FORM_F_DEL_FILTER")?>"></font></td>
				<td width="0%"><?ShowAddFavorite(false,"set_filter","form")?></td>
			</tr>
		</table>
	</td>
</tr>
</form>
<?echo EndFilter();?>
<br>