Happy New Year
[squirrelmail.git] / src / addrbook_popup.php
index caa69bd501c5bce68678d456bb2c16e66788bfec..4d0a075a546c169dd42d8c5ba3d087dc9d8f0a67 100644 (file)
@@ -1,49 +1,27 @@
 <?php
-   /**
-    **  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$
-    **/
 
-   session_start();
+/**
+ * addrbook_popup.php
+ *
+ * Frameset for the JavaScript version of the address book.
+ *
+ * @copyright 1999-2020 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage addressbook
+ */
 
-   if (!isset($i18n_php))
-      include("../functions/i18n.php");
-   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");
+/** This is the addrbook_popup page */
+define('PAGE_NAME', 'addrbook_popup');
 
-   is_logged_in();
+/**
+ * Include the SquirrelMail initialization file.
+ */
+include('../include/init.php');
 
-   include("../src/load_prefs.php");
-   
-   set_up_language(getPref($data_dir, $username, "language"));
-   
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
+displayHtmlHeader($org_title .': '. _("Addresses"), '', false, true);
 
-<HTML>
-<HEAD>
-<TITLE><?php 
-   printf("%s: %s", $org_title, _("Address Book")); 
-?></TITLE>
-</HEAD>
+$oTemplate->display('addressbook_popup.tpl');
 
-<FRAMESET ROWS="60,*" BORDER=0>
- <FRAME NAME="abookmain" MARGINWIDTH=0 SCROLLING=NO
-        SRC="addrbook_search.php?show=form" BORDER=0>
- <FRAME NAME="abookres" MARGINWIDTH=0 SRC="addrbook_search.php?show=blank"
-        BORDER=0>
-</FRAMESET>
 
-</HTML>