Location: PHPKode > projects > Silicon Fodder > SiliconFodder/DocumentRoot/diary/index.php
<? require_once("../common/nocache.php"); ?>
<? require_once("../common/includes.php"); ?>
<? require_once('../admin/util.php'); ?>
<?
checkForRestrictedUser("diary/index");

// Deleting? (this is from timesheet page)
if($HTTP_GET_VARS["delevent"] == "true" && $HTTP_GET_VARS["delid"] != "") {
	$mySQL = "UPDATE diary SET isDeleted=1 WHERE id=".$HTTP_GET_VARS["delid"];
	gendb_query($mySQL, $myDb) or die(gendb_error());
}

$p2        = $HTTP_GET_VARS["p2"];
$p2n       = $HTTP_GET_VARS["p2n"];
$client    = $HTTP_GET_VARS["client"];
$openDiary = $HTTP_GET_VARS["openDiary"];
$meeting   = $HTTP_GET_VARS["meeting"];
$eventType = $HTTP_GET_VARS["eventType"]; // if set, we'll be looking at just one event type - e.g. timesheets
$userids   = $HTTP_GET_VARS["userids"]; // list of internal user ids for diaries to show

// Are we seeing a 'Smart' diary?
if($HTTP_GET_VARS["smart"] == "true") $HTTP_SESSION_VARS["is-smart"] = "true";
else $HTTP_SESSION_VARS["is-smart"] = "";

if($p2 == "") $p2 = "0";
if($client == "") $client = "0";
if($meeting == "") $meeting = "0";
if($mulview == "") $mulview = "false";
if($eventType == "") $eventType = "0";
if($userids == "") $userids = "0";

?>
<html>
<frameset cols="*,200" border="0" frameborder="0">
	<frame scrolling="vertical" src="/blank.htm" noresize name="diaryMain">
	<frame scrolling="vertical" src="months.php?productId=<?=$productId?>&myaction=<?=$myaction?>&meeting=<?=$meeting?>&p2=<?=$p2?>&p2n=<?=$p2n?>&client=<?=$client?>&od=<?=$openDiary?>&mulview=<?=$mulview?>&eventType=<?=$eventType?>&userids=<?=$userids?>" noresize name="diaryMonths">
</frameset>

<noframes>
<body>
<h2>The My Web Office system will only function with frame-enabled browsers</h2> {
</body>
</noframes>

</html>
Return current item: Silicon Fodder