Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/icdp/
Upload File :
Current File : /var/www/html/mmishra/indem/icdp/index.php

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

//connect database
dbConnect();

//parse url for incoming parameter
$conf = $_REQUEST["conf"];
$target = $_REQUEST["target"];

//initialize session variables and session
$user = ""; $role = ""; $use_cookie = 0;
session_start();

//check for sign out
if (isset($_REQUEST['logout'])) {
	//clear session information
	$tbl = 'webaccounts';
	mysql_query("update $tbl set sessionid='',sessionip='',datesession='' where loginid='$user'"); 
        
	//abondon session
	session_unset();
        session_destroy();
        $HTTP_SESSION_VARS['user'] = ""; $HTTP_SESSION_VARS['role'] = "";
        
	//reset session variables
	$user = ""; $role = "";
        if ($mode == "forget") setcookie("auto_login", "", time()-3600);
        //header("Location: index.php");

} if (isset($HTTP_SESSION_VARS['user'])) {
//check the session status
        $user = $HTTP_SESSION_VARS['user'];
        $role = $HTTP_SESSION_VARS['role'];

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

//clear session information after 20 minutes
$tbl = 'webaccounts';
mysql_query("update $tbl set sessionid='',sessionip='',datesession='' where timediff(now(),datesession)>'00:20:00'"); 
//log activity in access log database
accesslog($user, $_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']);
?>

<!--start html coding and content delivery-->
<!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html onmousemove="window.status='ICDP'" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<!--get parameter values in respective sections-->
<title><?php echo parameter('organization'); ?></title>
<!--meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="<?php echo parameter('webmaster'); ?>" />
<meta name="keywords" content="<?php echo parameter('keywords'); ?>" />
<meta name="description" content="<?php echo parameter('description'); ?>" />

<!--link stylesheets-->
<link href="css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/dropdown/themes/flickr.com/default.ultimate.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />

<!--include java scripts-->
<!--[if lt IE 7]>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.dropdown.js"></script>
<![endif]-->

<!--ajax & flash feature-->
<?php
echo ajax();
echo flash();
?>

</head>
<body alink='#0063dc' vlink='#0063dc' onload="document.f.q.focus();">
<!--focus on search box-->
<form name="f" action="inner.php?conf=<?=$conf?>" method="post" enctype="multipart/form-data"> 
<div class='search'>Search content for 
<input type='text' id='q' name='q' size='20' onkeyup="showPage(this.value)">
</div>

<!--show banner and menu-->
<?php echo banner() ?>
<div class='menus'> <?php echo menus($user, $role, 0); ?> </div>
<!--division to show searched result-->
<div class='content'>
<span id="search_result" class="result"></span>
<br>
<table align='left' width='100%' border='0'>
<tr height='300' valign='top' style='font-size: small'><td width='30%' align='left' 
onmouseover="this.style.border='dashed red 1pt'" onmouseout="this.style.border='solid white 0pt'">
<!--scroll announcement-->
<?php echo announcements($role); ?>
</td><td width='40%' align='center' nowrap>
<!--show photo gallery and oragnization details-->
<?php echo gallery(); ?> 
<br><br><br>
<div class='address' onmouseover="this.style.color='red'" onmouseout="this.style.color='black'">
<?php
echo parameter('organization') . '<br>';
echo parameter('address') . '<br>';
echo parameter('email') . '<br>';
echo parameter('telephone') . '<br>';
?>
</div>
</td><td width='30%' align='right'	
onmouseover="this.style.border='dashed red 1pt'" onmouseout="this.style.border='solid white 0pt'">
<!--show latest updations on the website-->
<div style="font-size: small"><?php echo updations(); ?></div>
</td></tr>
<tr><td colspan='3' class='footer'>
<!--show footer of website-->
<?php echo parameter('footer'); ?>
</td></tr></table>
</div>
</form>
</body>
</html>