| Current Path : /var/www/html/mmishra/indem/icdp/ |
| Current File : /var/www/html/mmishra/indem/icdp/login.php |
<?php
if ($user) {
echo "<div align='center'>
You are already logged in using the ID ($user). May <a href='inner.php?logout=1'>logout</a> here.
<br><br>
If you chose the 'Remember me' option on the login page and no longer wish to get logged in
automatically, click <a href='inner.php?logout=1&mode=forget'>Unremember me</a>.
</div>";
} else {
echo "<b>Please login here using your login ID and password.</b><br>
<input type='hidden' name='login'><br>
<input type='hidden' name='target' value='$target'>
<center><table class='login' width='200'>
<tr><td>Login ID:</td>
<td><input type='text' name='txtID' size='20' value='$user'></td>
</tr><tr><td>Password:</td>
<td><input type='password' name='txtPWD' size='20' value=''></td>
</tr><tr><td rowspan='2'><img src='images/login.jpg' width='70' height='50'></td>
<td><input type='checkbox' name='chkRem' class='input'> Remember me</td>
</tr><tr>
<td><input type='submit' name='submit' value='LOGIN' style='width: 80px'></td>
</tr>
</table>
<script>
frmStatic.txtID.focus();
</script>
</center>";
if ($target) {
$tbl = 'webpages';
$rs = mysql_query("select * from $tbl where pageid='$target'");
if ($rs) {
$o = mysql_fetch_object($rs);
if ($o->pageaccess == 'admin')
echo "<br>The page ($o->pagetitle) you are trying to access requires authentication.<br>";
}
}
}
?>