X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=9cdf82a9117fa2def492f898742fdac89fe5b84c;hb=40fdd290db395b24d6a6ccc4be08d83c37816b55;hp=94590191f5fc3a249a5fa91a3f84d138c033f1a3;hpb=507832e7aaf3b34e2165c871632c5eb365125240;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index 94590191..9cdf82a9 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -16,32 +16,17 @@ ** $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'); + include('../src/validate.php'); + include('../functions/date.php'); + include('../functions/smtp.php'); + include('../functions/display_messages.php'); + include('../functions/addressbook.php'); + include('../functions/plugin.php'); // Insert hidden data function addr_insert_hidden() { - global $body, $subject, $send_to, $send_to_cc, $send_to_bcc; + global $body, $subject, $send_to, $send_to_cc, $send_to_bcc, $mailbox, + $identity; echo '' . "\n"; echo "' . "\n"; + echo "' . "\n"; + echo "\n"; echo "\n"; } @@ -65,8 +54,9 @@ if(sizeof($res) <= 0) return; - printf('
'."\n", - $PHP_SELF); + echo '\n"; + echo ''; + echo "\n"; addr_insert_hidden(); $line = 0; @@ -81,21 +71,23 @@ print "\n"; - while(list($undef, $row) = each($res)) { - printf("". - " To". - " Cc ". - " %s  ". - "%s". - " %s ", - ($line % 2) ? " bgcolor=\"$color[0]\"" : "", - htmlspecialchars($row["email"]), htmlspecialchars($row["email"]), - $row["name"], $row["email"], $row["label"]); + foreach ($res as $row) { + echo ''; + echo ' To '; + echo ' Cc '; + echo ' Bcc '; + echo ' ' . $row['name'] . ' '; + echo ' ' . $row['email'] . ' '; + echo ' ' . $row['label'] . ' '; if($includesource) - printf(" %s", $row["source"]); - - print "\n"; - $line++; + echo ' ' . $row['source'] . ' '; + echo "\n"; + $line ++; } printf('', @@ -108,7 +100,8 @@ // --- End functions --- - displayPageHeader($color, 'None'); + global $mailbox; + displayPageHeader($color, $mailbox); // Initialize addressbook $abook = addressbook_init();