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']) {
$old_options = loadAccountProfile($_GET['edit'], $type);
}
// display formular
echo ("