';
if(in_array("site", array_keys($_GET)))
{
$site = $_GET["site"];
}
else{
$site = "-1";
}
switch ($site) {
case "login":
include $_SESSION["docroot"].'/cont/login.php';
break;
case "list":
include $_SESSION["docroot"].'/cont/list.php';
break;
case "settings":
include $_SESSION["docroot"].'/cont/settings.php';
break;
case "recipes":
include $_SESSION["docroot"].'/cont/recipes.php';
break;
case "recipe":
include $_SESSION["docroot"].'/cont/recipe.php';
break;
case "new-recipe":
include $_SESSION["docroot"].'/cont/manageRecipe.php';
break;
case "edit-recipe":
include $_SESSION["docroot"].'/cont/manageRecipe.php';
break;
case "new-user":
include $_SESSION["docroot"].'/cont/adduser.php';
break;
case "error":
include $_SESSION["docroot"].'/cont/error.php';
break;
default:
include $_SESSION["docroot"].'/cont/list.php';
$site = "list";
break;
}
echo "";
if($site && ($site!="login")){include $_SESSION["docroot"].'/cont/nav.php';}
?>