server()) {
metaRefresh("../login.php");
exit;
}
// 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_profile = 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 ("