File: examples/example2.php

Recommend this page to a friend!
  Classes of David Ferreira  >  Rex  >  examples/example2.php  >  Download  
File: examples/example2.php
Role: Example script
Content type: text/plain
Description: Example script on how to use Rex class
Class: Rex
Check proxy addresses and filter Javascript
Author: By
Last change: v1.1 update
Date: 12 years ago
Size: 401 bytes



Class file image Download
// example2 php showing Rex class in action

// ...
require "rex.class.php";
$rex = new rex();

if (
preg_match("/somethingbanned/i", $_POST['message']))
$a = $rex->recordlog("$ip", "Malicious word on message");
"Your somethingbanned word was record for evaluation.";
} else
"Keep up the PHP rolling.";
// ...


For more information send a message to info at phpclasses dot org.