X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=4e914beef1ef4f28c5297d4665e19f6148e3510e;hb=c3ccfa1912b4ca47279d259bb587ceb293ce5d83;hp=f6d637486f76bcf4299bc2378aaae4629149fcde;hpb=08185f2a7631c3a12cb1ac085fec3be471b56b00;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index f6d63748..4e914bee 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. @@ -21,8 +21,20 @@ 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); + +sqgetGlobalVar('show' , $show); +sqgetGlobalVar('query', $query, SQ_POST); +sqgetGlobalVar('listall', $listall, SQ_POST); +sqgetGlobalVar('backend', $backend, SQ_POST); + /* Function to include JavaScript code */ function insert_javascript() { ?> @@ -141,7 +153,6 @@ function display_result($res, $includesource = true) { /* ================= End of functions ================= */ -require_once('../functions/array.php'); require_once('../functions/strings.php'); require_once('../functions/addressbook.php');