Removed, now a plugin, no idea if this will be included with the source tree.
[squirrelmail.git] / src / addrbook_popup.php
index a9bee6e95a86d2846f374d74ee2fd35764ed855c..f8248efe561c6ab68c12c7680be1063c0309a640 100644 (file)
@@ -2,27 +2,25 @@
    /**
     **  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.
     **
     **/
 
    session_start();
 
-   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($auth_php))
+      include("../functions/auth.php");
    if (!isset($addressbook_php))
       include("../functions/addressbook.php");
+
+   is_logged_in();
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">