//Winkelreclamesite startpagina
//
include("teller.php");
include("cat.php");
$maxrand = count($cat);
$willek = rand(1,$maxrand);
$winkelstrings = "winkeldat.txt";
$lines = file($winkelstrings);
$tellermax = count($lines);
$numshops = count($lines);
$lijst = array();
$teller=0;
while ($teller < $tellermax) {
list($cati,$deurl,$titel,$naam) = split("¤",$lines[$teller]);
$lijst[$teller][0] = $cati;
$lijst[$teller][1] = $deurl;
$lijst[$teller][2] = $titel;
$lijst[$teller][3] = $naam;
//echo $lijst[$teller][0].' '.$lijst[$teller][1].' '.$lijst[$teller][2].' '.$lijst[$teller][3].'
';
$teller++;
}
$dh = '';
sort($lijst);
$teller=0;
while ($teller < $tellermax) {
if ($teller > 0) {
// echo 'de test: is '.$lijst[$teller][0].' gelijk aan '. $lijst[$teller-1][0] .' ???
';
if ($lijst[$teller][0] !== $lijst[$teller-1][0]) {
if ($lijst[$teller][0] == "100") $dh .= '
';
if ($lijst[$teller][0] == "240") $dh .= ' | ';
$dh .= "".$cat[$lijst[$teller][0]][2]."";
}
} ELSE {
$dh .= "".$cat[$lijst[$teller][0]][2]."";
}
$dh .= '';
$teller++;
}
/*
$winkelstring=$lijst[$willek][1];
$TITLE='';
$URL1='';
$SUBTILE='';
$LOGO='';
$lines = file($winkelstring);
$tellermax = count($lines);
$teller=0;
while ($teller < $tellermax) {
$lines[$teller]= trim(mysql_escape_string($lines[$teller])," \n\r");
$lines[$teller] = str_replace("\\n","",$lines[$teller]);
$lines[$teller] = str_replace("\\r","",$lines[$teller]);
$lines[$teller] = str_replace("","",$lines[$teller]);
$lines[$teller] = str_replace("","",$lines[$teller]);
$teller++;
}
$teller=0;
while ($teller < $tellermax) {
if ($lines[$teller]) {
}
$teller++;
}
if ($lines[0] == '$TITLE$') {
$TITLE=$lines[1];
}
if ($lines[2] == '$SUBTITLE$') {
$SUBTITLE=$lines[3];
}
if ($lines[4] == '$URL1$') {
$URL1=$lines[5];
}
if ($lines[6] == '$LOGO$') {
$LOGO=$lines[7];
}
$teller=9;
if ($lines[8] == '$AANB$') {
$aanbtel=0;
while ($teller < $tellermax) {
if ($lines[$teller]) {
$AANB[$aanbtel] = $lines[$teller];
$aanbtel++;
}
$teller++;
}
}
$teller2= 0;
while ($teller2 < count($AANB)) {
$AANBIED = $AANB[$teller2];
$AANBIED = str_replace ('HREF=', 'HREF='.$URL1, $AANBIED);
$AANBIED = str_replace ('SRC=', 'SRC='.$URL1, $AANBIED);
$AANBIED = str_replace ('"s_', 's_', $AANBIED);
$AANBIED = str_replace ('jpg"', 'jpg', $AANBIED);
$AANBIED = str_replace ('gif"', 'gif', $AANBIED);
$teller2++;
}
*/
?>
Webwinkel Aanbiedingensite - op Plaza 33
<table width="100%" border="0" cellspacing="0" cellpadding="5" height="100%">
<tr>
<td valign="top" class=list1 width="30%">
$dh = str_replace("winkel.php?shop=","",$dh);
$dh = str_replace("/N_aanbieding.html","",$dh);
$dh = str_replace("/E_aanbieding.html","",$dh);
$dh = str_replace("/D_aanbieding.html","",$dh);
$dh = str_replace("/F_aanbieding.html","",$dh);
$dh = str_replace("/W_aanbieding.html","",$dh);
$dh = str_replace("<","<",$dh);
$dh = str_replace(">",">",$dh);
$dh = str_replace("</div>","</div> ",$dh);
echo $dh; ?>
</td>
</tr>
</table>
//Einde
?>
|