Taking advantage of the get_var() function.

This commit is contained in:
skeeter 2002-04-29 00:29:12 +00:00
parent 14c913404c
commit 0337992b16

View File

@ -57,8 +57,8 @@
{ {
$this->db = $GLOBALS['phpgw']->db; $this->db = $GLOBALS['phpgw']->db;
$this->db2 = $GLOBALS['phpgw']->db; $this->db2 = $GLOBALS['phpgw']->db;
$this->sessionid = (isset($GLOBALS['HTTP_GET_VARS']['sessionid'])?$GLOBALS['HTTP_GET_VARS']['sessionid']:(isset($GLOBALS['HTTP_COOKIE_VARS']['sessionid'])?$GLOBALS['HTTP_COOKIE_VARS']['sessionid']:'')); $this->sessionid = get_var('sessionid',Array('COOKIE','GET'));
$this->kp3 = (isset($GLOBALS['HTTP_GET_VARS']['kp3'])?$GLOBALS['HTTP_GET_VARS']['kp3']:(isset($GLOBALS['HTTP_COOKIE_VARS']['kp3'])?$GLOBALS['HTTP_COOKIE_VARS']['kp3']:'')); $this->kp3 = get_var('kp3',Array('COOKIE','GET'));
/* Create the crypto object */ /* Create the crypto object */
$GLOBALS['phpgw']->crypto = CreateObject('phpgwapi.crypto'); $GLOBALS['phpgw']->crypto = CreateObject('phpgwapi.crypto');
@ -118,8 +118,8 @@
{ {
if(empty($sessionid) || !$sessionid) if(empty($sessionid) || !$sessionid)
{ {
$sessionid = $GLOBALS['HTTP_GET_VARS']['sessionid'] ? $GLOBALS['HTTP_GET_VARS']['sessionid'] : $GLOBALS['HTTP_COOKIE_VARS']['sessionid']; $sessionid = get_var('sessionid',Array('COOKIE','GET'));
$kp3 = $GLOBALS['HTTP_GET_VARS']['kp3'] ? $GLOBALS['HTTP_GET_VARS']['kp3'] : $GLOBALS['HTTP_COOKIE_VARS']['kp3']; $kp3 = get_var('kp3',Array('COOKIE','GET'));
} }
$db = $GLOBALS['phpgw']->db; $db = $GLOBALS['phpgw']->db;
@ -878,7 +878,7 @@
\*************************************************************************/ \*************************************************************************/
function link($url, $extravars = '') function link($url, $extravars = '')
{ {
$kp3 = $GLOBALS['HTTP_GET_VARS']['kp3'] ? $GLOBALS['HTTP_GET_VARS']['kp3'] : $GLOBALS['HTTP_COOKIE_VARS']['kp3']; $kp3 = get_var('kp3',Array('COOKIE','GET'));
if (! $kp3) if (! $kp3)
{ {