[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: brewer beer.php,1.7,1.8 edit.php,1.4,1.5 view.ph
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: brewer beer.php,1.7,1.8 edit.php,1.4,1.5 view.php,1.4,1.5 view_recipe.php,1.3,1.4 |
Date: |
Tue, 30 Apr 2002 19:38:07 -0400 |
Update of /cvsroot/phpgroupware/brewer
In directory subversions:/tmp/cvs-serv3336
Modified Files:
beer.php edit.php view.php view_recipe.php
Log Message:
Converting to get_var() for all HTTP_*_VARS.
Index: beer.php
===================================================================
RCS file: /cvsroot/phpgroupware/brewer/beer.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** beer.php 11 Sep 2001 12:38:28 -0000 1.7
--- beer.php 30 Apr 2002 23:38:05 -0000 1.8
***************
*** 24,43 ****
$DEBUG = 0;
! $action = $HTTP_POST_VARS['action'] ? $HTTP_POST_VARS['action'] :
$HTTP_GET_VARS['action'];
! $clean = $HTTP_POST_VARS['clean'] ? $HTTP_POST_VARS['clean'] :
$HTTP_GET_VARS['clean'];
! $cancel = $HTTP_POST_VARS['cancel'] ? $HTTP_POST_VARS['cancel'] :
$HTTP_GET_VARS['cancel'];
! $recalc = $HTTP_POST_VARS['recalc'] ? $HTTP_POST_VARS['recalc'] :
$HTTP_GET_VARS['recalc'];
! $save = $HTTP_POST_VARS['save'] ? $HTTP_POST_VARS['save'] :
$HTTP_GET_VARS['save'];
! $delete = $HTTP_POST_VARS['delete'] ? $HTTP_POST_VARS['delete'] :
$HTTP_GET_VARS['delete'];
! $id = $HTTP_POST_VARS['id'] ? $HTTP_POST_VARS['id'] :
$HTTP_GET_VARS['id'];
!
! $add_ingredient = $HTTP_POST_VARS['add_ingredient'] ?
$HTTP_POST_VARS['add_ingredient'] : $HTTP_GET_VARS['add_ingredient'];
! $newval = $HTTP_POST_VARS['newval'];
! $ingredients = $HTTP_POST_VARS['ingredients'];
! $malt_units = $HTTP_POST_VARS['malt_units'];
! $yeast_units = $HTTP_POST_VARS['yeast_units'];
! $hop_units = $HTTP_POST_VARS['hop_units'];
$b = CreateObject('brewer.brew');
$r = $b->recipe;
--- 24,43 ----
$DEBUG = 0;
! $action = get_var('action',Array('GET','POST'));
! $clean = get_var('clean',Array('GET','POST'));
! $cancel = get_var('cancel',Array('GET','POST'));
! $recalc = get_var('recalc',Array('GET','POST'));
! $save = get_var('save',Array('GET','POST'));
! $delete = get_var('delete',Array('GET','POST'));
! $id = get_var('id',Array('GET','POST'));
+ $add_ingredient = get_var('add_ingredient',Array('GET','POST'));
+ $newval = get_var('newval',Array('POST'));
+ $ingredients = get_var('ingredients',Array('POST'));
+ $malt_units = get_var('malt_units',Array('POST'));
+ $yeast_units = get_var('yeast_units',Array('POST'));
+ $hop_units = get_var('hop_units',Array('POST'));
+
$b = CreateObject('brewer.brew');
$r = $b->recipe;
Index: edit.php
===================================================================
RCS file: /cvsroot/phpgroupware/brewer/edit.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** edit.php 11 Sep 2001 12:38:28 -0000 1.4
--- edit.php 30 Apr 2002 23:38:05 -0000 1.5
***************
*** 20,30 ****
include('../header.inc.php');
! $id = $HTTP_GET_VARS['id'];
! $type = $HTTP_GET_VARS['type'] ? $HTTP_GET_VARS['type'] :
$HTTP_POST_VARS['type'];
! $cancel = $HTTP_POST_VARS['cancel'];
! $submit = $HTTP_POST_VARS['submit'];
! $submitnew = $HTTP_POST_VARS['submitnew'];
! $newsettings = $HTTP_POST_VARS['newsettings'];
! $vars = $HTTP_POST_VARS['vars'];
if (!$id && $type || $cancel)
--- 20,30 ----
include('../header.inc.php');
! $id = get_var('id',Array('GET'));
! $type = get_var('type',Array('POST','GET'));
! $cancel = get_var('cancel',Array('POST'));
! $submit = get_var('submit',Array('POST'));
! $submitnew = get_var('submitnew',Array('POST'));
! $newsettings = get_var('newsettings',Array('POST'));
! $vars = get_var('vars',Array('POST'));
if (!$id && $type || $cancel)
Index: view.php
===================================================================
RCS file: /cvsroot/phpgroupware/brewer/view.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** view.php 11 Sep 2001 13:08:52 -0000 1.4
--- view.php 30 Apr 2002 23:38:05 -0000 1.5
***************
*** 20,27 ****
include('../header.inc.php');
! $id = $HTTP_GET_VARS['id'] ? $HTTP_GET_VARS['id'] :
$HTTP_POST_VARS['id'];
! $type = $HTTP_GET_VARS['type'] ? $HTTP_GET_VARS['type'] :
$HTTP_POST_VARS['type'];
! $edit = $HTTP_POST_VARS['edit'];
! $cancel = $HTTP_POST_VARS['cancel'];
if (!$id && $type || $cancel)
--- 20,27 ----
include('../header.inc.php');
! $id = get_var('id',Array('POST','GET'));
! $type = get_var('type',Array('POST','GET'));
! $edit = get_var('edit',Array('POST'));
! $cancel = get_var('cancel',Array('POST'));
if (!$id && $type || $cancel)
Index: view_recipe.php
===================================================================
RCS file: /cvsroot/phpgroupware/brewer/view_recipe.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** view_recipe.php 11 Sep 2001 12:38:28 -0000 1.3
--- view_recipe.php 30 Apr 2002 23:38:05 -0000 1.4
***************
*** 20,26 ****
include('../header.inc.php');
! $id = $HTTP_GET_VARS['id'];
! $type = $HTTP_GET_VARS['type'] ? $HTTP_GET_VARS['type'] :
$HTTP_POST_VARS['type'];
! $cancel = $HTTP_POST_VARS['cancel'];
if (!$id && $type || $cancel)
--- 20,26 ----
include('../header.inc.php');
! $id = get_var('id',Array('GET'));
! $type = get_var('type',Array('POST','GET'));
! $cancel = get_var('cancel',Array('POST'));
if (!$id && $type || $cancel)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: brewer beer.php,1.7,1.8 edit.php,1.4,1.5 view.php,1.4,1.5 view_recipe.php,1.3,1.4,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: chat load.php,1.10,1.11 sendmsg.php,1.8,1.9
- Next by Date:
[Phpgroupware-cvs] CVS: bookmarks maintain.php,1.28,1.29
- Previous by thread:
[Phpgroupware-cvs] CVS: chat load.php,1.10,1.11 sendmsg.php,1.8,1.9
- Next by thread:
[Phpgroupware-cvs] CVS: bookmarks maintain.php,1.28,1.29
- Index(es):