This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/admin/addAppVersion.php

47 lines
806 B
PHP
Raw Normal View History

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