Well, recently I've been making a site... but I need a TOS page so people that I don't exactly want to 'associate' with can't enter the page, but it wont seem to work so if you could help me I would be grateful;

My TOS Page;
CODE
<?php

include('proxy.php'); //Proxy detection
$agreement = "3";
if (isset($_POST['agreed'])) {
  setcookie("agreed", $agreement, time()+60*60*24*365*10, "/", ".cheetahscape.net");
?>
<html><link href="http://cheetahscape.net/CSS/agreement.css" rel="stylesheet" type="text/css"><body>
<div width="765" align="center" class="Redirecting">Redirecting...</div>
<meta http-equiv="Refresh" content="2;url=<?php echo $_SERVER['PHP_SELF']; ?>">
</body></html>
<?php
include('disclaimer.php');
}
else if ($_COOKIE['agreed'] != $agreement) {
?>
<html><link href="http://cheetahscape.net/CSS/agreement.css" rel="stylesheet" type="text/css"><body>
<div align="center">
<div width="765" class="box">
<b>Welcome to CheetahScape!</b><br /><br />
<b>NOTE:</b>If you are seeing this again, its cause your agreement is out-of-date.<br /><br />
<b>Terms of Service</b> (Revision #<?php echo $agreement; ?>)<br /><br />
By clicking the "I agree to the above" button you acknowledge that you have read, understood, agree, and will follow with the following conditions.<br />
<div style="width: 725px;" class="inside">
You are not an employee or in any way affiliated with Jagex Ltd.<sup>1</sup> or Andrew Gower<sup>2</sup>.<br />
You will not use this site to prosecute in any way the owners<sup>3</sup> and/or users<sup>4</sup> of this site.<br />
You will not hold us responsible for any damages (virtual or real) caused to you by the use of this website<sup>5</sup>.<br />
You will not post copyrighted material on the website<sup>5</sup>.<br />
You will not employ or assist anyone in taking legal action against the website<sup>5</sup>, its users<sup>4</sup>, or the owners<sup>3</sup><br />
<br />
We are not responsible for any content, data, or information posted or uploaded to the site by users<sup>4</sup> to the website<sup>5</sup>. If you find any unsutable or copyrighted (by you) content, data, or information, please contact the user<sup>6</sup> that posted it. If it is an ad by google, please send an email to <a href="mailto:technical@CheetahScape.net">technical@CheetahScape.net</a>. If you have trouble contacting the user<sup>6</sup>, please send an email to <a href="mailto:support@CheetahScape.net">support@CheetahScape.net</a> or use the support function on the site (quicker response).<br />
<br />
Also, please read our disclaimer, which is found at the bottom of every page, including this one. This must be followed while on the website<sup>5</sup>, along with this agreement.
</div><br />
<b>Definitions</b><br />
<sup>1</sup> <a href="http://www.jagex.com/">http://www.jagex.com/</a><br />
<sup>2</sup> The creator of RuneScape<br />
<sup>3</sup> The people contributing, hosting, or developing programs, tools, utilitys or other things on CheetahScape.net<br />
<sup>4</sup> The people connecting to this site that have agreed to the Terms of Service stated above<br />
<sup>5</sup> <a href="http://www.CheetahScape.net/">http://www.CheetahScape.net/</a><br />
<sup>6</sup> The person uploading the content, data, or information to <a href="http://www.CheetahScape.net/">http://www.CheetahScape.net/</a>.
  <br /><br />
  <center>If you do not agree with any of the prior conditions click the "I disagree to the above" button.</center></span>
  <div class="agree"><form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"><input type="submit" value="I agree to the above" name="agreed" /><input type="submit" value="I disagree to the above" name="didnt" /></form></div>
</div>
</div>
</body></html>
<?php
}
?>

My index.php include;
CODE
<?php
include('inc/terms.php');
if ($_COOKIE['agreed'] == $agreement) {
?>

and at the end of my index.php I have
CODE
<?php
}

To corrospond with the cookie.