Changed temp file write to from due to leftover file possiblity, At least they...
[squirrelmail.git] / src / addrbook_popup.php
index b646a6955cf463f9734d6202ba16dd9e962a6c05..27fb93b3f0cd9e5af7083599856648a5cf3b6124 100644 (file)
@@ -6,21 +6,18 @@
     **
     **/
 
-   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;
-   }
+   session_start();
 
    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">