Login   Register  
PHP Classes
elePHPant
Icontem

File: example.configscript.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Petter Kjelkenes  >  Firewall Protection  >  example.configscript.php  >  Download  
File: example.configscript.php
Role: Example script
Content type: text/plain
Description: Config loaded firewall example!
Class: Firewall Protection
Restrict the access to pages based on IP address
Author: By
Last change: -
Date: 2010-07-19 14:50
Size: 347 bytes
 

Contents

Class file image Download
<?php

include 'Firewall.php';

// Start firewall.
$firewall = new Firewall('firewallconfig.xml');


try{

    
// When finished setting settings you will need to run the firewall with the run() method.
    
$firewall->run();

    
$firewall->printSettings();
}catch(
Exception $e){
    die(
"You are not allowed at this place.");
}
?>