X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=login.php;h=5ea09ea7379485c66b4aa5a8d0f57f7011689bef;hb=3f7e9f939d0f0ab92ed49bc783292dd27f4a83af;hp=2bf41bcceaf89a7ca24f0b11ac5e8616c9abe149;hpb=77c283456020d1fda4bd127badfac238491edf78;p=contagged diff --git a/login.php b/login.php index 2bf41bc..5ea09ea 100644 --- a/login.php +++ b/login.php @@ -1,25 +1,41 @@ - array ('organizationalUnit','top'), + 'ou' => $match[1])); + } + } + + //forward to next page + if(!empty($_SESSION['ldapab']['lastlocation'])){ + header('Location: '.$_SESSION['ldapab']['lastlocation']); + }else{ + header('Location: index.php'); + } + exit; }else{ - $msg = $lang[msg_loginfail];; + $msg = $lang['msg_loginfail'];; } - } +} + +//prepare templates +tpl_std(); +$smarty->assign('msg',$msg); +//display templates +header('Content-Type: text/html; charset=utf-8'); +$smarty->display('login.tpl'); - //prepare templates - tpl_std(); - $smarty->assign('msg',$msg); - //display templates - header('Content-Type: text/html; charset=utf-8'); - $smarty->display('login.tpl'); -?>