X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search_html.php;h=f6c28fe75bb2355ee6ef59a73a3e7650ea318c0d;hb=6c766fd5dccb5a7f87a97b7a0c2e0f5598ee1c8d;hp=a1604e6de2da0a84338d10846d0b471601d7c65f;hpb=00a065a69448f66db8f29fda00961878926a5912;p=squirrelmail.git diff --git a/src/addrbook_search_html.php b/src/addrbook_search_html.php index a1604e6d..f6c28fe7 100644 --- a/src/addrbook_search_html.php +++ b/src/addrbook_search_html.php @@ -17,22 +17,42 @@ * $Id$ */ -require_once('../src/validate.php'); -require_once('../functions/date.php'); -require_once('../functions/smtp.php'); -require_once('../functions/display_messages.php'); -require_once('../functions/addressbook.php'); -require_once('../functions/plugin.php'); +/* Path for SquirrelMail required files. */ +define('SM_PATH','../'); + +/* SquirrelMail required files. */ +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, - $identity; + $identity, $session; echo '' . "\n" . + '' . "\n" . '' . "\n" . '\n" . + echo '
'; @@ -102,27 +150,32 @@ function addr_display_result($res, $includesource = true) { /* --- End functions --- */ -global $mailbox; -displayPageHeader($color, $mailbox); - +if ($compose_new_win == '1') { + compose_Header($color, $mailbox); +} +else { + displayPageHeader($color, $mailbox); +} /* Initialize addressbook */ $abook = addressbook_init(); -?> -
- |
\n" . - ' |
' .
+ echo html_tag( 'p', '
' .
sprintf(_("Unable to list addresses from %s"),
- $abook->backends[$backend]->sname) .
- "
' .
- _("Your search failed with the following error(s)") . ':
' .
- $abook->error . "