<?php
$development = true;

if(0 && @isset($_GET['osgawr'])) {
	setcookie('foo', 555);
	setcookie('bar', 'sup: i have a newline!\n');
}

//@require_once '/home/edent/secretwww/common.inc';
require_once 'includes/common.php';

?>
<!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" xml:lang="en" lang="en">
<head>
<title>Beta Ceti</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/bc_tempico.png" />
<link rel="stylesheet" type="text/css" href="stylesheets/style2.css" />
</head>
<body>
<?php
if(@$development)
{
	var_dump($_POST);
	var_dump($_GET);
	var_dump($_COOKIE);
	echo "<br />\n";
}
if(@isset($_GET['osgawr']))
{
echo '<textarea cols="80" rows="35">';
	var_dump($_SERVER);
	echo '<br />';
	/*var_dump($_ENV);
	echo '<br />';*/
echo '</textarea>';
	//echo $_SERVER
}

include 'includes/loginbox.html';
include 'includes/registerbox.html';
?>
<form action="actions/logout" method="post">
<!--input type="hidden" name="action" value="logout" /-->
<input type="submit" value="Logout" disabled="true" />
</form>
<?php

showloadtime($common_pagetimerstart);
?>

<?php
if(@isset($_GET['osgawr']))
{
?>
<textarea id="cookieContent" cols="80" rows="10">
</textarea>
<script type="text/javascript">
go = 0;
cc = 0;

cookieContent.onchange = function() {
	if(go) {
			cc++;
		if(cookieContent.lastTextContent != cookieContent.value) {
			document.cookie = cookieContent.value;
			cookieContent.lastTextContent = cookieContent.value;
		}
	}
};
window.onload = function() {
	//var cookieContentBox = document.getElementById("cookieContent");
	cookieContent.textContent = document.cookie;
	cookieContent.lastTextContent = cookieContent.textContent;
	go = 1;
};
</script>
<?php
}
?>
</body>
</html>
