X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fsearch.php;h=79da86acd8aa95417a0f5303185b7f571041dd99;hp=e7e9f8d2e3d550f967ba549d1a79cc211c285574;hb=91dc6e4e1605dc5aee40e3cae9f11d79f785b834;hpb=068acdf9452f8f2acd7165ac26fc25d260b0ac80 diff --git a/src/search.php b/src/search.php index e7e9f8d..79da86a 100644 --- a/src/search.php +++ b/src/search.php @@ -10,93 +10,93 @@ exit; } if(!isset($username) || !isset($key)) { - include ("../themes/default_theme.php"); - include ("../functions/display_messages.php"); + include ('../themes/default_theme.php'); + include ('../functions/display_messages.php'); printf('', $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 ""; + . '
' + . _("Click here to log back in.") . '.', $color); + echo ''; exit; } if (!isset($strings_php)) - include("../functions/strings.php"); + include('../functions/strings.php'); if (!isset($i18n_php)) - include("../functions/i18n.php"); + include('../functions/i18n.php'); if (!isset($config_php)) - include("../config/config.php"); + include('../config/config.php'); if (!isset($page_header_php)) - include("../functions/page_header.php"); + include('../functions/page_header.php'); if (!isset($imap_php)) - include("../functions/imap.php"); + include('../functions/imap.php'); if (!isset($imap_search_php)) - include("../functions/imap_search.php"); + include('../functions/imap_search.php'); if (!isset($array_php)) - include("../functions/array.php"); + include('../functions/array.php'); - include("../src/load_prefs.php"); + include('../src/load_prefs.php'); displayPageHeader($color, $mailbox); $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - do_hook("search_before_form"); + do_hook('search_before_form'); echo "
\n"; echo " \n"; echo " \n"; - echo "
\n"; echo "
"._("Search")."
\n"; echo "
"; + echo '
'; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " "; + echo ' '; echo " \n";
\n"; - echo " '; $boxes = sqimap_mailbox_list($imapConnection); for ($i = 0; $i < count($boxes); $i++) { - if (!in_array("noselect", $boxes[$i]["flags"])) { - $box = $boxes[$i]["unformatted"]; - $box2 = replace_spaces($boxes[$i]["unformatted-disp"]); + if (!in_array('noselect', $boxes[$i]['flags'])) { + $box = $boxes[$i]['unformatted']; + $box2 = replace_spaces($boxes[$i]['unformatted-disp']); if ($mailbox == $box) echo " "; + 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); + $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 " '; - if (isset($where) && $where == "BODY") echo "