Use get_var()

This commit is contained in:
Miles Lott 2003-10-19 06:14:21 +00:00
parent 29586ebf3a
commit de6be340f3

View File

@ -3,7 +3,7 @@
* phpGroupWare - Addressbook *
* http://www.phpgroupware.org *
* Written by Joseph Engo <jengo@phpgroupware.org> and *
* Miles Lott <miloschphpgroupware.org> *
* Miles Lott <milos@groupwhere.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
@ -43,7 +43,7 @@
function in()
{
$action = $GLOBALS['HTTP_POST_VARS']['action'] ? $GLOBALS['HTTP_POST_VARS']['action'] : $GLOBALS['HTTP_GET_VARS']['action'];
$action = get_var('action',array('POST','GET'));
$GLOBALS['phpgw']->common->phpgw_header();
echo parse_navbar();
@ -71,9 +71,9 @@
function out()
{
$ab_id = $GLOBALS['HTTP_GET_VARS']['ab_id'] ? $GLOBALS['HTTP_GET_VARS']['ab_id'] : $GLOBALS['HTTP_POST_VARS']['ab_id'];
$nolname = $GLOBALS['HTTP_GET_VARS']['nolname'];
$nofname = $GLOBALS['HTTP_GET_VARS']['nofname'];
$ab_id = get_var('ab_id',array('GET','POST'));
$nolname = get_var('nolname','GET');
$nofname = get_var('nofname','GET');
if($nolname || $nofname)
{
@ -153,7 +153,7 @@
// set a new array to equal the translation and original value
while(list($name,$value) = each($fields))
{
if ($myexport[$name] && ($value != "") )
if($myexport[$name] && ($value != ''))
{
//echo '<br>'.$name."=".$fields[$name]."\n";
$buffer[$myexport[$name]] = $value;