/**
* addrbook_search.php
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Handle addressbook searching in the popup window.
displayHtmlHeader();
+/** set correct value of $default_charset */
+global $default_charset;
+set_my_charset();
+
/* Initialize vars */
if (!isset($query)) { $query = ''; }
if (!isset($show)) { $show = ''; }
exit;
}
-/* Initialize addressbook */
-$abook = addressbook_init();
+/* Initialize addressbook, show init errors only in bottom frame */
+$showerr=($show=='form' ? false : true);
+$abook = addressbook_init($showerr);
/* Create search form */
if ($show == 'form' && empty($listall)) {
/* List all backends to allow the user to choose where to search */
if ($abook->numbackends > 1) {
- echo '<strong>' . _("in") . '</strong> '."\n".
- $selopts['-1'] = _("All address books");
+ echo '<strong>' . _("in") . '</strong> '."\n";
+ $selopts = array();
+ $selopts['-1'] = _("All address books");
$ret = $abook->get_backend_list();
while (list($undef,$v) = each($ret)) {
}
?>
-</body></html>
\ No newline at end of file
+</body></html>