Thread: Terms of Service

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Terms of Service 
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    26
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    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]
    Reply With Quote  
     

  2. #2  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    i think you might need to add funorb somewhere in there =P
    Reply With Quote  
     

  3. #3  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    26
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    Aha, so can anyone make the cookie for me?
    Reply With Quote  
     

  4. #4  
    Donator

    A2 Alex's Avatar
    Join Date
    Jan 2008
    Posts
    621
    Thanks given
    46
    Thanks received
    6
    Rep Power
    139
    Here is a cookie based tos page
    [Only registered and activated users can see links. ]

    you can make your base from that.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    26
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    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!
    Reply With Quote  
     

  6. #6  
    Donator

    A2 Alex's Avatar
    Join Date
    Jan 2008
    Posts
    621
    Thanks given
    46
    Thanks received
    6
    Rep Power
    139
    Yes read down below more you have add taht other part in index.php read the whole topic..
    Reply With Quote  
     

  7. #7  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    26
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    oh my index is an html file what do I do then?
    (I did that but it seems its for index.php)
    Reply With Quote  
     

  8. #8  
    Donator

    A2 Alex's Avatar
    Join Date
    Jan 2008
    Posts
    621
    Thanks given
    46
    Thanks received
    6
    Rep Power
    139
    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.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    26
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    I did but my site is written in HTML, I put the cookie in it but it d id not work.
    Reply With Quote  
     

  10. #10  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    27
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    Quote Originally Posted by Ultimate View Post
    i think you might need to add funorb somewhere in there =P
    Funorb is JaGeX.
    :indeed:
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •