make use of $_POST and $_GET instead of $HTTP_POST_VARS and $HTTP_GET_VARS which are deprecated

This commit is contained in:
Jonathan Ernst
2004-12-19 17:43:46 +00:00
committed by WineHQ
parent 31459341ef
commit 8968a68033
11 changed files with 18 additions and 18 deletions

View File

@@ -16,9 +16,9 @@ apidb_header("Add Application Family");
$t = new TableVE("create"); $t = new TableVE("create");
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -24,9 +24,9 @@ $t = new TableVE("create");
if(!$appId) if(!$appId)
$appId = 0; $appId = 0;
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -20,9 +20,9 @@ apidb_header("Add Application Category");
$t = new TableVE("create"); $t = new TableVE("create");
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -22,9 +22,9 @@ apidb_header("Add Vendor");
$t = new TableVE("create"); $t = new TableVE("create");
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -21,9 +21,9 @@ apidb_header("Edit Category");
$t = new TableVE("edit"); $t = new TableVE("edit");
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -21,9 +21,9 @@ apidb_header("Edit Vendor Information");
$t = new TableVE("edit"); $t = new TableVE("edit");
if($HTTP_POST_VARS) if($_POST)
{ {
$t->update($HTTP_POST_VARS); $t->update($_POST);
} }
else else
{ {

View File

@@ -29,7 +29,7 @@ if(!havepriv("admin"))
global $ext_username, $ext_password1, $ext_password2, $ext_realname, $ext_email, $ext_hasadmin; global $ext_username, $ext_password1, $ext_password2, $ext_realname, $ext_email, $ext_hasadmin;
if($HTTP_POST_VARS) if($_POST)
{ {
if ($ext_password == $ext_password2) if ($ext_password == $ext_password2)
{ {

View File

@@ -389,8 +389,8 @@ class TableVE {
return null; return null;
} }
/* /**
* update() expects $HTTP_POST_VARS as argument * update() expects $_POST as argument
* this is where things are getting kinda complex, here we update " * this is where things are getting kinda complex, here we update "
* multiple entries with multiple fields in multiple tables (get it?) * multiple entries with multiple fields in multiple tables (get it?)
*/ */

View File

@@ -11,7 +11,7 @@ apidb_header("Update Rating");
apidb_session_start(); apidb_session_start();
rating_update($HTTP_GET_VARS); rating_update($_GET);
apidb_footer(); apidb_footer();

View File

@@ -8,7 +8,7 @@ redirectref();
apidb_header("Testing"); apidb_header("Testing");
vote_update($HTTP_GET_VARS); vote_update($_GET);
apidb_footer(); apidb_footer();

View File

@@ -9,7 +9,7 @@ $topNumber = 25;
$categoryId = "any"; /* default to all categories */ $categoryId = "any"; /* default to all categories */
/* process the post variables to override the default settings */ /* process the post variables to override the default settings */
if($HTTP_POST_VARS) if($_POST)
{ {
if(isset($_POST['topNumber'])) $topNumber = $_POST['topNumber']; if(isset($_POST['topNumber'])) $topNumber = $_POST['topNumber'];
if(isset($_POST['categoryId'])) $categoryId = $_POST['categoryId']; if(isset($_POST['categoryId'])) $categoryId = $_POST['categoryId'];