Removed more warnings
[squirrelmail.git] / src / addrbook_search_html.php
index 9ee5a53f6695fb854b6fe2dbfcec3001798e25f9..9cdf82a9117fa2def492f898742fdac89fe5b84c 100644 (file)
     **/
 
    include('../src/validate.php');
-   include('../functions/page_header.php');
    include('../functions/date.php');
    include('../functions/smtp.php');
    include('../functions/display_messages.php');
    include('../functions/addressbook.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, $mailbox;
+      global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox,
+         $identity;
       
       echo '<input type=hidden value="';
       if (substr($body, 0, 1) == "\r")
@@ -41,6 +40,8 @@
           . '" name=send_to_cc>' . "\n";
       echo "<input type=hidden value=\"" . htmlspecialchars($send_to_bcc)
           . '" name=send_to_bcc>' . "\n";
+      echo "<input type=hidden value=\"" . htmlspecialchars($identity)
+          . '" name=identity>' . "\n";
       echo "<input type=hidden name=mailbox value=\"" .
           htmlspecialchars($mailbox) . "\">\n";
       echo "<input type=hidden value=\"true\" name=from_htmladdr_search>\n";