get_info($_COOKIE["token"]);
?>
theme . ".css")) {
$cssFileContents = file_get_contents($_SESSION["docroot"]."/style/themes/".$user->theme.".css");
preg_match_all('/\s+--primary:\s#(.{3,6})/m', $cssFileContents, $matches, PREG_SET_ORDER, 0);
$themecolor = $matches[0][1];
print_r('');
print_r('');
} else {
print_r('');
print_r('');
}
?>
ShoppingList
';
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 "";
?>