Exemple #1
0
 $time = mktime(0, 0, 0, 4, 5, 2012) - microtime(true);
 $time = floor($time * (1000000 / 86400));
 #$time	= microtime(true) - (time() - time() % 86400);
 #$time	= floor($time * (1000000 / 86400));
 $xpos = 1;
 $ypos = 16;
 //		$time	= "---------";
 lazy($image, $xpos - 1, $ypos - 1, $time, $color['shadow']);
 lazy($image, $xpos - 1, $ypos + 1, $time, $color['shadow']);
 lazy($image, $xpos + 1, $ypos - 1, $time, $color['shadow']);
 lazy($image, $xpos + 1, $ypos + 1, $time, $color['shadow']);
 lazy($image, $xpos - 1, $ypos, $time, $color['shadow']);
 lazy($image, $xpos + 1, $ypos, $time, $color['shadow']);
 lazy($image, $xpos, $ypos - 1, $time, $color['shadow']);
 lazy($image, $xpos, $ypos + 1, $time, $color['shadow']);
 lazy($image, $xpos, $ypos, $time, $color['text']);
 if (!$_GET['x'] && false) {
     $image2 = imagecreatetruecolor(116, 19);
     imagealphablending($image2, false);
     imagealphablending($image, false);
     imagefilledrectangle($image2, 0, 0, 115, 18, imagecolorallocatealpha($image, 0, 0, 0, 127));
     imagecopy($image2, $image, 0, 0, 0, 0, 116, 19);
     imagefilledrectangle($image, 0, 0, 115, 18, imagecolorallocatealpha($image, 0, 0, 0, 127));
     for ($y = 0; $y < 19; $y++) {
         $xofs = 0;
         if (mt_rand(0, 10) < 1) {
             //					$xofs	= mt_rand(-15, 15);
             $xofs = mt_rand(-1, 1);
             //					$xofs	= 1;
         }
         imagecopy($image, $image2, $xofs, $y, 0, $y, 116, 1);
Exemple #2
0
$header_fields = array(array('name' => 'date', 'replaceQuote' => false), array('name' => 'from', 'replaceQuote' => true), array('name' => 'to', 'replaceQuote' => true), array('name' => 'subject', 'replaceQuote' => false));
foreach ($header_fields as $field) {
    if (isset($structure->headers[$field['name']])) {
        /* this is a quick hack to fix issue #154, This need to be recoded in next version */
        if (is_array($structure->headers[$field['name']])) {
            $structure->headers[$field['name']] = implode("; ", $structure->headers[$field['name']]);
        }
        $structure->headers[$field['name']] = getUTF8String($structure->headers[$field['name']]);
        if ($field['replaceQuote']) {
            $structure->headers[$field['name']] = str_replace('"', '', $structure->headers[$field['name']]);
        }
        lazy(ucfirst($field['name']) . ':', $structure->headers[$field['name']]);
    }
}
if ($message->virusinfected == 0 && $message->nameinfected == 0 && $message->otherinfected == 0 || $_SESSION['user_type'] == 'A') {
    lazy(__('actions06') . ":", "<a href=\"javascript:void(0)\" onclick=\"do_action('" . $message->id . "','release')\">" . __('releasemsg06') . "</a> | <a href=\"javascript:void(0)\" onclick=\"do_action('" . $message->id . "','delete')\">" . __('deletemsg06') . "</a>", false);
}
foreach ($mime_struct as $key => $part) {
    $type = $part->ctype_primary . '/' . $part->ctype_secondary;
    echo " <tr>\n";
    echo "  <td colspan=2 class=\"heading\">MIME Type: {$type}</td>\n";
    switch ($type) {
        case "text/plain":
        case "text/html":
            echo ' <tr>' . "\n";
            echo '  <td colspan="2">' . "\n";
            echo '   <iframe frameborder=0 width="100%" height=300 src="viewpart.php?id=' . $message_id . '&amp;part=' . $part->mime_id . '"></iframe>' . "\n";
            echo '  </td>' . "\n";
            echo ' </tr>' . "\n";
            break;
        case "message/rfc822":