

z góry dzięks i pozdroo

<? $folder = "strony"; { include_once ($folder.'/'.$_GET['id'].'.html'); } elseif ($_GET['id']=='') { #Tu wstawiasz strone główną (ale nie index, tylko np. newsy include_once ($folder.'/glowna.html'); } else { #Tą stronę wyświetli, gdy nie znajdzie pliku o odpowiedniej #nazwie include_once ($folder.'/underconstruction.html'); } ?>
<?php '' => 'index.php', 'news' => 'news.php', 'articles' => 'articles.php', 'links' => 'pages/links.php', ' ... ' => ' ... ' ); include( $arrFiles[ $_GET['strona'] ] ); ?>