changed start condition

This commit is contained in:
katagia 2003-09-12 12:41:56 +00:00
parent fa1adc143a
commit a026c9977d
2 changed files with 10 additions and 1 deletions

View File

@ -54,7 +54,11 @@ if (isset($_GET['DN'])) {
if (isset($val)) $_SESSION['account']->$key = $val;
}
}
if (count($_POST)==0) {
$_SESSION['account'] = loadGroupProfile('default');
$_SESSION['account'] ->type = 'group';
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
}
switch ($_POST['select']) { // Select which part of page should be loaded and check values
// general = startpage, general account paramters

View File

@ -49,6 +49,11 @@ if (isset($_GET['DN'])) {
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
}
}
if (count($_POST)==0) {
$_SESSION['account'] = loadHostProfile('default');
$_SESSION['account'] ->type = 'host';
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
}
switch ($_POST['select']) { // Select which part of page should be loaded and check values