Kannse mal sehen, war mir nicht sicher ob es file_exists(datei.php) oder file_exists("datei.php") heißt. Naja.
Für alle Haarspalter:
PHP-Code:
 <?php
$action 
$_GET['action'];
if ( 
$action == "" )
{
$action "main";
}


if ( 
file_exists($action."php") )
{
include(
"$action.php");
}else{
include(
"main.php");
}
?>