]> git.sur5r.net Git - contagged/blob - login.php
Dutch language file
[contagged] / login.php
1 <?
2   require_once('init.php');
3
4   $msg = $lang['msg_login'];
5   if(isset($_REQUEST['username'])){
6     if (do_ldap_bind($_REQUEST['username'],$_REQUEST['password'])){
7       //forward to next page
8       if(!empty($_SESSION['ldapab']['lastlocation'])){
9         header('Location: '.$_SESSION['ldapab']['lastlocation']);
10       }else{
11         header('Location: index.php');
12       }
13       exit;
14     }else{
15       $msg = $lang['msg_loginfail'];;
16     }
17   }
18
19   //prepare templates
20   tpl_std();
21   $smarty->assign('msg',$msg);
22   //display templates
23   header('Content-Type: text/html; charset=utf-8');
24   $smarty->display('login.tpl');
25 ?>