Location: PHPKode > projects > Insecticida > insecticida_wiki/main3.php
<?
###################################################
#Copyright (C) 2001 Stuart Wigley (hide@address.com)
#
#main.php 19/04/2001
#
#This file is part of workbench.
#
#workbench is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#workbench is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with workbench; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#####################################################
session_register("login");
session_register("group");
session_register("thisuserID");
require_once("config.php");
require_once("connect.php");
require_once("general.php");
include("header.php");

function prevMonday( $dayOfWeek, $mymon, $myday, $myyear, $num )
{
	return date( "Y-m-d", mktime( 0,0,0, $mymon, $myday - $dayOfWeek - ($num * 7), $myyear ) );
}
$profile = 0;
$time1 = getmicrotime();

if ( $login )
{
  session_register("login");
  # convert php $now into SQL date
  # echo $now . "<br>";
  $tok = strtok( $now, " " );
?>
  <table cellspacing="0" class="table3">
	<tr class="rowtitle">
		<td><h5>Hello <?=$login?> </h5></td>
	</tr>
	</table >
      <?     
}
else {
	include("guest.php");
}
include("footer.php");

$time2 = getmicrotime();
if ( $profile == 1 ) echo "<p>Time elapsed: ", $time2 - $time1, " seconds";
?>
Return current item: Insecticida