Prepend SM_PATH to $icon_theme_path since it is no longer returned by the template...
[squirrelmail.git] / src / addrbook_popup.php
index 5d6a288ad94404cbb04a1020bfb58f6fafee4b36..7a9745880a63e6de17a9db70c4402cb099c2e44b 100644 (file)
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
+include('../include/init.php');
 
-/** SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/addressbook.php');
+displayHtmlHeader($org_title .': '. _("AddressBook"), '', false, true);
 
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
+$oTemplate->display('addressbook_popup.tpl');
 
-<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
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file