Changed default value for SpamFilters_YourHop
[squirrelmail.git] / src / addrbook_popup.php
index 11b293e4ee84ad923813fb8ddd8d8ad02728c18c..4c82a6480cc7104989ce7ffb26a67f13f225f312 100644 (file)
@@ -1,35 +1,26 @@
 <?php
+
    /**
     **  addrbook_popup.php
     **
+    **  Copyright (c) 1999-2001 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 ");
-      echo _("login");
-      echo _(" 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");
+   require_once('../src/validate.php');
+   require_once('../functions/addressbook.php');
+   
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
 
 <HTML>
 <HEAD>
 <TITLE><?php 
-   printf("%s: %s", $org_title, _("Address Book")); 
+   echo "$org_title: " . _("Address Book"); 
 ?></TITLE>
 </HEAD>
 
@@ -40,4 +31,4 @@
         BORDER=0>
 </FRAMESET>
 
-</HTML>
+</HTML>
\ No newline at end of file