include("header.inc"); if (!isset($_GET['cat']) || (!file_exists("WSFILES/" . $_GET['cat']))){ //Geen geldige categorie... ?>
echo $webshopnaam; ?>
$q = "";
$file = fopen ("WSFILES/cats", "r");
while (!feof($file)) {
$q .= fgets($file, 1024);
}
fclose ($file);
$q = explode(",", $q);
foreach($q as $t => $cat){
if (!$t == ""){
echo '';
echo '>>' . $cat . ' |
$file = fopen("WSFILES/" . $_GET['cat'], "r"); $q = ""; while (!feof($file)){ $q .= fgets($file, 1024); } fclose($file); $q = explode(",", $q); echo '
|