add PAGE_NAME constant to every page under src/.
[squirrelmail.git] / src / addrbook_popup.php
index 4a9681d0c6ec81d50f8319fce9e42d571d823ed6..90d2d2b5e0e80e9f6bc2a9907b7e4c43deaaeafe 100644 (file)
@@ -5,41 +5,23 @@
  *
  * Frameset for the JavaScript version of the address book.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage addressbook
  */
 
+/** This is the addrbook_popup page */
+define('PAGE_NAME', 'addrbook_popup');
+
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
+include('../include/init.php');
+
+displayHtmlHeader($org_title .': '. _("Addresses"), '', false, true);
 
-/** SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/addressbook.php');
+$oTemplate->display('addressbook_popup.tpl');
 
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
-  "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
 
-<html>
-    <head>
-        <meta name="robots" content="noindex,nofollow">
-        <title><?php echo "$org_title: " . _("Address Book"); ?></title>
-    </head>
-    <frameset rows="60,*" border="0">
-        <frame name="abookmain"
-               marginwidth="0"
-               scrolling="no"
-               border="0"
-               src="addrbook_search.php?show=form" />
-        <frame name="abookres"
-               marginwidth="0"
-               border="0"
-               src="addrbook_search.php?show=blank" />
-    </frameset>
-</html>
\ No newline at end of file