X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=52b4a8204f1731a7fc886d0f36d8c778c4652400;hb=f965aa907a1ead127c5225a524bf86a496294675;hp=df111842b5f63ece5dbd07c08b839c6e60aab768;hpb=a16d133de1083bd684e6bf7c07d612ccef40ca98;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index df111842..52b4a820 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -1,169 +1,316 @@ - +/** + * addrbook_search.php + * + * Handle addressbook searching in the popup window. + * + * NOTE: A lot of this code is similar to the code in + * addrbook_search_html.html -- If you change one, + * change the other one too! + * + * @copyright © 1999-2005 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package squirrelmail + * @subpackage addressbook + */ + +/** + * Path for SquirrelMail required files. + * @ignore + */ +define('SM_PATH','../'); + +/** SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +include_once(SM_PATH . 'functions/strings.php'); +include_once(SM_PATH . 'functions/global.php'); +include_once(SM_PATH . 'functions/html.php'); +include_once(SM_PATH . 'functions/forms.php'); +include_once(SM_PATH . 'functions/addressbook.php'); + +/** + * Function to include JavaScript code + * @return void + */ +function insert_javascript() { + ?> + "; - } else { - echo "
\n"; - } - - // Just make a blank page and exit - if(($show == "blank") || (empty($query) && empty($show))) { - printf("
%s