server()) {
metaRefresh("../login.php");
exit;
}
// empty list of attribute types
$_SESSION['profile_types'] = array();
// print header
echo $_SESSION['header'];
echo "
\n\n";
echo "
\n";
// check if account type is valid
$type = $_GET['type'];
if (!(($type == 'user') || ($type == 'group') || ($type == 'host'))) meta_refresh('profilemain.php');
// get module options
$options = getProfileOptions($type);
// load old profile if needed
$old_options = array();
if ($_GET['edit']) {
if ($type == "user") $old_options = loadUserProfile($_GET['edit']);
else if ($type == "group") $old_options = loadGroupProfile($_GET['edit']);
else if ($type == "host") $old_options = loadHostProfile($_GET['edit']);
}
// display formular
echo ("