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/index.php

<?php
/*
include function library config.inc.php that facilitates functions related to configuration and
various subroutines
*/
require("config.inc.php");

/* 
session handle 
*/
if (isset($HTTP_SESSION_VARS['user'])) {
        /*retriev session variables*/
	$user = $HTTP_SESSION_VARS['user'];
} 

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

        /*
	abondon session and variables
        session_unset();
        session_destroy();
	*/

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

/*
log activity in access log database
*/
accessLog($webid, $user, $_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']);

$tbl = 'webpages';
$img = gallery($webid);

/*
start html document here
with charset=ISO-8859-1 and form enctype=multipart/form-data
which is required to enable HTTP upload feature
*/
?>
<!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
/* 
these variables store values from database
rich keywords help in higher rating of this web portal
*/
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' />
";
/*
ajax function facilitates download and rendering of 
AJAX pages. This help in reducing the HTTP request to server
*/
echo ajax();

/* 
this is a dynamic stylesheet to support custom background color
of web portal. this also help change in background image
*/
echo "<style type='text/css'>";
include "jquerycssmenu.css.inc";
echo "</style>";

/*
other style sheets take care look and feel of web portal
javascripts go here after style sheet incusion
*/
?>
<link rel='stylesheet' type='text/css' href='css/style.css' media='screen' />
<link rel='SHORTCUT ICON' href='images/icdp.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
/*
display banner content followed with dynamically generated menu
*/
echo banner($webid);
/*
call hmenu recursive function for horizontal menu links
*/
echo "<div id='myjquerymenu' class='jquerycssmenu'>";
echo hmenus($webid, $user, 0);
//<th width='80%'><img src='text2image.php?title=$title' /><br>
/*
division ajax is a place holder for ajax pages
initially it is empty
paragraph tags <p> help in resizing the text size on the web portal
*/
echo "</div>
<div id='ajax' class='ajaxpage'></div>
<table id='t2' class='watermark' width='80%' height='500' border='0'>
<tr valign='top'><td width='60%'>
<img src='$img' height='420' width='100%' title='Photo Gallery'>";
/*
photo gallery presents an image on homepage dynamically
i.e. on each reload image chages randomly

announcement stored in database with expiry date scolls one by one
from bottom to upward and on expiry auto hide is effective
*/
echo "</td><td nowrap width='40%'>
<b class='heading'>Announcements/News</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>";
/*
advertisement is running news items stored in the database
with expiry date for auto hide on expiry
*/
echo "<div class='advertisement'>".advertisements($webid)."</div>";
echo "</td></tr>";
echo "<tr><td colspan='2' class='footer'>";
/*
footer content such as standard links, disclaimer, developer info
are placed one by one from database
*/ 
echo footer($webid, $user);
echo "</td></tr></table>";
/*
end of html form and body content
*/
?>
</form>
</center>
</body>
</html>