43 lines
571 B
PHP
43 lines
571 B
PHP
<?
|
|
|
|
|
|
include("path.php");
|
|
include(BASE."include/"."incl.php");
|
|
include(BASE."include/"."tableve.php");
|
|
include(BASE."include/"."qclass.php");
|
|
|
|
if(!loggedin() || !havepriv("admin"))
|
|
{
|
|
errorpage();
|
|
exit;
|
|
}
|
|
else
|
|
{
|
|
global $admin_mode;
|
|
$admin_mode = 1;
|
|
}
|
|
|
|
apidb_header("Edit Category");
|
|
|
|
$t = new TableVE("edit");
|
|
|
|
|
|
if($HTTP_POST_VARS)
|
|
{
|
|
$t->update($HTTP_POST_VARS);
|
|
}
|
|
else
|
|
{
|
|
$table = "appCategory";
|
|
$query = "SELECT * FROM $table WHERE catId = $catId";
|
|
|
|
if(debugging())
|
|
echo "$query <br><br>\n";
|
|
|
|
$t->edit($query);
|
|
}
|
|
|
|
apidb_footer();
|
|
|
|
?>
|