Replace <? with <?php
Use registered global vars
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?
|
<?php
|
||||||
|
|
||||||
include("path.php");
|
include("path.php");
|
||||||
include(BASE."include/"."incl.php");
|
include(BASE."include/"."incl.php");
|
||||||
@@ -19,8 +19,8 @@ apidb_header("Add Application Version");
|
|||||||
|
|
||||||
$t = new TableVE("create");
|
$t = new TableVE("create");
|
||||||
|
|
||||||
if(!$appId)
|
if(!$_REQUEST['appId'])
|
||||||
$appId = 0;
|
$_REQUEST['appId'] = 0;
|
||||||
|
|
||||||
if($_POST)
|
if($_POST)
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ if($_POST)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$table = "appVersion";
|
$table = "appVersion";
|
||||||
$query = "INSERT INTO $table VALUES(0, $appId, 'NONAME', null, null, null, 0.0, 0.0)";
|
$query = "INSERT INTO $table VALUES(0, ".$_REQUEST['appId'].", 'NONAME', null, null, null, 0.0, 0.0)";
|
||||||
|
|
||||||
query_appdb("DELETE FROM $table WHERE versionName = 'NONAME'");
|
query_appdb("DELETE FROM $table WHERE versionName = 'NONAME'");
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ else
|
|||||||
$t->create($query, $table, "versionId");
|
$t->create($query, $table, "versionId");
|
||||||
}
|
}
|
||||||
|
|
||||||
echo html_back_link(1,BASE."appview.php?appId=$appId");
|
echo html_back_link(1,BASE."appview.php?appId=".$_REQUEST['appId']);
|
||||||
|
|
||||||
apidb_footer();
|
apidb_footer();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user