diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-03-23 18:03:00 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-03-23 18:03:00 +0100 |
commit | a7174bb27de46b2f64118181221fad3658f511d3 (patch) | |
tree | c0ed8fc166f222cd6d0f843dee60baa147e8316a /app/class | |
parent | 21569fcabfdcedbdd7f0185d9a7c5518f52f880c (diff) | |
download | wcms-a7174bb27de46b2f64118181221fad3658f511d3.tar.gz wcms-a7174bb27de46b2f64118181221fad3658f511d3.zip |
clean: remove temporary map dev page
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/Controllerhome.php | 18 | ||||
-rw-r--r-- | app/class/Routes.php | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 7b7024d..4fa9a0b 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -93,24 +93,6 @@ 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()) { diff --git a/app/class/Routes.php b/app/class/Routes.php index c538d78..e71bf59 100644 --- a/app/class/Routes.php +++ b/app/class/Routes.php @@ -19,7 +19,6 @@ class Routes $router->addRoutes([ ['GET', '/', 'Controllerhome#desktop', 'home'], ['POST', '/', 'Controllerhome#desktop', 'homequery'], - ['GET', '/map', 'Controllerhome#map', 'map'], ['POST', '/columns', 'Controllerhome#columns', 'homecolumns'], ['POST', '/colors', 'Controllerhome#colors', 'homecolors'], ['GET', '//renderall', 'Controllerhome#renderall', 'homerenderall'], |