예제 #1
0
        echo '<td class="ModuleIcons">';
        echo "<a href=\"javascript:popup('send.php?account_id=" . $account_id . "&uid=" . $uid . "&mailbox=" . urlencode($mailbox) . "&action=edit','" . $GO_CONFIG->composer_width . "','" . $GO_CONFIG->composer_height . "')\"><img src=\"" . $GO_THEME->images['compose'] . "\" border=\"0\" height=\"32\" width=\"32\" /><br />" . $ml_compose . "</a></td>\n";
    }
    echo '<td class="ModuleIcons">';
    echo "<a href=\"javascript:popup('send.php?account_id=" . $account_id . "&uid=" . $uid . "&mailbox=" . urlencode($mailbox) . "&action=reply','" . $GO_CONFIG->composer_width . "','" . $GO_CONFIG->composer_height . "')\"><img src=\"" . $GO_THEME->images['reply'] . "\" border=\"0\" height=\"32\" width=\"32\" /><br />" . $ml_reply . "</a></td>\n";
    echo '<td class="ModuleIcons">';
    echo "<a href=\"javascript:popup('send.php?account_id=" . $account_id . "&uid=" . $uid . "&mailbox=" . urlencode($mailbox) . "&action=reply_all','" . $GO_CONFIG->composer_width . "','" . $GO_CONFIG->composer_height . "')\"><img src=\"" . $GO_THEME->images['reply_all'] . "\" border=\"0\" height=\"32\" width=\"32\" /><br />" . $ml_reply_all . "</a></td>\n";
    echo '<td class="ModuleIcons">';
    echo "<a href=\"javascript:popup('send.php?account_id=" . $account_id . "&uid=" . $uid . "&mailbox=" . urlencode($mailbox) . "&action=forward','" . $GO_CONFIG->composer_width . "','" . $GO_CONFIG->composer_height . "')\"><img src=\"" . $GO_THEME->images['forward'] . "\" border=\"0\" height=\"32\" width=\"32\" /><br />" . $ml_forward . "</a></td>\n";
    echo '<td class="ModuleIcons">';
    echo "<a href=\"javascript:popup('properties.php?account_id=" . $account_id . "&uid=" . $uid . "&mailbox=" . urlencode($mailbox) . "','450','500')\"><img src=\"" . $GO_THEME->images['properties'] . "\" border=\"0\" height=\"32\" width=\"32\" /><br />" . $fbProperties . "</a></td>\n";
    echo '<td class="ModuleIcons">';
    echo '<a href="javascript:confirm_delete()"><img src="' . $GO_THEME->images['delete_big'] . '" border="0" height="32" width="32" /><br />' . $ml_delete . '</a></td>';
    echo '<td class="ModuleIcons">';
    echo '<a href="javascript:popup(\'message.php?account_id=' . $account_id . '&uid=' . $uid . '&mailbox=' . urlencode($mailbox) . '&print=true\',\'\',\'\')"><img src="' . $GO_THEME->images['print'] . '" border="0" height="32" width="32" /><br />' . $ml_print . '</a></td>';
    if ($mail->is_imap() && $account['spam'] != '') {
        echo '<td class="ModuleIcons">';
        echo '<a href="javascript:spam();"><img src="' . $GO_THEME->images['block'] . '" border="0" height="32" width="32" /><br />' . $ml_block . '</a></td>';
    }
    if ($content["previous"] != 0) {
        echo '<td class="ModuleIcons">';
        echo '<a href="javascript:get_message(' . $content["previous"] . ');"><img src="' . $GO_THEME->images['previous'] . '" border="0" height="32" width="32" /><br />' . $cmdPrevious . '</a></td>';
    }
    if ($content["next"] != 0) {
        echo '<td class="ModuleIcons">';
        echo '<a href="javascript:get_message(' . $content["next"] . ');"><img src="' . $GO_THEME->images['next'] . '" border="0" height="32" width="32" /><br />' . $cmdNext . '</a></td>';
    }
    echo '<td class="ModuleIcons">';
    echo '<a href="javascript:_close();"><img src="' . $GO_THEME->images['close'] . '" border="0" height="32" width="32" /><br />' . $cmdClose . '</a></td>';
    echo '</tr></table>';
}
예제 #2
0
$query = isset($_REQUEST['query']) ? base64_decode($_REQUEST['query']) : '';
$link_back = 'search.php';
if (!($account = $email->get_account($account_id))) {
    $account = $email->get_account(0);
}
if ($account && $account["user_id"] != $GO_SECURITY->user_id) {
    header('Location: ' . $GO_CONFIG->host . 'error_docs/403.php');
    exit;
}
if (!$mail->open($account['host'], $account['type'], $account['port'], $account['username'], $GO_CRYPTO->decrypt($account['password']), $mailbox, 0, $account['use_ssl'], $account['novalidate_cert'])) {
    echo '<p class="Error">' . $ml_connect_failed . ' \'' . $account['host'] . '\' ' . $ml_at_port . ': ' . $account['port'] . '</p>';
    echo '<p class="Error">' . imap_last_error() . '</p>';
    require $GO_THEME->theme_path . 'footer.inc';
    exit;
}
$date_sorting = $mail->is_imap() ? SORTARRIVAL : SORTDATE;
if (isset($_REQUEST['new_sort_field']) && $_REQUEST['new_sort_order'] != $em_settings['sort_order']) {
    $email->set_sorting($GO_SECURITY->user_id, $_REQUEST['new_sort_field'], $_REQUEST['new_sort_field']);
    $em_settings['sort_field'] = $_REQUEST['new_sort_field'];
    $em_settings['sort_order'] = $_REQUEST['new_sort_order'];
}
if ($em_settings['sort_field'] == SORTDATE && $mail->is_imap()) {
    $em_settings['sort_field'] = SORTARRIVAL;
}
if ($em_settings['sort_field'] == SORTARRIVAL && !$mail->is_imap()) {
    $em_settings['sort_field'] = SORTDATE;
}
if ($em_settings['sort_order'] == 1) {
    $image_string = '<img src="' . $GO_THEME->images['arrow_down'] . '" border="0" />';
    $new_sort_order = 0;
} else {