Do any of you know how i might go about making a crawler that in every page it looks for a certain script? Do you have any suggestions... I am looking to see if it can identify this script:
$app = vB5_Frontend_Application::init('config.php');
error_reporting(E_ALL | E_STRICT);
$config = vB5_Config::instance();
if (!$config->report_all_php_errors) {
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT));
}
$routing = $app->getRouter();
$method = $routing->getAction();
$template = $routing->getTemplate();
$class = $routing->getControllerClass();
if (!class_exists($class))
{
die("Couldn't find controller file for $class");
}
vB5_Frontend_ExplainQueries::initialize();
$c = new $class($template);
call_user_func_array(array(&$c, $method), $routing->getArguments());
vB5_Frontend_ExplainQueries::finish();