| Current Path : /var/www/html/mmishra/mm/ada/ |
| Current File : /var/www/html/mmishra/mm/ada/login.php |
<?php
if ($user) { ?>
<div align=center>
You are already logged in using the ID <?=$user?>.<br>
Go to the <a href='inner.php?conf=my'>My ADA</a> page or <a href='inner.php?logout=1'>logout</a>.
<br><br>
If you chose the 'Remember me' option on the login page,<br> and no longer wish to get logged in
automatically, click on the following link:<br>
<a href="inner.php?logout=1&mode=forget">Unremember me</a>
</div>
<? exit; } ?>
<br>
<br><b>Please login here using your login ID and password.</b><br>
<input type='hidden' name='login' value='1'>
<input type='hidden' name='target' value='<?=$target?>'>
<table border=0 width="500px" class='normal'>
<tr><td width="100px">Login ID:</td>
<td><input type='text' name='txtID' size='20' class='input' value='<?=htmlsafe($txtID)?>'></td>
</tr><tr><td width="100px">Password:</td>
<td><input type='password' name='txtPWD' size='20' class='input' value='<?=htmlsafe($txtPWD)?>'</td>
</tr><tr><td width="100px"> </td>
<td><input type='checkbox' name='chkRem' class='input'> Remember me</td>
</tr><tr><td width="100px"> </td>
<td><input type='submit' name='submit' value='LOGIN' style='width:80px'></td>
</tr>
</table>
<br><br>
<script>
frmStatic.txtID.focus();
</script>
<?
if ($target) {
$o = mysql_fetch_object(mysql_query("select * from webpages where id='$target'"));
if ($o->access_scope == 'admin') {
echo "<br>The page you are trying to access (<b>$o->title</b>) requires authentication.</u><br>";
}
}
?>