2 require_once('init.php');
4 $msg = $lang['msg_login'];
5 if(isset($_REQUEST['username'])){
6 if (do_ldap_bind($_REQUEST['username'],$_REQUEST['password'])){
8 if(!empty($_SESSION['ldapab']['lastlocation'])){
9 header('Location: '.$_SESSION['ldapab']['lastlocation']);
11 header('Location: index.php');
15 $msg = $lang['msg_loginfail'];;
21 $smarty->assign('msg',$msg);
23 header('Content-Type: text/html; charset=utf-8');
24 $smarty->display('login.tpl');