| Current Path : /var/www/html/mmishra/indem/newsflash/ |
| Current File : /var/www/html/mmishra/indem/newsflash/session.php |
<HTML>
<HEAD>
<TITLE>INDEM - IIITA Network Development, Engineering & Management</TITLE>
<meta name="author" content="INDEM" />
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD> <BODY><center>
<table width="700" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor=white><td colspan="7" align="center">
<img src="images/indem_logo.jpg" alt="" width="700" height="130">
</td></tr>
<tr bgcolor=white>
<th width='16%'><a href="/">INDEMICA</a></th>
<th width='16%'><a href="?pg=network">Network</a></th>
<th width='18%'><a href="?pg=servers">Servers</a></th>
<th width='18%'><a href="?pg=services">Services</a></th>
<th width='16%'><a href="?pg=software">Software</a></th>
<th width='16%'><a href="?pg=intercom">Intercom</a></th>
</tr><tr><td colspan='6' align='center'>
<marquee height=20 width=700 scrollamount=2 scrolldelay=10 direction=left onmouseover="this.stop()" onmouseout="this.start()">
Open-LDAP, Proxy, Mail, WWW, Firewall, DNS, NFS, Router, NAS, IP-SAN, Profile etc.
</marquee>
</td></tr>
<tr valign='top' height="500"><td colspan='6'>
<form method='post' action="<?echo $PHP_SELF?>">
<?php
include "functions.inc";
$pg = $_REQUEST["pg"];
$submit = $_POST["submit"];
session_start();
if (isset($_SESSION["uid"]) && $pg == 'logout') {
session_destroy();
$uid = ''; $pg = '';
} else if ($submit == 'LOGIN') {
if (authenticate($_REQUEST["loginid"], $_REQUEST["passwd"]) == "OK") {
$_SESSION["uid"] = $_REQUEST["loginid"];
session_register("uid");
} else {
echo "<b id='alert'>Sorry</b> invalid login, try again but not again & again.<br>";
}
}
if (isset($_SESSION["uid"])) $uid = $_SESSION["uid"];
//open requested page
if (!$pg) $pg = 'main';
include("class.phpmailer.php");
include "$pg.inc";
if ($uid) echo "<hr><center>User [ $uid ] logged in. Please <a href='?pg=logout'>Logout</a> here</center>";
echo "<input type='hidden' name='pg' value='$pg'>";
?>
</td></tr></table>
</form>
<b><center>INDEM @ IIITA</center></b>
</body>
</html>