mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
Use get_var()
This commit is contained in:
parent
29586ebf3a
commit
de6be340f3
@ -3,7 +3,7 @@
|
|||||||
* phpGroupWare - Addressbook *
|
* phpGroupWare - Addressbook *
|
||||||
* http://www.phpgroupware.org *
|
* http://www.phpgroupware.org *
|
||||||
* Written by Joseph Engo <jengo@phpgroupware.org> and *
|
* 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 *
|
* 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 *
|
* under the terms of the GNU General Public License as published by the *
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
function in()
|
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();
|
$GLOBALS['phpgw']->common->phpgw_header();
|
||||||
echo parse_navbar();
|
echo parse_navbar();
|
||||||
@ -71,9 +71,9 @@
|
|||||||
|
|
||||||
function out()
|
function out()
|
||||||
{
|
{
|
||||||
$ab_id = $GLOBALS['HTTP_GET_VARS']['ab_id'] ? $GLOBALS['HTTP_GET_VARS']['ab_id'] : $GLOBALS['HTTP_POST_VARS']['ab_id'];
|
$ab_id = get_var('ab_id',array('GET','POST'));
|
||||||
$nolname = $GLOBALS['HTTP_GET_VARS']['nolname'];
|
$nolname = get_var('nolname','GET');
|
||||||
$nofname = $GLOBALS['HTTP_GET_VARS']['nofname'];
|
$nofname = get_var('nofname','GET');
|
||||||
|
|
||||||
if($nolname || $nofname)
|
if($nolname || $nofname)
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@
|
|||||||
// set a new array to equal the translation and original value
|
// set a new array to equal the translation and original value
|
||||||
while(list($name,$value) = each($fields))
|
while(list($name,$value) = each($fields))
|
||||||
{
|
{
|
||||||
if ($myexport[$name] && ($value != "") )
|
if($myexport[$name] && ($value != ''))
|
||||||
{
|
{
|
||||||
//echo '<br>'.$name."=".$fields[$name]."\n";
|
//echo '<br>'.$name."=".$fields[$name]."\n";
|
||||||
$buffer[$myexport[$name]] = $value;
|
$buffer[$myexport[$name]] = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user