Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/mm/bmb/
Upload File :
Current File : /var/www/html/mmishra/mm/bmb/index1.php

<?php
//initialize session variables and session
$user = ""; $role = ""; $use_cookie = 0;

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

//check for sign out
if (isset($_REQUEST['logout'])) {
        //clear session information
        $tbl = 'webusers';
        mysql_query("update $tbl set sessionid='',sessionip='',datesession='' where webid='$webid' and userid='$user'");

        //abondon session
        session_unset();
        session_destroy();
        $HTTP_SESSION_VARS['user'] = ""; $HTTP_SESSION_VARS['role'] = "";

        //reset session variables
        $user = ""; $role = "";

}
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 = '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';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" /></head>
<body>
<div id="content">
	<div class="inner_copy">
		<a href="http://www.freetemplatesonline.com/">Free Web Templates</a> 
		<a href="http://www.websitetemplates.org/">Website Templates</a> 
		<a href="http://www.webdesign.org/website-design">Website Design</a>
	</div>
</div>
<div id="container"> 
    	<!-- header -->
        <div id="logo"><a href="#"><?php echo $title; ?></a></div>
        <div id="menu">
            <a href="#">home</a>
            <a href="#">about us</a>
            <a href="#">services</a>
            <a href="#">pricing</a>
            <a href="#">contacts</a>
        </div>
        <!--end header -->
        <!-- main -->
        <div id="main">
          <div id="sidebar">
            <ul>
              <li><a href="#">sidebar link 1</a></li>
              <li><a href="#">sidebar link 2</a></li>
              <li><a href="#">sidebar link 3</a></li>
              <li><a href="#">sidebar link 4</a></li>
              <li><a href="#">sidebar link 5</a></li>
            </ul>
            </div>
          <div id="text" >
                 <h1>Welcome</h1>
            <p><strong>GreenFest</strong> is a free template created by <a href="http://www.realitysoftware.ca">Reality Software</a> and  released by <a href="http://www.flashmp3player.org">Flash MP3 Player</a> under the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a> license, which means you can use it in any way you want provided you keep links to authors intact.</p>
            <h1>Lorem ipsum dolor</h1>
                <p><strong>Lorem ipsum</strong> dolor sit amet, consectetuer adipiscing elit. Phasellus ornare condimentum sem. Nullam a eros. Vivamus vestibulum hendrerit arcu. Integer a orci. Morbi nonummy semper est. Donec at risus sed velit porta dictum. Maecenas condimentum orci aliquam nunc. Morbi nonummy tellus in nibh. Suspendisse orci eros, dapibus at, ultrices at, egestas ac, tortor. Suspendisse fringilla est id erat. Praesent et libero. Proin nisi felis, euismod a, tempus varius, elementum vel, nisl. Fusce non magna sit amet enim suscipit feugiat. Fusce et leo.</p>
                 <ul>
                  <li>Lorem ipsum dolor sit amet.</li>
                  <li>Consectetuer adipiscing elit.</li>
                  <li>Maecenas ac lacus. Etiam quis ante.</li>
                  <li>Nullam accumsan metus sit amet est.</li>
                  <li>Nullam diam. Nunc ac ipsum at nisl pretium congue.</li>
                </ul>
                <p><strong>Pellentesque eu massa.</strong> Praesent sed enim sed ante tempus mollis. Vestibulum est. Aenean pellentesque fringilla orci. Vestibulum tellus velit, tristique at, malesuada in, tempus sed, urna.</p>
          </div>
    </div>
    <!-- end main -->
    <!-- footer -->
    <div id="footer">
            <div id="menu_footer"><a href="#">home</a> | <a href="#">about</a> | <a href="#">products</a> |  <a href="#">services</a> | <a href="#">pricing</a> | <a href="#">contact</a> | <a href="#">sitemap</a> | <a href="#">testimonials</a> | <a href="#">etc.</a></div>
            <div id="left_footer">&copy; Copyright 2008 <strong>Your Website</strong></div>
            <div id="right_footer">
            
<!-- Please do not change or delete this links. Read the license! Thanks. :-) -->
Design by <a href="http://www.realitysoftware.ca" title="Web Design"><strong>Reality Software</strong></a> &amp; <a href="http://www.flashmp3player.org" title="Free Flash MP3 Player"><strong>Flash Music Player</strong></a>

             </div>
    </div>
    <!-- end footer -->
</div>
</body>
</html>