// Author: Jon Belanger
// Date: Nov. 2004
// comments: linked to in index.php
// start the session
session_start();
include ("functions.php");
include("gui.php");
// check if the session username or seclevel are not set
// this would occur if the user was trying to get here without logging in
if (! $_SESSION['username'] | ! $_SESSION['seclevel']) {
redirect("logout.php");
exit(1);
}
// only admins can manage types
if ($_SESSION['seclevel']!="admin") {
redirect("logout.php");
exit(1);
}
// send HTML meta and ui headers to the browser
display_meta($_SESSION['version']." - Manage Types");
display_header("Manage Types");
?>
Main - Manage Types
|
if ($_GET['error']) {
echo "** ".$_GET['error'];
} else {
echo " ";
}
?>
|
Add a New Type:
'*' denotes a required attribute
// get list of types from the types.conf file
$types=get_type_list($dir."/types.conf",2);
// if any types received display them
if ($types) {
for ($i=0;$i";
echo "".$types[$i][0]." | ";
echo "".$types[$i][1]." | ";
echo "delete type | ";
echo "list members of type | ";
echo "";
}
}
?>