X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=6c42aa1804c2b36fc74da7d8e893bad2384f5e99;hb=c45c3f60f4ff4c2140e1183177f587d8dedfd71b;hp=cda2f1bc9cb0887ee50c96f7fed2b8321c0a4785;hpb=12b4ef8b0689e6e2dbcc3c6f7605ca8e7d99e50d;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index cda2f1bc..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,39 +128,9 @@ function bcc_address($addr) { /* ================= End of functions ================= */ - session_start(); - - if (!isset($strings_php)) - include("../functions/strings.php"); - 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();