PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dave Smith   Traffic Jam   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: Traffic Jam
Block unwanted bots based on access speed
Author: By
Last change:
Date: 8 years ago
Size: 684 bytes
 

Contents

Class file image Download
<?php
//traffic jam class 0.1 beta
include('trafficjam.class.php');

$tJam = new trafficJam();

$jamCode = $tJam->jamTraffic();

if( !empty(
$jamCode) ){
   
    include(
'jam_'.$jamCode.'.php');
    exit;
   
}
?>
<html>
    <head>
        <title>Traffic Jam Example</title>
    </head>
    <body>
        <a href="example.php">Click Me</a>
        <p>To test, click link as a normal human would and then click as quickly as possible. Depending on your humanSpeed and jamTime settings, you should get jammed.</p>
        <p>Once jammed, you can refresh the page or visit again later to see countdown to when you will be allowed back in</p>
    </body>
</html>