- /**
- ** 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 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$
- **/
-
- session_start();
-
- if (!isset($config_php))
- include('../config/config.php');
- if (!isset($strings_php))
- include('../functions/strings.php');
- if (!isset($auth_php))
- include('../functions/auth.php');
- if (!isset($page_header_php))
- include('../functions/page_header.php');
- if (!isset($date_php))
- include('../functions/date.php');
- if (!isset($smtp_php))
- include('../functions/smtp.php');
- if (!isset($display_messages_php))
- include('../functions/display_messages.php');
- if (!isset($addressbook_php))
- include('../functions/addressbook.php');
- if (!isset($plugin_php))
- include('../functions/plugin.php');
-
- include('../src/load_prefs.php');
-
- // Insert hidden data
- function addr_insert_hidden() {
- global $body, $subject, $send_to, $send_to_cc, $send_to_bcc;
-
- echo '<input type=hidden value="';
- if (substr($body, 0, 1) == "\r")
- echo "\n";
- echo htmlspecialchars($body) . '" name=body>' . "\n";
- echo '<input type=hidden value="' . htmlspecialchars($subject)
- . '" name=subject>' . "\n";
- echo '<input type=hidden value="' . htmlspecialchars($send_to)
- . '" name=send_to>' . "\n";
- echo "<input type=hidden value=\"" . htmlspecialchars($send_to_cc)
- . '" name=send_to_cc>' . "\n";
- echo "<input type=hidden value=\"" . htmlspecialchars($send_to_bcc)
- . '" name=send_to_bcc>' . "\n";
- echo "<input type=hidden value=\"true\" name=from_htmladdr_search>\n";
- }
-