Added sk_SK (Slovak) language locales
[squirrelmail.git] / src / addrbook_search.php
index cda2f1bc9cb0887ee50c96f7fed2b8321c0a4785..6c42aa1804c2b36fc74da7d8e893bad2384f5e99 100644 (file)
@@ -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('<html><BODY TEXT="%s" BGCOLOR="%s" LINK="%s" VLINK="%s" ALINK="%s">',
-              $color[8], $color[4], $color[7], $color[7], $color[7]);
-      plain_error_message(_("You need a valid user and password to access this page!")
-                          . '<br><a href="../src/login.php">'
-                          . _("Click here to log back in.") . "</a>.", $color);
-      echo '</body></html>';
-      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();