Location: PHPKode > projects > Wexplorer > weXplorer/login.php
<?php
require_once ('config.inc.php');
require_once ('session.php');
require_once (ACCESS_MANAGER.'.php');

if (isset ($_POST['login'])) {
	if (!login($_POST['login'], $_POST['password'])) {
		define('falseLogin', true);
	} else {
		echo '
 <html>
<head>
<title>Welcome</title>
<script language="JavaScript" type="text/javascript" src="'.ROOT_URL.'/js/popup.js"></script>  
<!-- START LIST VIEW STYLES AND SCRIPTS -->
<link type="text/css" rel="StyleSheet" href="'.ROOT_URL.'/css/sortabletable.css" />
<script src="'.ROOT_URL.'/js/sorttable.js"></script>
<script src="'.ROOT_URL.'/js/spook.js"></script>
<!-- END LIST VIEW STYLES AND SCRIPTS -->  
</head>
<body class="loginbody">

	<script language="JavaScript" type="text/javascript">	
	 if(parent.header != null){ 
		parent.header.location.href = "header.php?nochache='.time().'";
		parent.tree.document.cache = new Object();
		parent.tree.reget();	
  	} else { alert("no header");
		location.href="'.ROOT_URL.'";
	}
	</script>
</body>
</html>
';
		die();
	}
}
?>      
 <html>
<head>
<title>Welcome</title>
<script language="JavaScript" type="text/javascript" src="<?php echo ROOT_URL;?>/js/popup.js"></script>  
<!-- START LIST VIEW STYLES AND SCRIPTS -->
<link type="text/css" rel="StyleSheet" href="<?php echo ROOT_URL;?>/css/sortabletable.css" />
<script src="<?php echo ROOT_URL;?>/js/sorttable.js"></script>
<script src="<?php echo ROOT_URL;?>/js/spook.js"></script>
<!-- END LIST VIEW STYLES AND SCRIPTS -->  
</head>
<body class="loginbody">
<br/><br/><br/><br/>
<div  align="center" width="100%">
<form name="login" method="post" action="#">
  <input type="hidden" name="loginout" value="login" /> 
  <table width="400" border="0" cellpadding="0" cellspacing="10">

    <tr> 
      <td colspan="3">Log in to your personalised account.<br/>
      Enter your login and your password.<br/><br/>     
<?php
     if (isset ($_POST['logon_error'])) {
	echo $_POST['logon_error'];
}
?>
     </td>
    </tr>
    <tr> 
      <td>Login: </td>
      <td><input id="login" name="login" type="text"></td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td>Password*: </td>
      <td> <input name="password" type="password" ></td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input name="image" type="image" src="<?php echo ROOT_URL;?>/images/login.gif"  border="0"></td>
    </tr>

    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><img style="cursor:pointer;" onclick="if(parent.tree!=null){parent.tree.resetLastFolder();}return false;" src="<?php echo ROOT_URL;?>/images/cancel.gif">&nbsp;</td>
    </tr>


    <tr>
      <td colspan="3" bgcolor="#6593b5" height="1"><img src="<?php echo ROOT_URL;?>/images/trans.gif"/ height="1"></td>
    </tr>
  </table>
<br>
<br>
<br>
<br>
<br>
  <br>
 </form>
</div>
<script language="JavaScript" type="text/javascript">
  if(document.getElementById('login')!=null)
  	document.getElementById('login').focus();
  if(parent.header != null){
  	//alert("framed");
  	document.forms[0].action="?framed";
  }
</script>
</body>
</html>
Return current item: Wexplorer