include("path.php"); include(BASE."include/"."incl.php"); include(BASE."include/"."tableve.php"); include(BASE."include/"."qclass.php"); //check for admin privs if(!loggedin() || (!havepriv("admin")) ) { errorpage("Insufficient Privileges!"); exit; } apidb_header("Add Application Family"); $t = new TableVE("create"); if($HTTP_POST_VARS) { $t->update($HTTP_POST_VARS); } 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 "
query: $query
"; } $t->create($query, $table, "appId"); } apidb_footer(); ?>