X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_popup.php;h=e629cea0b14e1bb364ab70e0211447058ef92a55;hb=e190b5b098462b8f7f9dfc378aa13332e67b8138;hp=11b293e4ee84ad923813fb8ddd8d8ad02728c18c;hpb=5100704d64380cc532dac7e5da8c72a56dd94071;p=squirrelmail.git diff --git a/src/addrbook_popup.php b/src/addrbook_popup.php index 11b293e4..e629cea0 100644 --- a/src/addrbook_popup.php +++ b/src/addrbook_popup.php @@ -2,27 +2,32 @@ /** ** 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. ** **/ - 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; - } + session_start(); + 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"); + + is_logged_in(); + + include("../src/load_prefs.php"); + + set_up_language(getPref($data_dir, $username, "language")); + ?>