<?
$startpoint =
'<ul class="topiclist">'
;
$stoppoint =
'<form method="post" action="./'
;
$checkline =
'topictitle'
;
$startlink =
'<a href='
;
$sign =
'+ '
;
$found = 0;
echo
'<meta http-equiv="content-type" content="text/html; charset=UTF-8">'
;
echo "<base href=
'$base'
>
";
echo "
<body>\n
";
for($i=0;$i<count($web);$i++) {
if ($found == 0) {
$r = split($startpoint,$web[$i]);
if (count($r) > 1) $found = 1;
} else {
$r = split($stoppoint,$web[$i]);
if (count($r) > 1) break;
$r = split($checkline,$web[$i]);
if (count($r) > 1) {
$r = split($startlink,$web[$i]);
echo $sign . $startlink . remove_tag($r[1]) ."
<br />
";
}
}
}
function remove_tag($txt) {
$txt = str_replace('class="
topictitle
"','target="
_blank"',$txt);
return
$txt;
}
?>