|
|
|
@ -17,18 +17,20 @@ class DashControl
|
|
|
|
|
$template = "";
|
|
|
|
|
switch (isset($args["second"]) ? $args["second"] : "index") {
|
|
|
|
|
case "pages":
|
|
|
|
|
$data = (new Book("../content/pages"))->getPages(1, 4);
|
|
|
|
|
$currentPage = isset($args["fourth"]) ? $args["fourth"] : 1;
|
|
|
|
|
$data = (new Book("../content/pages"))->getPages($currentPage, 4);
|
|
|
|
|
$template = "dash/book.twig";
|
|
|
|
|
$pageOptions = [
|
|
|
|
|
"entryCount" => $data["entryCount"],
|
|
|
|
|
"filter" => $data["sort"],
|
|
|
|
|
"numOfPages" => $data["numOfPages"],
|
|
|
|
|
"currentPage" => $currentPage,
|
|
|
|
|
"filter" => $data["paginate"]["sort"],
|
|
|
|
|
"stats" => $data["stats"],
|
|
|
|
|
"pages" => $data["pages"],
|
|
|
|
|
"paginate" => $data["paginate"],
|
|
|
|
|
];
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
//$_SESSION["TEST"] = "TESTERZ";
|
|
|
|
|
//session_unset();
|
|
|
|
|
$template = "dash/start.twig";
|
|
|
|
|
if (Session::active()) {
|
|
|
|
|
$pageOptions = [
|
|
|
|
|