Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/mm/ada/icdp/
Upload File :
Current File : /var/www/html/mmishra/mm/ada/icdp/\

<?php
//include function library
require("config.inc.php");
require("functions.inc.php");

if (isset($HTTP_SESSION_VARS['user'])) {
	//check the session status
        $user = $HTTP_SESSION_VARS['user'];
        $role = $HTTP_SESSION_VARS['role'];
} else if (isset($HTTP_SESSION_VARS['auto_login'])) {
	//check the auto login
        $cred = explode(" ", $HTTP_SESSION_VARS['auto_login']);
        $txtID = $cred[0];
        $txtPWD = base64_decode($cred[1]);
        $use_cookie = 1;
}

//check for sing out signal
if (isset($_REQUEST['logout'])) {
        //session information        
        $sessionip = $_SERVER["REMOTE_ADDR"];
	$tbl = 'sessions';
	mysql_query("insert into $tbl(webid,userid,sessionid,sessionip,action,datesession)
	values('$webid','$user','$sessionid','$sessionip','logout',now())");

        //abondon session
        //session_unset();
        //session_destroy();

        //reset session variables 
	$HTTP_SESSION_VARS['user'] = ""; 
	$HTTP_SESSION_VARS['role'] = "";
        $user = ""; 
	$role = "";
}

//clear session information after 20 minutes
$tbl = 'webusers';
//if (!$user) mysql_query("update $tbl set sessionid='',sessionip='',datesession='' where webid='$webid' and timediff(now(),datesession)>'00:20:00'"); 
//log activity in access log database
accessLog($webid, $user, $_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']);
$tbl = 'webpages';

$img = gallery($webid);
?>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' 'http://www.w3.org/TR/REC-html40/loose.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<?php
echo "<head><title>[$webid] $title</title>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' />
<meta name='author' content='$author' />
<meta name='keywords' content='$keywords' />
<meta name='description' content='$description' />
";
echo ajax();
echo "<style type='text/css'>";
include "jquerycssmenu.css.inc";
echo "</style>";
//echo "<style type='text/css'> @variables { icdpbg: $bgcolor; } </style>";
?>
<link rel='stylesheet' type='text/css' href='css/style.css' media='screen' />
<!--link rel='stylesheet' type='text/css' href='css/blue/jquerycssmenu.css' /-->
<link rel='SHORTCUT ICON' href='images/uprtou.ico'>

<!--[if lte IE 7]>
<style type='text/css'> 
html .jquerycssmenu{height: 1%;} /*for IE7 and below*/ 
</style>
<![endif]-->

<script type='text/javascript' src='js/white/jquery.min.js'></script>
<script type='text/javascript' src='js/white/jquerycssmenu.js'></script>
<script type='text/javascript' src='js/mm.js'></script>
<script type='text/javascript' src='js/fontsizer.js'></script>
</head>
<body id='b'>
<center>
<form name='frm' action='admin.php?conf=<?php echo $conf;?>' method='post' enctype='multipart/form-data'>
<?php
echo banner($webid);
echo "<div id='myjquerymenu' class='jquerycssmenu'>";
echo hmenus($webid, $user, $role, 0);
//<th width='80%'><img src='text2image.php?title=$title' /><br>
echo "</div>
<div id='ajax' class='ajaxpage'></div>
<table id='t2' width='80%' height='500' border='0' background='$webid/images/bg1.jpg'>
<tr valign='top'><td width='60%'>
<img src='$img' height='420' width='100%' title='Photo Gallery'>";
//echo gallery($webid);
echo "</td><td nowrap width='40%'>
<b class='heading'>Announcements</b>
<b class='heading'>News</b> <b class='heading'>Events</b> 
<img src='images/search.jpg' width='30' height='20' />
<input type='text' id='query' name='query' size='15' value='search' 
onfocus=\"clearText(this)\" onblur=\"putText(this)\" 
onkeyup=\"showPage('search',this.value,'$webid')\">
<a href=\"javascript:decreaseFontSize();\"><img src='images/font-dec.gif' border='0'></a>  
<a href=\"javascript:increaseFontSize();\"><img src='images/font-inc.gif' border='0'></a>
";
//show announcements
echo "<div class='announcement'>".announcements($webid)."</div>";
echo "<div class='advertisement'>".advertisements($webid)."</div>";
echo "</td></tr>";
echo "<tr><td colspan='2' class='footer'>";
echo footer($webid, $user, $role);
echo "</td></tr></table>";

?>
</form>
</center>
</body>
</html>