コード例 #1
0
ファイル: details.php プロジェクト: brondsem/imobmail
function make_email_string($input)
{
    $mailarr = array();
    if ($input == "") {
        return;
    }
    foreach ($input as $fields) {
        $name = trim(_decodeHeader($fields->personal));
        $name = str_replace("\"", "", $name);
        $name = str_replace("'", "", $name);
        $mailbox = $fields->mailbox;
        $host = $fields->host;
        $emailaddr = $mailbox . '@' . $host;
        if ($name == "") {
            $name = $emailaddr;
        }
        if ($name == "") {
            continue;
        }
        array_push($mailarr, "<a onclick=\"JavaScript:document.getElementById('smto').value = '" . $emailaddr . "';\" href=\"#sendmail\" style=\"display:inline;background:transparent;padding:1px;margin:1px;text-shadow: rgba(0, 0, 0, 0.4) 0px 0px 10px;\">" . $name . "</a>");
    }
    return implode(", ", $mailarr);
}
コード例 #2
0
ファイル: folderlist.php プロジェクト: brondsem/imobmail
        $msize = round($msize / 1024, 1) . " MB";
    } else {
        $msize = round($msize, 1) . " kB";
    }
    $datestr = date("d.m.y", strtotime($mail_senddate));
    setlocale(LC_TIME, $LANG);
    if (date("z") - date("z", strtotime($mail_senddate)) < 6) {
        $datestr = strftime("%a %H:%M", strtotime($mail_senddate));
    }
    if (date("d.m.y") == date("d.m.y", strtotime($mail_senddate))) {
        $datestr = date("H:i", strtotime($mail_senddate));
    }
    $subj = str_replace("'", "", $subj);
    $subj = str_replace("\"", "", $subj);
    # TODO: strip <*****@*****.**>, htmlspecialchars
    print "<li name=\"msgli\" id=\"msg" . utf8_encode($headrs->msgno) . "\" style=\" " . $delstyle . $seenstr . $colorstr . "\"><div name=\"msglistentry\" style=\"position:absolute;left:8px;top:16px;display:none;z-index:999\" ><a href=\"delmsg.php?acc=" . $accnr . "&folder=" . $imapfolder . "&msgid=" . $headrs->msgno . "\" type = \"delmsg\"><img src=\"./iui/stop.png\"  ></a></div><a onClick=\"JavaScript:document.getElementById('msg" . $headrs->msgno . "').style.color='black';document.getElementById('rb').style.display='none';showDelIcons(false);showdelicons=false;\" href=\"details.php?acc=" . $accnr . "&folder=" . $imapfolder . "&msgid=" . $headrs->msgno . "\" style=\"padding-left:25px;padding-right:45px;" . $attpadd . "\">" . imap_utf8_workaround(_decodeHeader($subj)) . "<div align=\"right\" style=\"color:#194fdb;font-size:14px;font-weight:bold;position:absolute;right:10px;top:3px;\">" . $datestr . "</div><div style=\"font-size:11px;position:absolute;right:10px;bottom:3px;\">" . $msize . "</div>\n\t<div style=\"font-weight:normal;font-size:14px;padding-right:25px;\">" . imap_utf8_workaround(_decodeHeader($headrs->subject)) . "</div>\n\t" . $attimg . "\n\t</a></li>\n";
}
imap_close($mbox);
if ($end - 25 > 0 && !$loadprev) {
    ?>
			  <li id="nextLoader"><a onclick = "removeOldListentries('<?php 
    echo $MC->Nmsgs;
    ?>
','<?php 
    echo $end;
    ?>
','<?php 
    echo $imapfolder;
    ?>
','<?php 
    echo $offset;