[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: inv/inc class.boinventory.inc.php,1.10,1.11 clas
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: inv/inc class.boinventory.inc.php,1.10,1.11 class.boinvoice.inc.php,1.3,1.4 class.uiinventory.inc.php,1.11,1.12 class.uiinvoice.inc.php,1.5,1.6 |
Date: |
Tue, 30 Apr 2002 10:42:02 -0400 |
Update of /cvsroot/phpgroupware/inv/inc
In directory subversions:/tmp/cvs-serv32227
Modified Files:
class.boinventory.inc.php class.boinvoice.inc.php
class.uiinventory.inc.php class.uiinvoice.inc.php
Log Message:
Converting to get_var() for all HTTP_*_VARS.
Index: class.boinventory.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/inv/inc/class.boinventory.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** class.boinventory.inc.php 14 Apr 2002 22:27:31 -0000 1.10
--- class.boinventory.inc.php 30 Apr 2002 14:42:00 -0000 1.11
***************
*** 63,76 ****
}
! $start = $GLOBALS['HTTP_POST_VARS']['start']
? $GLOBALS['HTTP_POST_VARS']['start'] : $GLOBALS['HTTP_GET_VARS']['start'];
! $query = $GLOBALS['HTTP_POST_VARS']['query']
? $GLOBALS['HTTP_POST_VARS']['query'] : $GLOBALS['HTTP_GET_VARS']['query'];
! $sort = $GLOBALS['HTTP_POST_VARS']['sort']
? $GLOBALS['HTTP_POST_VARS']['sort'] : $GLOBALS['HTTP_GET_VARS']['sort'];
! $order = $GLOBALS['HTTP_POST_VARS']['order']
? $GLOBALS['HTTP_POST_VARS']['order'] : $GLOBALS['HTTP_GET_VARS']['order'];
! $cat_id = $GLOBALS['HTTP_POST_VARS']['cat_id']
? $GLOBALS['HTTP_POST_VARS']['cat_id'] : $GLOBALS['HTTP_GET_VARS']['cat_id'];
! $action = $GLOBALS['HTTP_POST_VARS']['action']
? $GLOBALS['HTTP_POST_VARS']['action'] : $GLOBALS['HTTP_GET_VARS']['action'];
! $product_id = $GLOBALS['HTTP_POST_VARS']['product_id']
? $GLOBALS['HTTP_POST_VARS']['product_id'] :
$GLOBALS['HTTP_GET_VARS']['product_id'];
! $status = $GLOBALS['HTTP_POST_VARS']['status']
? $GLOBALS['HTTP_POST_VARS']['status'] : $GLOBALS['HTTP_GET_VARS']['status'];
! $dist = $GLOBALS['HTTP_POST_VARS']['dist'] ?
$GLOBALS['HTTP_POST_VARS']['dist'] : $GLOBALS['HTTP_GET_VARS']['dist'];
! $selection =
$GLOBALS['HTTP_POST_VARS']['selection'] ?
$GLOBALS['HTTP_POST_VARS']['selection'] :
$GLOBALS['HTTP_GET_VARS']['selection'];
if(!empty($start) || $start == '0' || $start == 0)
--- 63,76 ----
}
! $start = get_var('start',Array('GET','POST'));
! $query = get_var('query',Array('GET','POST'));
! $sort = get_var('sort',Array('GET','POST'));
! $order = get_var('order',Array('GET','POST'));
! $cat_id = get_var('cat_id',Array('GET','POST'));
! $action = get_var('action',Array('GET','POST'));
! $product_id =
get_var('product_id',Array('GET','POST'));
! $status = get_var('status',Array('GET','POST'));
! $dist = get_var('dist',Array('GET','POST'));
! $selection =
get_var('selection',Array('GET','POST'));
if(!empty($start) || $start == '0' || $start == 0)
Index: class.boinvoice.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/inv/inc/class.boinvoice.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.boinvoice.inc.php 16 Apr 2002 23:25:26 -0000 1.3
--- class.boinvoice.inc.php 30 Apr 2002 14:42:00 -0000 1.4
***************
*** 48,58 ****
}
! $start = $GLOBALS['HTTP_POST_VARS']['start']
? $GLOBALS['HTTP_POST_VARS']['start'] : $GLOBALS['HTTP_GET_VARS']['start'];
! $query = $GLOBALS['HTTP_POST_VARS']['query']
? $GLOBALS['HTTP_POST_VARS']['query'] : $GLOBALS['HTTP_GET_VARS']['query'];
! $sort = $GLOBALS['HTTP_POST_VARS']['sort']
? $GLOBALS['HTTP_POST_VARS']['sort'] : $GLOBALS['HTTP_GET_VARS']['sort'];
! $order = $GLOBALS['HTTP_POST_VARS']['order']
? $GLOBALS['HTTP_POST_VARS']['order'] : $GLOBALS['HTTP_GET_VARS']['order'];
! $cat_id = $GLOBALS['HTTP_POST_VARS']['cat_id']
? $GLOBALS['HTTP_POST_VARS']['cat_id'] : $GLOBALS['HTTP_GET_VARS']['cat_id'];
! $action = $GLOBALS['HTTP_POST_VARS']['action']
? $GLOBALS['HTTP_POST_VARS']['action'] : $GLOBALS['HTTP_GET_VARS']['action'];
! $filter = $GLOBALS['HTTP_POST_VARS']['filter']
? $GLOBALS['HTTP_POST_VARS']['filter'] : $GLOBALS['HTTP_GET_VARS']['filter'];
if(!empty($start) || $start == '0' || $start == 0)
--- 48,58 ----
}
! $start = get_var('start',Array('GET','POST'));
! $query = get_var('query',Array('GET','POST'));
! $sort = get_var('sort',Array('GET','POST'));
! $order = get_var('order',Array('GET','POST'));
! $cat_id = get_var('cat_id',Array('GET','POST'));
! $action = get_var('action',Array('GET','POST'));
! $filter = get_var('filter',Array('GET','POST'));
if(!empty($start) || $start == '0' || $start == 0)
Index: class.uiinventory.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/inv/inc/class.uiinventory.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** class.uiinventory.inc.php 14 Apr 2002 22:27:31 -0000 1.11
--- class.uiinventory.inc.php 30 Apr 2002 14:42:00 -0000 1.12
***************
*** 373,384 ****
function edit_product()
{
! $values = $GLOBALS['HTTP_POST_VARS']['values'];
! $submit = $GLOBALS['HTTP_POST_VARS']['submit'];
! $referer = $GLOBALS['HTTP_POST_VARS']['referer'];
if (!$submit)
{
! $referer =
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ?
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
! $cat_id = $this->cat_id;
}
--- 373,384 ----
function edit_product()
{
! $values = get_var('values',Array('POST'));
! $submit = get_var('submit',Array('POST'));
! $referer = get_var('referer',Array('POST'));
if (!$submit)
{
! $referer =
get_var('HTTP_REFERER',Array('GLOBAL','SERVER'));
! $cat_id = $this->cat_id;
}
***************
*** 556,574 ****
function view_product()
{
! $submit = $GLOBALS['HTTP_POST_VARS']['submit'];
! $referer = $GLOBALS['HTTP_POST_VARS']['referer'];
! if (!$submit)
{
! $referer =
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ?
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
! $cat_id = $this->cat_id;
}
! if ($submit)
{
Header('Location: ' . $referer);
}
! if (!$this->product_id)
{
Header('Location: ' . $referer);
--- 556,574 ----
function view_product()
{
! $submit = get_var('submit',Array('POST'));
! $referer = get_var('referer',Array('POST'));
! if(!$submit)
{
! $referer =
get_var('HTTP_REFERER',Array('GLOBAL','SERVER'));
! $cat_id = $this->cat_id;
}
! if($submit)
{
Header('Location: ' . $referer);
}
! if(!$this->product_id)
{
Header('Location: ' . $referer);
***************
*** 659,668 ****
function delete_product()
{
! // $product_id =
$GLOBALS['HTTP_POST_VARS']['product_id'];
! $confirm = $GLOBALS['HTTP_POST_VARS']['confirm'];
if (!$confirm)
{
! $referer =
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] ?
$GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER'] : $GLOBALS['HTTP_REFERER'];
}
--- 659,668 ----
function delete_product()
{
! // $product_id = get_var('product_id',Array('POST'));
! $confirm = get_var('confirm',Array('POST'));
if (!$confirm)
{
! $referer =
get_var('HTTP_REFERER',Array('GLOBAL','SERVER'));
}
***************
*** 702,706 ****
function list_status()
{
! $lm = $GLOBALS['HTTP_POST_VARS']['lm'];
$link_data = array
--- 702,706 ----
function list_status()
{
! $lm = get_var('lm',Array('POST'));
$link_data = array
***************
*** 761,770 ****
function add_status()
{
! $status_name =
$GLOBALS['HTTP_POST_VARS']['status_name'];
$this->t->set_file(array('form' => 'status_form.tpl'));
$this->display_app_header();
! if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
$error =
$this->boinv->check_values(array('action' => 'status','status_name' =>
$status_name));
--- 761,770 ----
function add_status()
{
! $status_name = get_var('status_name',Array('POST'));
$this->t->set_file(array('form' => 'status_form.tpl'));
$this->display_app_header();
! if(get_var('submit',Array('POST')))
{
$error =
$this->boinv->check_values(array('action' => 'status','status_name' =>
$status_name));
***************
*** 789,799 ****
function edit_status()
{
! $status_id =
$GLOBALS['HTTP_POST_VARS']['status_id'] ?
$GLOBALS['HTTP_POST_VARS']['status_id'] :
$GLOBALS['HTTP_GET_VARS']['status_id'];
! $status_name =
$GLOBALS['HTTP_POST_VARS']['status_name'];
$this->t->set_file(array('form' => 'status_form.tpl'));
$this->display_app_header();
! if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
$error =
$this->boinv->check_values(array('action' => 'status','status_name' =>
$status_name,'status_id' => $status_id));
--- 789,799 ----
function edit_status()
{
! $status_id = get_var('status_id',Array('GET','POST'));
! $status_name = $get_var('status_name',Array('POST'));
$this->t->set_file(array('form' => 'status_form.tpl'));
$this->display_app_header();
! if(get_var('submit',Array('POST')))
{
$error =
$this->boinv->check_values(array('action' => 'status','status_name' =>
$status_name,'status_id' => $status_id));
***************
*** 819,823 ****
function delete_status()
{
! $status_id = $GLOBALS['HTTP_POST_VARS']['status_id'] ?
$GLOBALS['HTTP_POST_VARS']['status_id'] :
$GLOBALS['HTTP_GET_VARS']['status_id'];
$link_data = array
--- 819,823 ----
function delete_status()
{
! $status_id = get_var('status_id',Array('GET','POST'));
$link_data = array
***************
*** 827,831 ****
);
! if ($GLOBALS['HTTP_POST_VARS']['confirm'])
{
$this->boinv->delete(array('action' =>
'status', 'status_id' => $status_id));
--- 827,831 ----
);
! if(get_var('confirm',Array('POST')))
{
$this->boinv->delete(array('action' =>
'status', 'status_id' => $status_id));
Index: class.uiinvoice.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/inv/inc/class.uiinvoice.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.uiinvoice.inc.php 17 Apr 2002 20:33:52 -0000 1.5
--- class.uiinvoice.inc.php 30 Apr 2002 14:42:00 -0000 1.6
***************
*** 46,50 ****
function uiinvoice()
{
! $action = $GLOBALS['HTTP_POST_VARS']['action'] ?
$GLOBALS['HTTP_POST_VARS']['action'] : $GLOBALS['HTTP_GET_VARS']['action'];
$this->bo
= CreateObject('inv.boinvoice',True,$action);
--- 46,50 ----
function uiinvoice()
{
! $action = get_var('action',Array('GET','POST'));
$this->bo
= CreateObject('inv.boinvoice',True,$action);
***************
*** 274,280 ****
function preferences()
{
! $submit = $GLOBALS['HTTP_POST_VARS']['submit'];
! $prefs = $GLOBALS['HTTP_POST_VARS']['prefs'];
! $abid = $GLOBALS['HTTP_POST_VARS']['abid'];
if ($submit)
--- 274,280 ----
function preferences()
{
! $submit = get_var('submit',Array('POST'));
! $prefs = get_var('prefs',Array('POST'));
! $abid = get_var('abid',Array('POST'));
if ($submit)
***************
*** 449,454 ****
function edit_dist()
{
! $dist_id = $GLOBALS['HTTP_POST_VARS']['dist_id']
? $GLOBALS['HTTP_POST_VARS']['dist_id'] : $GLOBALS['HTTP_GET_VARS']['dist_id'];
! $values = $GLOBALS['HTTP_POST_VARS']['values'];
$link_data = array
--- 449,454 ----
function edit_dist()
{
! $dist_id = get_var('dist_id',Array('GET','POST'));
! $values = get_var('values',Array('POST'));
$link_data = array
***************
*** 458,467 ****
);
! if (!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
}
! if ($GLOBALS['HTTP_POST_VARS']['submit'])
{
$this->bo->save_dist($values);
--- 458,467 ----
);
! if(!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
}
! if(get_var('submit',Array('POST')))
{
$this->bo->save_dist($values);
***************
*** 552,556 ****
function delete_dist()
{
! $dist_id = $GLOBALS['HTTP_POST_VARS']['dist_id'] ?
$GLOBALS['HTTP_POST_VARS']['dist_id'] : $GLOBALS['HTTP_GET_VARS']['dist_id'];
$link_data = array
--- 552,556 ----
function delete_dist()
{
! $dist_id = get_var('dist_id',Array('GET','POST'));
$link_data = array
***************
*** 560,569 ****
);
! if (!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
}
! if ($GLOBALS['HTTP_POST_VARS']['confirm'])
{
$this->bo->delete_dist($dist_id);
--- 560,569 ----
);
! if(!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
}
! if(get_var('confirm',Array('POST')))
{
$this->bo->delete_dist($dist_id);
***************
*** 594,598 ****
function view_dist()
{
! $dist_id = $GLOBALS['HTTP_POST_VARS']['dist_id'] ?
$GLOBALS['HTTP_POST_VARS']['dist_id'] : $GLOBALS['HTTP_GET_VARS']['dist_id'];
$link_data = array
--- 594,598 ----
function view_dist()
{
! $dist_id = get_var('dist_id',Array('GET','POST'));
$link_data = array
***************
*** 602,606 ****
);
! if (!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
--- 602,606 ----
);
! if(!$dist_id)
{
Header('Location: ' .
$GLOBALS['phpgw']->link('/index.php',$link_data));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: inv/inc class.boinventory.inc.php,1.10,1.11 class.boinvoice.inc.php,1.3,1.4 class.uiinventory.inc.php,1.11,1.12 class.uiinvoice.inc.php,1.5,1.6,
Mark A Peters <address@hidden> <=