i think you might need to add funorb somewhere in there =P
|
|

I need a cookie for my Tos: Storm Scape Terms of Service. Could someone right me a cookie?
Here is the html:
[HTML]<html>
<head>
<title>Storm Scape Terms of Service</title>
<style type="text/css">
body{font-family: verdana; font-size: 10pt;}
div{background: #E5E5E8; width: 70%; border: 1px solid black; font-family: verdana; font-size: 10pt;}
input{border: 1px solid black;}
</style>
</head>
<body style="background-image: url(http://i37.tinypic.com/11awbk0.png);">
<center>
<div style="font-weight: bold; color: rgb(51, 51, 51);"><big>Storm
Scape Terms of Service
</big></div>
<br>
<div style="text-align: left;">
<tt><span style="color: rgb(51, 51, 51);">By typing </span><i
style="color: rgb(51, 51, 51);">'yes'</i><span
style="color: rgb(51, 51, 51);"> you agree to everything stated below:</span><br
style="color: rgb(51, 51, 51);">
<br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">You are not an employee of Jagex
LTD, runescape, or adlex solicitors,
and are not a family member or acquaintance of the aforementioned.</span><br
style="color: rgb(51, 51, 51);">
<br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">All of the information on this
site is solely for learning purposes, as
the main purpose of this site is to instruct people in the art of
programming.
All programs provided for download from this site are entirely coded by
the members
of this community and are not the intellectual property of any business
or organization.</span><br style="color: rgb(51, 51, 51);">
<br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">You agree that we have the right
to ban you without notice if you break our Terms, Rules, or do anything
that may be worthy of a ban.</span><br style="color: rgb(51, 51, 51);">
<br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">You also agree that you will not
steal, or cheat other people.</span><br style="color: rgb(51, 51, 51);">
<br style="color: rgb(51, 51, 51);">
<span style="color: rgb(51, 51, 51);">You also agree to everything
above by pressing I agree.</span><br>
</tt></div>
<br>
<div style="text-align: left;">
</div>
<br>
<br>
<font color="white">Type <i>'yes'</i> if you agree to <i>ALL</i> of
the above terms.<br>
You must have cookies enabled for this to work.</font> <br>
<form method="post" action="/index.php"> <input name="agree" size="20"><br>
<input name="Submit" value="I Agree" type="submit"> <input
name="Cancel" value="Cancel" type="submit"></form>
</center>
</body>
</html>
[/HTML]

i think you might need to add funorb somewhere in there =P

OK I tried and it does not work.... Here is my Tos:
[PHP]<?php
$cookiename = "stormscape_agree";
$cookiecontent = "yes";
if(isset($_COOKIE[$cookiename])){
header("Location: http://www.stormscape.co.cc/index.html");
} elseif(isset($_POST['Cancel'])){
die("You must agree to the TOS to view the site, sorry.");
} elseif(isset($_POST['Submit']) && (strtolower($_POST['agree']) == "yes")){
setcookie($cookiename, $cookiecontent, time() + 2592000);
// $fp = fopen("log" , "a" );
// fwrite($fp, $_SERVER['REMOTE_ADDR']."\n");
// fclose($fp);
if(isset($_GET['returnto']))
header("Location: ".$_GET['returnto']);
else
header("Location: http://www.stormscape.co.cc/index.html");
} else {
showheader();
showTOS();
echo '<font color="white">Type <i>\'yes\'</i> if you agree to <i>ALL</i> of the above terms.<br />
You must have cookies enabled for this to work.</font> <br />';
if(isset($_GET['returnto']))
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."?returnto=".$_GET['returnto']."\">";
else
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
echo ' <input name="agree" size="20" /><br />
<input type="submit" name="Submit" value="I Agree" />
<input type="submit" name="Cancel" value="Cancel" />
</form>';
showfooter();
}
function showheader() {
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Storm Scape TOS</title>
<style type="text/css">
body{font-family: verdana; font-size: 10pt;}
div{background: #E5E5E8; width: 70%; border: 1px solid black; font-family: verdana; font-size: 10pt;}
input{border: 1px solid black;}
</style>
</head>
<body style="background-image: url(http://i37.tinypic.com/11awbk0.png);">
<center>
<div>
<b>Stormscape Terms of Service</b>
</div>
<br />
';
}
function showfooter() {
echo '</center>
</body>
</html>';
}
function showTOS() {
echo '<div style="text-align: left;">
<tt>
By typing <i>\'yes\'</i> you agree to everything stated below:<br /><br />
You are not a bot, or any application, or an employee of Jagex Limited ("Jagex"), runescape, funorb, or adlex solicitors, and are not a family member or acquaintance of the aforementioned.
<br />
All of the information on this site is solely for learning purposes, as the main purpose of this site is to instruct people in the art of programming. All programs provided for download from this site are entirely coded by the members of this community and are not the intellectual property of any business or organization.
<br />
We also reserver the right to ban you for ANY reason, at any time without warning. No matter what you do wrong, we take things seriously, and if you break a rule, or break these terms, action will be taken.
<br />
</tt>
</div>
<br />
<br /><br />';
}
?>[/PHP]
And its saved as tos.php
Last edited by Mrthunder23; 07-31-2008 at 05:51 AM. Reason: Double posting is not allowed!
Yes read down below more you have add taht other part in index.php read the whole topic..
look just make a file called tos.php put the long code init and fix it to match your website
then get the short code part and add it at top of index.php fixing it to match your site.
| « preg_match | Pastebin rule » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |