| Current Path : /var/www/html/mmishra/indem/wisdom.bak/ |
| Current File : /var/www/html/mmishra/indem/wisdom.bak/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'])) {
//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;
}
//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">
<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 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/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 onload="document.f.q.focus();">
<!--focus on search box-->
<form name="f" action="inner.php?conf=<?=$conf?>" method="post" enctype="multipart/form-data">
Search content for
<input type='text' id='q' name='q' size='20' onkeyup="showPage(this.value)">
<br><br>
<!--show banner and menu-->
<div class='banner'> <?php echo banner() ?> </div>
<div class='menus'> <?php echo menus($user, $role, 0); ?> </div>
<!--division to show searched result-->
<span id="search_result" class="search_result"></span>
<table width='100%' border='0'>
<tr height='300' valign='top'><td width='30%'>
<!--scroll announcement-->
<?php echo announcements(); ?>
</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'>
<!--show latest updations on the website-->
<?php echo updations(); ?>
</td></tr>
<tr><td colspan='3' class='footer'>
<!--show footer of website-->
<?php echo parameter('footer'); ?>
</td></tr></table>
</form>
</body>
</html>