Je kan maximaal 25 pagina's per minuut bezoeken."; // Change in the error in something you want.
session_start();
if(!isset($_SESSION['Pvl'])){
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
// delete if excists longer than 60 seconds, and make a new one
if((time()-$_SESSION['Pvl']['Time']) >= 60){
$_SESSION['Pvl'] = null;
$_SESSION['Pvl']['Time']=time();
$_SESSION['Pvl']['Views']=1;
}
else{
$_SESSION['Pvl']['Views']++;
if($_SESSION['Pvl']['Views']>=$PvlViews){
exit($error);
}
}
}
}
PageViewLimit();
?>