$v) {$$k=$v;} $raztype = "media"; $rub['molod'] = "Dying young"; $rub['etiket'] = "Advice and etiquette"; $rub['kritik'] = "Reviews"; $rub['action'] = "Events"; $rub['kuhna'] = "World cuisine"; $rub['profi'] = "Profi"; $rub['misc'] = "Various"; include ('inc/top.inc'); $filename = "magazine.phtml"; $folder = "magazine"; $ID = split ("\.", $id); $head = $ID[0]; $article = $ID[1]; $action = ""; //echo "
head = $head
article = $article
"; ?> Chicken.Kiev >> «Chicken.Kiev» internet-magazine >> "; echo "$header"; //if ($action == "article") {echo "(содержание рубрики \"$header\")";} echo "
"; } if (!empty($rub[$head])) { $path = "$folder/$head"; if (!empty($article)) { if (file_exists("$path/$article.txt")) { $view = "$path/$article.txt"; //echo "$view
"; $action = "article"; printhead ($rub[$head],$action,$head); include("$view"); } else {printhead ($rub[$head],$action,$head); include("$path/index.txt");$action = "head";} } else {printhead ($rub[$head],$action,$head); include("$path/index.txt");$action = "head";} } // end if open head else { include ("$folder/index.txt"); $action = "main"; } ?>