diff --git a/admin/addAppFamily.php b/admin/addAppFamily.php index af19227..b7e8b55 100644 --- a/admin/addAppFamily.php +++ b/admin/addAppFamily.php @@ -16,9 +16,9 @@ apidb_header("Add Application Family"); $t = new TableVE("create"); -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/admin/addAppVersion.php b/admin/addAppVersion.php index aa9cf3a..9ce6af5 100644 --- a/admin/addAppVersion.php +++ b/admin/addAppVersion.php @@ -24,9 +24,9 @@ $t = new TableVE("create"); if(!$appId) $appId = 0; -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/admin/addCategory.php b/admin/addCategory.php index e9bf030..d735e0d 100644 --- a/admin/addCategory.php +++ b/admin/addCategory.php @@ -20,9 +20,9 @@ apidb_header("Add Application Category"); $t = new TableVE("create"); -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/admin/addVendor.php b/admin/addVendor.php index c5c1193..fdd77ac 100644 --- a/admin/addVendor.php +++ b/admin/addVendor.php @@ -22,9 +22,9 @@ apidb_header("Add Vendor"); $t = new TableVE("create"); -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/admin/editCategory.php b/admin/editCategory.php index d073c3f..ade6c7d 100644 --- a/admin/editCategory.php +++ b/admin/editCategory.php @@ -21,9 +21,9 @@ apidb_header("Edit Category"); $t = new TableVE("edit"); -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/admin/editVendor.php b/admin/editVendor.php index aafc717..376d97a 100644 --- a/admin/editVendor.php +++ b/admin/editVendor.php @@ -21,9 +21,9 @@ apidb_header("Edit Vendor Information"); $t = new TableVE("edit"); -if($HTTP_POST_VARS) +if($_POST) { - $t->update($HTTP_POST_VARS); + $t->update($_POST); } else { diff --git a/edituser.php b/edituser.php index 563485e..daffbfb 100644 --- a/edituser.php +++ b/edituser.php @@ -29,7 +29,7 @@ if(!havepriv("admin")) global $ext_username, $ext_password1, $ext_password2, $ext_realname, $ext_email, $ext_hasadmin; -if($HTTP_POST_VARS) +if($_POST) { if ($ext_password == $ext_password2) { diff --git a/include/tableve.php b/include/tableve.php index a360d76..1130a4a 100644 --- a/include/tableve.php +++ b/include/tableve.php @@ -389,8 +389,8 @@ class TableVE { 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 " * multiple entries with multiple fields in multiple tables (get it?) */ diff --git a/updaterating.php b/updaterating.php index db8b231..e7ca27a 100644 --- a/updaterating.php +++ b/updaterating.php @@ -11,7 +11,7 @@ apidb_header("Update Rating"); apidb_session_start(); -rating_update($HTTP_GET_VARS); +rating_update($_GET); apidb_footer(); diff --git a/updatevote.php b/updatevote.php index 36985e2..6cc1d81 100644 --- a/updatevote.php +++ b/updatevote.php @@ -8,7 +8,7 @@ redirectref(); apidb_header("Testing"); -vote_update($HTTP_GET_VARS); +vote_update($_GET); apidb_footer(); diff --git a/votestats.php b/votestats.php index ed6d928..e9a2857 100644 --- a/votestats.php +++ b/votestats.php @@ -9,7 +9,7 @@ $topNumber = 25; $categoryId = "any"; /* default to all categories */ /* 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['categoryId'])) $categoryId = $_POST['categoryId'];