$value) { if ($get == $page) { $current_page = $page; } } } // Get our aphorism $aphs = scandir('aphorism/'); $aphorism = "aphorism/".$aphs[2 + (date("d") % (count($aphs)-2))]; if ($current_page == "plans") { if ($_GET["plans"] == '') { $plans = scandir('plans/'); for ($i = 2; $i < count($plans); $i++) { $post .= "".$plans[$i]."
\n"; } } else { $plans = scandir('plans/'); for ($i = 2; $i < count($plans); $i++) { if ($plans[$i] == $_GET['plans']) break; } $post .= "

".$_GET['plans']."

"; $post .= "
"; if ($i-1 >= 2) { $post .= '<< '.$plans[$i-1].''; } $post .= ' index '; if ($i+1 < count($plans)) { $post .= ''.$plans[$i+1].' >>'; } $post .= "
"; $post .= "
".htmlentities(file_get_contents("plans/".$_GET['plans']))."
"; } } else if ($current_page == "dox") { if ($_GET["dox"] == '') { $dox = scandir('dox/'); for ($i = 2; $i < count($dox); $i++) { $post .= "".$dox[$i]."
\n"; } } else { $post .= 'Back to index
'; $post .= (file_get_contents("dox/".$_GET['dox'])); } } else if ($current_page == "news") { $news = scandir('news/'); array_shift($news); array_shift($news); rsort($news); for ($i = 0; $i < count($news); $i++) { $post .= (file_get_contents("news/".$news[$i])); } } ?> kettek