PHP Classes

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: 15 years ago
Size: 401 bytes
 

Contents

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

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

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


?>