Hi im quite new to PHP so i am not 100% sure how accurate this information maybe as i dont have the experience that half th eguys have on here but i try to help nevertheless 😃
Yes you can use a session var and use a function which redirects all users to disclaimer page and thne once yes is clicked then the session variable called disclaimer would be true then they can view the rest of the site
Ok the below function ask if the session variable disclaimer is set and if it is not then send user to disclaimer.php scuse the example page as i dont know what your disclaimer page is called so change to whatever is necessary if you add this to your functions page then in every page write this
<?php notloggedin(); ?>
Whatever page has this will check for the disclaimer session var and if it is not present then it will send the user back to disclaimer
Below is the function for it add to your functions page.
[code=php]<?php function disclaimer(){
if (!isset($_SESSION['disclaimer'])){
header ('Location: disclaimer.php');
}
}
?>
if you set a session var named disclaimer then only make it happen after yes is clicked on the disclaimer then each page will contain your disclaimer var and enable the user to browse the site.
<?php if(isset($_POST['yes'])){
$_SESSION['disclaimer']== "true"}
?>
Also in each page as well as having disclaimer() in your page you will need session_start(); * NOTE session_start(); must be at the very top of yoru page with no whitespaces or anything befoore it *below is how yoru code should look
<?php
session_start();
disclaimer();
?>
well i hope this helps you out a bit and im not 100% sure if it works and due to my experience i cannot guarantee that this is 100% correct but anyways good luck and hope it works for you 🙂
Regards Pinkmischief
P.S Let me know how you get on plz 😃