require_once $_SERVER['DOCUMENT_ROOT'] . '/../classes/categories.php'; $Title = 'Category maintenance'; $CategoryName = pg_escape_string($_REQUEST['category']); $Category = new Category($db); $CategoryID = $Category->FetchByName($CategoryName); if (!$CategoryID) { die("I don't know that category: {$CategoryName}"); } if ($Category->IsPrimary() == 't') { $IsPrimary = 1; } else { $IsPrimary = 0; } if (isset($_REQUEST['update'])) { $Category->{description} = pg_escape_string($_REQUEST['description']); $Category->UpdateDescription(); } freshports_Start($Title . ' - ' . $CategoryName, 'freshports - new ports, applications', 'FreeBSD, index, applications, ports'); ?> <TABLE WIDTH="<?php echo $TableWidth; ?> " BORDER="0" ALIGN="center"> <TR><TD VALIGN="top" WIDTH="100%"> <TABLE WIDTH="100%" BORDER="0"> <TR> <?php echo freshports_PageBannerText($Title . ' - ' . $CategoryName); ?> </TR>