Remove duplicated links to add a new version

Remove unused script
This commit is contained in:
Jonathan Ernst
2005-01-29 17:09:27 +00:00
committed by WineHQ
parent 8bc52cfe63
commit b0f33ca160
2 changed files with 2 additions and 52 deletions

View File

@@ -1,46 +0,0 @@
<?php
include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/"."tableve.php");
if(!havepriv("admin"))
{
errorpage("Insufficient Privileges!");
exit;
}
else
{
global $admin_mode;
$admin_mode = 1;
}
apidb_header("Add Application Version");
$t = new TableVE("create");
if(!$_REQUEST['appId'])
$_REQUEST['appId'] = 0;
if($_POST)
{
$t->update($_POST);
}
else
{
$table = "appVersion";
$query = "INSERT INTO $table VALUES(0, ".$_REQUEST['appId'].", 'NONAME', null, null, null, 0.0, 0.0)";
query_appdb("DELETE FROM $table WHERE versionName = 'NONAME'");
if(debugging())
echo "$query <br /><br />\n";
$t->create($query, $table, "versionId");
}
echo html_back_link(1,BASE."appview.php?appId=".$_REQUEST['appId']);
apidb_footer();
?>

View File

@@ -297,7 +297,7 @@ if($appId && !$versionId)
if($_SESSION['current']->is_super_maintainer($appId) || havepriv("admin"))
{
echo ' <form method="post" name="edit" action="admin/editAppFamily.php"><input type="hidden" name="appId" value="'.$appId.'"><input type="submit" value="Edit App" class="button"></form>';
echo '<form method="post" name="message" action="admin/addAppVersion.php?appId='.$_REQUEST['appId'].'">';
echo '<form method="post" name="message" action="appsubmit.php?appId='.$_REQUEST['appId'].'&apptype=2">';
echo '<input type=submit value="Add Version" class="button">';
echo '</form>';
}
@@ -316,11 +316,7 @@ if($appId && !$versionId)
echo " </td></tr>\n";
echo " <tr><td>\n";
echo " <center><a href='appsubmit.php?appId=$data->appId&apptype=2'> Submit New Version </a> &nbsp;<center>\n";
echo " </td></tr>\n";
echo " </td></tr>\n";
echo " </td></tr>\n";
echo " </table>\n"; /* close the table that contains the whole left hand side of the upper table */