Set account var if GET['account']
This commit is contained in:
parent
5ca91fe7ae
commit
bb37f0010b
|
@ -10,15 +10,13 @@ if (empty($_SESSION['login'])) {
|
||||||
try {
|
try {
|
||||||
$server = new LdapServer($_SESSION['login']);
|
$server = new LdapServer($_SESSION['login']);
|
||||||
if (!empty($_GET['domain'])) {
|
if (!empty($_GET['domain'])) {
|
||||||
try {
|
|
||||||
$domain = new LdapDomain($server, Html::clean($_GET['domain']));
|
$domain = new LdapDomain($server, Html::clean($_GET['domain']));
|
||||||
} catch (Exception $e_d) {
|
if (!empty($_GET['account'])) {
|
||||||
print '<div class="alert alert-danger" role="alert">'.$e_d->getMessage();
|
$account = new LdapAccount($domain, Html::clean($_GET['account']));
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception $e_s) {
|
} catch (Exception $e) {
|
||||||
print '<div class="alert alert-danger" role="alert">'.$e_s->getMessage().'</div>';
|
print '<div class="alert alert-danger" role="alert">'.$e->getMessage().'</div>';
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue