<?php
//main class
require 'RedirectionDetector.php';
//example
$redirection = new RedirectionDetector();
$redirection->setUrl($_GET['url']);
echo '<h1>Looking for redirection:</h1><br />';
if($redirection->checkAll())
{
echo 'Redirection exists for page: '.$redirection->getRedirectedPage();
}
else
{
echo "Redirection doesn't exists";
}
?>
|