<?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.";
}
// ...
?>
|