Thread: Tos page?

Results 1 to 5 of 5
  1. #1 Tos page? 
    Norch RSPS Owner
    DJTheMask's Avatar
    Join Date
    Oct 2012
    Posts
    52
    Thanks given
    4
    Thanks received
    5
    Rep Power
    22
    How could i make it that a TOS window pops up or it rederects my site to a tos oage where they have to accept the TOS to gain access to the main website; or if they decline that a message shows up saying " You didnt accept the TOS please click here and try again "

    This would be great,

    Regards
    Reply With Quote  
     

  2. #2  
    Norch RSPS Owner
    DJTheMask's Avatar
    Join Date
    Oct 2012
    Posts
    52
    Thanks given
    4
    Thanks received
    5
    Rep Power
    22
    bump
    Reply With Quote  
     

  3. #3  
    Unfortunately we’re all human. Except me


    Join Date
    Aug 2011
    Posts
    926
    Thanks given
    539
    Thanks received
    439
    Rep Power
    601
    Make it using sessions.

    Code:
    <?php
    
    if(!isset($_SESSION['tos'])) {
    
    header('Location: tos.html');
    
    }
    
    ?>
    
    and on TOS submit
    
    <?php
    
    if(isset($_POST['submit'])) {
    
    $_SESSION['tos'] = 'true';
    
    }
    
    ?>
    
    Dont forget about session_start(); on top of both pages.
    Reply With Quote  
     

  4. #4  
    Norch RSPS Owner
    DJTheMask's Avatar
    Join Date
    Oct 2012
    Posts
    52
    Thanks given
    4
    Thanks received
    5
    Rep Power
    22
    Quote Originally Posted by LukaFurlan View Post
    Make it using sessions.

    Code:
    <?php
    
    if(!isset($_SESSION['tos'])) {
    
    header('Location: tos.html');
    
    }
    
    ?>
    
    and on TOS submit
    
    <?php
    
    if(isset($_POST['submit'])) {
    
    $_SESSION['tos'] = 'true';
    
    }
    
    ?>
    
    Dont forget about session_start(); on top of both pages.
    i found this old tutorial http://www.rune-server.org/programmi...ot-passed.html

    The problem is when i follow the exact same steps it keeps apearing on the homepage :/

    regards
    Reply With Quote  
     

  5. #5  
    Norch RSPS Owner
    DJTheMask's Avatar
    Join Date
    Oct 2012
    Posts
    52
    Thanks given
    4
    Thanks received
    5
    Rep Power
    22
    bump
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Mybb TOS Page.
    By awesome1 in forum Application Development
    Replies: 0
    Last Post: 03-11-2012, 10:01 AM
  2. the TOS page
    By Patawic in forum Suggestions
    Replies: 9
    Last Post: 10-07-2009, 12:54 PM
  3. ToS Page.
    By Hooligan in forum Suggestions
    Replies: 8
    Last Post: 01-24-2009, 02:15 AM
  4. Replies: 34
    Last Post: 10-31-2007, 09:09 PM
  5. How Do I Add A Server Status Page To my webite
    By trainer311 in forum RS2 Server
    Replies: 0
    Last Post: 10-19-2007, 03:07 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •