[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.31,1.32
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.31,1.32 |
Date: |
Tue, 30 Apr 2002 13:26:43 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv24016
Modified Files:
class.uiinfolog.inc.php
Log Message:
Converting to get_var() for all HTTP_*_VARS.
Index: class.uiinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.uiinfolog.inc.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** class.uiinfolog.inc.php 20 Jan 2002 21:41:38 -0000 1.31
--- class.uiinfolog.inc.php 30 Apr 2002 17:26:40 -0000 1.32
***************
*** 255,263 ****
$vars=array('sort','order','query','start','filter','cat_id');
}
! global $HTTP_REFERER,$referer;
if (!$referer)
{
! $referer = $HTTP_REFERER;
}
--- 255,263 ----
$vars=array('sort','order','query','start','filter','cat_id');
}
! global $referer;
if (!$referer)
{
! $referer =
get_var('HTTP_REFERER',Array('GLOBAL'));
}
***************
*** 551,556 ****
function get_file( )
{
! $info_id=$GLOBALS['HTTP_GET_VARS']['info_id'];
! $filename=$GLOBALS['HTTP_GET_VARS']['filename'];
//echo "<p>get_file: info_id='$info_id',
filename='$filename'</p>\n";
--- 551,556 ----
function get_file( )
{
! $info_id = get_var('info_id',Array('GET'));
! $filename = get_var('filename',Array('GET'));
//echo "<p>get_file: info_id='$info_id',
filename='$filename'</p>\n";
***************
*** 564,568 ****
$GLOBALS['phpgw']->common->phpgw_exit();
}
! $local =
$this->bo->attached_local($info_id,$filename,$GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR'],$browser->is_windows());
if ($local)
--- 564,568 ----
$GLOBALS['phpgw']->common->phpgw_exit();
}
! $local =
$this->bo->attached_local($info_id,$filename,get_var('REMOTE_ADDR',Array('SERVER')),$browser->is_windows());
if ($local)
***************
*** 605,609 ****
{
$fileerror =
$this->bo->attach_file($info_id,$attachfile,$attachfile_name,$attachfile_size,
!
$attachfile_type,$filecomment,$full_fname,$GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR']);
if ($fileerror) $error[]=$fileerror;
}
--- 605,609 ----
{
$fileerror =
$this->bo->attach_file($info_id,$attachfile,$attachfile_name,$attachfile_size,
!
$attachfile_type,$filecomment,$full_fname,get_var('REMOTE_ADDR',Array('SERVER')));
if ($fileerror) $error[]=$fileerror;
}
***************
*** 653,661 ****
$referer = $this->get_referer();
! if ((!isset($info_id) || !$info_id) && !$action ||
$GLOBALS['HTTP_POST_VARS']['cancel'])
{
Header('Location: ' . $html->link($referer) );
}
! if ($GLOBALS['HTTP_POST_VARS']['delete'])
{
Header('Location: ' .
$html->link('/index.php',$this->menuaction('delete')+
--- 653,661 ----
$referer = $this->get_referer();
! if((!isset($info_id) || !$info_id) && !$action ||
get_var('cancel',Array('POST')))
{
Header('Location: ' . $html->link($referer) );
}
! if(get_var('delete',Array('POST')))
{
Header('Location: ' .
$html->link('/index.php',$this->menuaction('delete')+
***************
*** 773,777 ****
$fileerror =
$this->bo->attach_file($this->bo->so->data['info_id'],$attachfile,
$attachfile_name,$attachfile_size,$attachfile_type,$filecomment,$full_fname,
!
$GLOBALS['HTTP_SERVER_VARS']['REMOTE_ADDR']);
if ($fileerror)
$error[]=$fileerror;
}
--- 773,777 ----
$fileerror =
$this->bo->attach_file($this->bo->so->data['info_id'],$attachfile,
$attachfile_name,$attachfile_size,$attachfile_type,$filecomment,$full_fname,
!
get_var('REMOTE_ADDR',Array('SERVER')));
if ($fileerror)
$error[]=$fileerror;
}
***************
*** 1034,1038 ****
function admin( )
{
! if ($GLOBALS['HTTP_POST_VARS']['done'])
{
Header('Location:
'.$GLOBALS['phpgw']->link('/admin/index.php'));
--- 1034,1038 ----
function admin( )
{
! if(get_var('done',Array('POST')))
{
Header('Location:
'.$GLOBALS['phpgw']->link('/admin/index.php'));
***************
*** 1040,1053 ****
}
! if ($GLOBALS['HTTP_POST_VARS']['save'])
{
$this->bo->link_pathes = array();
$this->bo->send_file_ips = array();
! while (list($key,$val) =
each($GLOBALS['HTTP_POST_VARS']['valid']))
{
! if ($val = stripslashes($val))
{
! $this->bo->link_pathes[$val]
= stripslashes($GLOBALS['HTTP_POST_VARS']['trans'][$key]);
! $this->bo->send_file_ips[$val]
= stripslashes($GLOBALS['HTTP_POST_VARS']['ip'][$key]);
}
}
--- 1040,1056 ----
}
! if(get_var('save',Array('POST')))
{
$this->bo->link_pathes = array();
$this->bo->send_file_ips = array();
! $valid = get_var('valid',Array('POST'));
! $trans = get_var('trans',Array('POST'));
! $ip = get_var('ip',Array('POST'));
! while(list($key,$val) = each($valid))
{
! if($val = stripslashes($val))
{
! $this->bo->link_pathes[$val]
= stripslashes($trans[$key]);
! $this->bo->send_file_ips[$val]
= stripslashes($ip[$key]);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.31,1.32,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: dj adddirectory.php,1.3,1.4 delete.php,1.5,1.6 deletedirectory.php,1.4,1.5 editdirectory.php,1.3,1.4 import.php,1.11,1.12 request.php,1.7,1.8 show.php,1.8,1.9
- Next by Date:
[Phpgroupware-cvs] CVS: developer_tools/inc class.bochangelogs.inc.php,1.3,1.4 class.bosf_project_tracker.inc.php,1.4,1.5 class.sosf_project_tracker.inc.php,1.4,1.5 class.uilangfile.inc.php,1.10,1.11
- Previous by thread:
[Phpgroupware-cvs] CVS: dj adddirectory.php,1.3,1.4 delete.php,1.5,1.6 deletedirectory.php,1.4,1.5 editdirectory.php,1.3,1.4 import.php,1.11,1.12 request.php,1.7,1.8 show.php,1.8,1.9
- Next by thread:
[Phpgroupware-cvs] CVS: developer_tools/inc class.bochangelogs.inc.php,1.3,1.4 class.bosf_project_tracker.inc.php,1.4,1.5 class.sosf_project_tracker.inc.php,1.4,1.5 class.uilangfile.inc.php,1.10,1.11
- Index(es):