X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddrbook_search.php;h=45e1ed2ea133ba4389689191f53eef15735b3a46;hb=d725f88c364863bc4581884e99e768e7ce3c489f;hp=53f81c9bf3eb71c69976b1cd953896ad157403a3;hpb=0b97a708e71c931153cd1ceee1495c9f4e1e209b;p=squirrelmail.git diff --git a/src/addrbook_search.php b/src/addrbook_search.php index 53f81c9b..45e1ed2e 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-2004 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Handle addressbook searching in the popup window. @@ -12,35 +12,37 @@ * addrbook_search_html.html -- If you change one, * change the other one too! * - * $Id$ + * $Id$ + * @package squirrelmail */ -/* Path for SquirrelMail required files. */ +/** + * Path for SquirrelMail required files. + */ define('SM_PATH','../'); -/* SquirrelMail required files. */ +/** 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'); +require_once(SM_PATH . 'functions/forms.php'); -/* lets get the global vars we may need */ -$key = $_COOKIE['key']; -$username = $_SESSION['username']; -$onetimepad = $_SESSION['onetimepad']; -$base_uri = $_SESSION['base_uri']; +/** 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); -sqextractGlobalVar('show'); -if ( isset($_POST['query']) ) { - $query = $_POST['query']; -} -if ( isset($_POST['listall']) ) { - $listall = $_POST['listall']; -} -if ( isset($_POST['backend'] ) ) { - $backend = $_POST['backend']; -} +sqgetGlobalVar('show' , $show); +sqgetGlobalVar('query', $query, SQ_POST); +sqgetGlobalVar('listall', $listall, SQ_POST); +sqgetGlobalVar('backend', $backend, SQ_POST); -/* Function to include JavaScript code */ +/** + * Function to include JavaScript code + * @return void + */ function insert_javascript() { ?>