diff options
author | Udo Walter | 2016-11-22 12:17:04 +0100 |
---|---|---|
committer | Udo Walter | 2016-11-22 12:17:04 +0100 |
commit | 8a7d2cdb4c8e1727474709706f4d9314cb82097a (patch) | |
tree | 9a192774b79d6d35546d900a65f272803363fae6 /modules-available/statistics_reporting/page.inc.php | |
parent | [sysconfig] Improve ad handling once again (diff) | |
download | slx-admin-8a7d2cdb4c8e1727474709706f4d9314cb82097a.tar.gz slx-admin-8a7d2cdb4c8e1727474709706f4d9314cb82097a.tar.xz slx-admin-8a7d2cdb4c8e1727474709706f4d9314cb82097a.zip |
[statistics_reporting] new empty module
Diffstat (limited to 'modules-available/statistics_reporting/page.inc.php')
-rw-r--r-- | modules-available/statistics_reporting/page.inc.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/modules-available/statistics_reporting/page.inc.php b/modules-available/statistics_reporting/page.inc.php new file mode 100644 index 00000000..ff73107a --- /dev/null +++ b/modules-available/statistics_reporting/page.inc.php @@ -0,0 +1,30 @@ +<?php + +class Page_LocationInfo extends Page +{ + + /** + * Called before any page rendering happens - early hook to check parameters etc. + */ + protected function doPreprocess() + { + User::load(); + + if (!User::isLoggedIn()) { + Message::addError('main.no-permission'); + Util::redirect('?do=Main'); // does not return + } + } + + /** + * Menu etc. has already been generated, now it's time to generate page content. + */ + protected function doRender() + { + Render::addTemplate('_page', array( + 'foo' => 'bar', + 'now' => date('d.m.Y H:i:s') + )); + } + +} |