X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddrbook_search.php;h=9557065cf1f74af43075cf0a90a5c0c613912141;hp=d67bd619d025ceef9ecbbe0afeae2681a5901e78;hb=8a09fdfab4a9384a99a2dcb720863196809a3cd6;hpb=138f26f6e7092a59ebac3ead587bb6a9b0d28ad3 diff --git a/src/addrbook_search.php b/src/addrbook_search.php index d67bd619..9557065c 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -2,99 +2,42 @@ /** ** addrbook_search.php ** + ** Copyright (c) 1999-2000 The SquirrelMail development team + ** Licensed under the GNU GPL. For full terms see the file COPYING. + ** ** Handle addressbook searching in the popup window. ** + ** NOTE: A lot of this code is similar to the code in + ** addrbook_search_html.html -- If you change one, + ** change the other one too! + ** + ** $Id$ **/ - 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($config_php)) - include("../config/config.php"); - if (!isset($array_php)) - include("../functions/array.php"); - if (!isset($strings_php)) - include("../functions/strings.php"); - if (!isset($imap_php)) - include("../functions/imap.php"); - if (!isset($page_header_php)) - include("../functions/page_header.php"); - if (!isset($addressbook_php)) - include("../functions/addressbook.php"); - - // Authenticate user and load prefs - $imapConnection = sqimap_login($username, $key, - $imapServerAddress, $imapPort, 10); - include("../src/load_prefs.php"); - sqimap_logout ($imapConnection); - -?> - - - -
-
%s
%s.