X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_popup.php;h=6ba634aa47eac220574d24943cde6564a9791650;hb=c9e9b23cbdad092a5d0dc36ed6f5d6db72e1f037;hp=a9bee6e95a86d2846f374d74ee2fd35764ed855c;hpb=9f2215a1f40978a370a7538229ca2f55f55026ee;p=squirrelmail.git diff --git a/src/addrbook_popup.php b/src/addrbook_popup.php index a9bee6e9..6ba634aa 100644 --- a/src/addrbook_popup.php +++ b/src/addrbook_popup.php @@ -2,27 +2,33 @@ /** ** 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(); - 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; - } - + if (!isset($i18n_php)) + include('../functions/i18n.php'); if (!isset($config_php)) - include("../config/config.php"); + include('../config/config.php'); if (!isset($page_header_php)) - include("../functions/page_header.php"); + include('../functions/page_header.php'); + if (!isset($auth_php)) + include('../functions/auth.php'); if (!isset($addressbook_php)) - include("../functions/addressbook.php"); + include('../functions/addressbook.php'); + + is_logged_in(); + + include('../src/load_prefs.php'); + + set_up_language(getPref($data_dir, $username, 'language')); + ?>