Пример #1
0
 function doTest()
 {
     $ec = new FSSCronEMailCheck();
     $ec->plainmsg = JRequest::getVar('email');
     $ec->TrimMessage();
     $ec->plainmsg = str_replace("[/quoted]", "", $ec->plainmsg);
     $parts = explode("[quoted]", $ec->plainmsg);
     if (count($parts) > 1) {
         echo "<h4>Message:</h4>";
         echo "<pre class='main'>";
         echo $parts[0];
         echo "</pre>";
         echo "<h4>Hidden (will be displayed in 'quoted' rollover when viewing the message):</h4>";
         echo "<pre class='trimmed'>";
         echo $parts[1];
         echo "</pre>";
     } else {
         echo "No split detected<br>";
     }
 }
Пример #2
0
    echo $rowclass;
    ?>
_body">
			<td style="overflow-x: auto">
				<div class="pull-right" style="margin-bottom: 8px;margin-left: 8px;">
					<i>
						<?php 
    echo FSS_Helper::TicketTime($message['posted'], FSS_DATETIME_MID);
    ?>
					</i>
				</div>
				
				<?php 
    if (strpos($message['body'], "[cid:") !== false) {
        require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'cron' . DS . 'emailcheck.php';
        $ec = new FSSCronEMailCheck();
        $message['body'] = $ec->processInlineImages($message['id']);
    }
    $msg = $message['body'];
    $msg = FSS_Helper::ParseBBCode($msg, $message, false, false, true);
    echo $msg;
    ?>
				
				<?php 
    if (array_key_exists("attach", $message)) {
        ?>
					<?php 
        foreach ($message['attach'] as &$attach) {
            ?>
					<?php 
            if ($attach['inline']) {
Пример #3
0
				<div class="ticket_message_date pull-right" style="margin-bottom: 8px;margin-left: 8px;">
					<i>
						<?php 
        echo FSS_Helper::TicketTime($message->posted, FSS_DATETIME_MID);
        ?>
					</i>
				</div>

				<div class="ticket_message_message" id="message_<?php 
        echo (int) $message->id;
        ?>
">
					<?php 
        if (strpos($message->body, "[cid:") !== false) {
            require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'cron' . DS . 'emailcheck.php';
            $ec = new FSSCronEMailCheck();
            $message->body = $ec->processInlineImages($message->id);
        }
        $msg = $message->body;
        $msg = FSS_Helper::ParseBBCode($msg, $message);
        if (FSS_Settings::get('glossary_support')) {
            echo FSS_Glossary::ReplaceGlossary($msg);
        } else {
            echo $msg;
        }
        ?>
				</div>

				<?php 
        if (isset($message->attach)) {
            ?>