', $color[8], $color[4], $color[7], $color[7], $color[7]); plain_error_message(_("You need a valid user and password to access this page!") . "
" . _("Click here to log back in.") . ".", $color); echo ""; exit; } if (!isset($strings_php)) include("../functions/strings.php"); if (!isset($i18n_php)) include("../functions/i18n.php"); if (!isset($config_php)) include("../config/config.php"); if (!isset($page_header_php)) include("../functions/page_header.php"); if (!isset($imap_php)) include("../functions/imap.php"); if (!isset($imap_search_php)) include("../functions/imap_search.php"); if (!isset($array_php)) include("../functions/array.php"); include("../src/load_prefs.php"); displayPageHeader($color, $mailbox); $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); do_hook("search_before_form"); echo "
\n"; echo " \n"; echo " \n"; echo "
\n"; echo "
"._("Search")."
\n"; echo "
"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " "; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo " "; echo " \n"; if (!isset($what)) $what = ""; $what_disp = ereg_replace(",", " ", $what); $what_disp = str_replace("\\\\", "\\", $what_disp); $what_disp = str_replace("\\\"", "\"", $what_disp); $what_disp = str_replace("\"", """, $what_disp); echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; echo "
"; echo "
"; do_hook("search_after_form"); if (isset($where) && $where && isset($what) && $what) { sqimap_mailbox_select($imapConnection, $mailbox); sqimap_search($imapConnection, $where, $what, $mailbox, $color); } do_hook("search_bottom"); sqimap_logout ($imapConnection); ?>