X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=6c42aa1804c2b36fc74da7d8e893bad2384f5e99;hb=c45c3f60f4ff4c2140e1183177f587d8dedfd71b;hp=cb2767efb706a817aab4919aea6ab6ccf7add4da;hpb=c9e9b23cbdad092a5d0dc36ed6f5d6db72e1f037;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index cb2767ef..6c42aa18 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -14,6 +14,8 @@ ** $Id$ **/ + include("../src/validate.php"); + // Function to include JavaScript code function insert_javascript() { ?> @@ -126,40 +128,16 @@ function bcc_address($addr) { /* ================= End of functions ================= */ - session_start(); - - if (!isset($i18n_php)) - include('../functions/i18n.php'); - - if(!isset($logged_in) || !isset($username) || !isset($key)) { - 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 ''; - exit; - } - if (!isset($config_php)) - include('../config/config.php'); - if (!isset($array_php)) - include('../functions/array.php'); - if (!isset($auth_php)) - include('../functions/auth.php'); - if (!isset($strings_php)) - include('../functions/strings.php'); - if (!isset($page_header_php)) - include('../functions/page_header.php'); - if (!isset($addressbook_php)) - include('../functions/addressbook.php'); - - is_logged_in(); - include('../src/load_prefs.php'); + include('../functions/array.php'); + include('../functions/strings.php'); + include('../functions/addressbook.php'); displayHtmlHeader(); + // Initialize vars + if(!isset($query)) $query = ""; + if(!isset($show)) $show = ""; + // Choose correct colors for top and bottom frame if($show == 'form') { echo "