aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllerhome.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Controllerhome.php')
-rw-r--r--app/class/Controllerhome.php25
1 files changed, 19 insertions, 6 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php
index 42ace87..86b2f6f 100644
--- a/app/class/Controllerhome.php
+++ b/app/class/Controllerhome.php
@@ -86,6 +86,24 @@ class Controllerhome extends Controllerpage
}
}
+ /**
+ * Temporary map display function
+ */
+ public function map()
+ {
+ if ($this->user->isadmin()) {
+
+ $pagelist = $this->modelhome->getlister();
+ $datas = $this->modelhome->mapdata($pagelist);
+
+ $vars['json'] = json_encode($datas, JSON_PRETTY_PRINT);
+
+ $this->showtemplate('map', $vars);
+
+ }
+
+ }
+
public function columns()
{
if (isset($_POST['columns']) && $this->user->iseditor()) {
@@ -127,12 +145,7 @@ class Controllerhome extends Controllerpage
$this->routedirect('home');
}
}
-
- public function map()
- {
-
- }
-
+
/**
* Render every pages in the database
*/