X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=3edaac79f2539bd2d1dd5f7ad598df4b535840bc;hb=ecaa365c5d42413b6b5f755ecf0a2813cada6ad5;hp=0614557903b4652feebd32af7cd67fcd626852ef;hpb=8672576304f4da444b9b1e0e4ca81505af0267ec;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 06145579..3edaac79 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -3,33 +3,42 @@ /** * addrbook_search_html.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Handle addressbook searching with pure html. * * This file is included from compose.php * - * NOTE: A lot of this code is similar to the code in - * addrbook_search.html -- If you change one, change - * the other one too! - * * $Id$ */ /* Path for SquirrelMail required files. */ -define('SM_PATH','../'); +if (! defined('SM_PATH') ) { + define('SM_PATH','../'); +} /* SquirrelMail required files. */ -require_once(SM_PATH . 'src/validate.php'); +require_once(SM_PATH . 'include/validate.php'); require_once(SM_PATH . 'functions/date.php'); -require_once(SM_PATH . 'functions/smtp.php'); require_once(SM_PATH . 'functions/display_messages.php'); require_once(SM_PATH . 'functions/addressbook.php'); require_once(SM_PATH . 'functions/plugin.php'); require_once(SM_PATH . 'functions/strings.php'); require_once(SM_PATH . 'functions/html.php'); +$session = $_POST['session']; +$mailbox = $_POST['mailbox']; +if ( isset($_POST['addrquery']) ) { + $addrquery = $_POST['addrquery']; +} +if ( isset($_POST['listall']) ) { + $listall = $_POST['listall']; +} +if ( isset($_POST['backend'] ) ) { + $backend = $_POST['backend']; +} + /* Insert hidden data */ function addr_insert_hidden() { global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox, @@ -138,7 +147,6 @@ if ($javascript_on) { /* --- End functions --- */ -global $mailbox; if ($compose_new_win == '1') { compose_Header($color, $mailbox); }