<?php
/*********************************************************************/
/ PHP-NUKE: Web Portal System /
/ =========================== /
/ /
/ Copyright (c) 2002 by Francisco Burzi /
/ http://phpnuke.org /
/ /
/ ===================== /
/ Base on Reviews Addon /
/ Copyright (c) 2000 by Jeff Lambert (jeffx@ican.net) /
/ http://www.qchc.com /
/ More scripts on http://www.jeffx.qchc.com /
/ /
/ This program is free software. You can redistribute it and/or modify /
/ it under the terms of the GNU General Public License as published by /
/ the Free Software Foundation; either version 2 of the License. /
/*********************************************************************/
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(FILE));
$index = 1;
include ("header.php");
$html = file("http://www.remoteserver.com/remotedirector/file.html") or die("Could not
load
remote HTML");
echo implode('', $html);
$bad_names = '(service_head.gif|logo.gif|stripes-06.gif|coaching-over.gif|conventions-over.gif|stripes-11.gif )';
foreach ($html as $string)
{
$string = preg_replace('#<img src="'.$bad_names.'">#i', '', $string);
$string = preg_replace('#<tr bgcolor=.*?>#i', '<tr>', $string);
}
?>
This did not remove any of the $bad_names. Any other thoughts.