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/addAppFamily.php

37 lines
642 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");
//check for admin privs
if(!havepriv("admin"))
2004-03-15 16:22:00 +00:00
{
errorpage("Insufficient Privileges!");
exit;
}
apidb_header("Add Application Family");
$t = new TableVE("create");
if($_POST)
2004-03-15 16:22:00 +00:00
{
$t->update($_POST);
2004-03-15 16:22:00 +00:00
}
else
{
$table = "appFamily";
$query = "INSERT INTO $table VALUES(0, 'NONAME', 0, null, null, null, $catId)";
mysql_query("DELETE FROM $table WHERE appName = 'NONAME'");
if(debugging()) { echo "<p align=center><b>query:</b> $query </p>"; }
$t->create($query, $table, "appId");
}
apidb_footer();
?>