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