* Added several hooks
[squirrelmail.git] / src / addrbook_popup.php
index b646a6955cf463f9734d6202ba16dd9e962a6c05..a042eae5e77539f1900f2a3ff9344b489bf46212 100644 (file)
@@ -2,25 +2,21 @@
    /**
     **  addrbook_popup.php
     **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
     **  Frameset for the JavaScript version of the address book.
     **
+    **  $Id$
     **/
 
-   if(!isset($logged_in)) {
-      echo _("You must login first.");
-      exit;
-   }
-   if(!isset($username) || !isset($key)) {
-      echo _("You need a valid user and password to access this page!");
-      exit;
-   }
-
-   if (!isset($config_php))
-      include("../config/config.php");
-   if (!isset($page_header_php))
-      include("../functions/page_header.php");
-   if (!isset($addressbook_php))
-      include("../functions/addressbook.php");
+   include('../src/validate.php');
+   include('../functions/page_header.php');
+   include('../functions/addressbook.php');
+   include('../src/load_prefs.php');
+   
+   set_up_language(getPref($data_dir, $username, 'language'));
+   
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">