changed start condition
This commit is contained in:
parent
fa1adc143a
commit
a026c9977d
|
@ -54,7 +54,11 @@ if (isset($_GET['DN'])) {
|
||||||
if (isset($val)) $_SESSION['account']->$key = $val;
|
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
|
switch ($_POST['select']) { // Select which part of page should be loaded and check values
|
||||||
// general = startpage, general account paramters
|
// general = startpage, general account paramters
|
||||||
|
|
|
@ -49,6 +49,11 @@ if (isset($_GET['DN'])) {
|
||||||
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
|
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
|
switch ($_POST['select']) { // Select which part of page should be loaded and check values
|
||||||
|
|
Loading…
Reference in New Issue