make use of $_POST and $_GET instead of $HTTP_POST_VARS and $HTTP_GET_VARS which are deprecated
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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?)
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,7 @@ apidb_header("Update Rating");
|
||||
|
||||
apidb_session_start();
|
||||
|
||||
rating_update($HTTP_GET_VARS);
|
||||
rating_update($_GET);
|
||||
|
||||
apidb_footer();
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ redirectref();
|
||||
|
||||
apidb_header("Testing");
|
||||
|
||||
vote_update($HTTP_GET_VARS);
|
||||
vote_update($_GET);
|
||||
|
||||
apidb_footer();
|
||||
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user