- <?php
- /*
- Put this at the top of any page you want people to not see unless they have agreed.
- What this code does is, if the cookie is not set, redirects the browser to the
- agreement page with the returnto variable set so after they agree it will send
- them back to the exact page they originally wanted to see in the first place
- if(!isset($_COOKIE["cookie_name_here"]))
- header("Location: http://".$_SERVER['SERVER_NAME'].($_SERVER['SERVER_PORT'] == 80 ? '' : ':'.$_SERVER['SERVER_PORT'])."/agreement.php?returnto=http://".$_SERVER['SERVER_NAME'].($_SERVER['SERVER_PORT'] == 80 ? '' : ':'.$_SERVER['SERVER_PORT']).$_SERVER['PHP_SELF']);
- */
- $cookiename = "rsbot_agree";
- $cookiecontent = "yes";
- if(isset($_COOKIE[$cookiename]))
- {
- header("Location: http://".$_SERVER['SERVER_NAME']."/vb/index.php");
- }
- 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);
- if(isset($_GET['returnto']))
- header("Location: ".$_GET['returnto']);
- else
- header("Location: http://".$_SERVER['SERVER_NAME']."/smf/index.php");
- }
- else
- {
- showheader();
- showTOS();
- ?>
- <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 />
- <?php
- if(isset($_GET['returnto']))
- echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."?returnto=".$_GET['returnto']."\">";
- else
- echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
- ?>
- <input name="agree" size="20" /><br />
- <input type="submit" name="Submit" value="I Agree" />
- <input type="submit" name="Cancel" value="Cancel" />
- </form>
- <?php
- showfooter();
- }
- function showheader() {
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <title><?php echo $_SERVER['SERVER_NAME'];?> 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 bgcolor="#4682B4">
- <center>
- <div>
- <b><?php echo $_SERVER['SERVER_NAME'];?> Terms of Service</b>
- </div>
- <br />
- <?php
- }
- function showfooter() {
- ?>
- </center>
- </body>
- </html>
- <?php
- }
- function showTOS() {
- ?>
- <div style="text-align: left;">
- <h2>
- Web Site Terms and Conditions of Use
- </h2>
- <h3>
- 1. Terms
- </h3>
- <p>
- By accessing this web site, you are agreeing to be bound by these
- web site Terms and Conditions of Use, all applicable laws and regulations,
- and agree that you are responsible for compliance with any applicable local
- laws. If you do not agree with any of these terms, you are prohibited from
- using or accessing this site. Furthermore, if you meet the following criteria
- you are prohibited from proceeding to our main site:<br><br>
- <ul>
- <li>Employee of Jagex</li>
- <li>Runescape</li>
- <li>Adlex Solicitors</li>
- <li>Van Mens & Wisselink N.V.</li>
- <li>any family members, friends or acquaintance's of or related to the aforementioned.</li>
- </ul>
- </p>
- <h3>
- 2. Use License
- </h3>
- <ol type="a">
- <li>
- RSBot.org does not take over any guarantee for the topicality, the correctness, completeness or quality of the information, made available. Liability claims against the author, concerning damage of idealistic or of material kind, which was caused by the use or not use of the presented information and/or by the use of incorrect and incomplete information, are in principle impossible, so far as not a deliberate or roughly negligent fault can be proved on the part of the author.
- </li>
- <li>
- The documents and graphics on this Web site can be affected by technical inaccuracies or misprints, for which we don't assume any liability.
- </li>
- </li>
- <li>
- This license shall automatically terminate if you violate any of these restrictions and may be terminated by RSBot.org at any time. Upon terminating your viewing of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format.
- </li>
- </ol>
- <h3>
- 3. Disclaimer
- </h3>
- <ol type="a">
- <li>
- The materials on RSBot.org's web site are provided "as is". RSBot.org makes no warranties, expressed or implied, and hereby disclaims and negates all other warranties, including without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property or other violation of rights. Further, RSBot.org does not warrant or make any representations concerning the accuracy, likely results, or reliability of the use of the materials on its Internet web site or otherwise relating to such materials or on any sites linked to this site.
- </li>
- </ol>
- <h3>
- 4. Limitations
- </h3>
- <p>
- In no event shall RSBot.org or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption,) arising out of the use or inability to use the materials on RSBot.org's Internet site, even if RSBot.org or a RSBot.org authorized representative has been notified orally or in writing of the possibility of such damage. Because some jurisdictions do not allow limitations on implied warranties, or limitations of liability for consequential or incidental damages, these limitations may not apply to you.
- </p>
- <h3>
- 5. Revisions and Errata
- </h3>
- <p>
- The materials appearing on RSBot.org's web site could include technical, typographical, or photographic errors. RSBot.org does not warrant that any of the materials on its web site are accurate, complete, or current. RSBot.org may make changes to the materials contained on its web site at any time without notice. RSBot.org does not, however, make any commitment to update the materials.
- </p>
- <h3>
- 6. Links
- </h3>
- <p>
- RSBot.org has not reviewed all of the sites linked to its Internet web site and is not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement by RSBot.org of the site. Use of any such linked web site is at the user's own risk.
- </p>
- <h3>
- 7. Site Terms of Use Modifications
- </h3>
- <p>
- RSBot.org may revise these terms of use for its web site at any time without notice. By using this web site you are agreeing to be bound by the then current version of these Terms and Conditions of Use.
- </p>
- <h3>
- 8. Governing Law
- </h3>
- <p>
- Any claim relating to RSBot.org's web site shall be governed by the laws of the State of Country without regard to its conflict of law provisions.
- </p>
- <p>
- General Terms and Conditions applicable to Use of a Web Site.
- </p>
- <h2>
- Privacy Policy
- </h2>
- <p>
- Your privacy is very important to us. Accordingly, we have developed this Policy in order for you to understand how we collect, use, communicate and disclose and make use of personal information. The following outlines our privacy policy.
- </p>
- <ul>
- <li>
- Before or at the time of collecting personal information, we will identify the purposes for which information is being collected.
- </li>
- <li>
- We will collect and use of personal information solely with the objective of fulfilling those purposes specified by us and for other compatible purposes, unless we obtain the consent of the individual concerned or as required by law.
- </li>
- <li>
- We will only retain personal information as long as necessary for the fulfillment of those purposes.
- </li>
- <li>
- We will collect personal information by lawful and fair means and, where appropriate, with the knowledge or consent of the individual concerned.
- </li>
- <li>
- Personal data should be relevant to the purposes for which it is to be used, and, to the extent necessary for those purposes, should be accurate, complete, and up-to-date.
- </li>
- <li>
- We will protect personal information by reasonable security safeguards against loss or theft, as well as unauthorized access, disclosure, copying, use or modification.
- </li>
- <li>
- We will make readily available to customers information about our policies and practices relating to the management of personal information.
- </li>
- </ul>
- <p>
- </p>
- </div>
- <?php
- }
- ?>
