X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=b1bc299e16534a3efc54d4149f59bd36f0fdaafd;hb=8f6f9ba5df6491d396aa690dcf3e5b9070a565ca;hp=8ee86b0c8a5c8f19825f31be44313507dcbc920f;hpb=3d0cada30b60e39d6627ab1df7b44b3e9c2e3c91;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index 8ee86b0c..b1bc299e 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -3,7 +3,7 @@ /** * addrbook_search.php * - * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Handle addressbook searching in the popup window. @@ -12,14 +12,36 @@ * addrbook_search_html.html -- If you change one, * change the other one too! * - * $Id$ + * $Id$ + * @package squirrelmail */ -require_once('../src/validate.php'); -require_once('../functions/strings.php'); -require_once('../functions/html.php'); +/** + * Path for SquirrelMail required files. + */ +define('SM_PATH','../'); + +/** SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +require_once(SM_PATH . 'functions/strings.php'); +require_once(SM_PATH . 'functions/global.php'); +require_once(SM_PATH . 'functions/html.php'); + +/** lets get the global vars we may need */ +sqgetGlobalVar('key', $key, SQ_COOKIE); +sqgetGlobalVar('username', $username, SQ_SESSION); +sqgetGlobalVar('onetimepad',$onetimepad, SQ_SESSION); +sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION); -/* Function to include JavaScript code */ +sqgetGlobalVar('show' , $show); +sqgetGlobalVar('query', $query, SQ_POST); +sqgetGlobalVar('listall', $listall, SQ_POST); +sqgetGlobalVar('backend', $backend, SQ_POST); + +/** + * Function to include JavaScript code + * @return void + */ function insert_javascript() { ?>