*/ /** * All DokuWiki plugins to extend the admin function * need to inherit from this class **/ class admin_plugin_botmon extends AdminPlugin { /** * Return the path to the icon being displayed in the main admin menu. * * @return string full path to the icon file **/ public function getMenuIcon() { $plugin = $this->getPluginName(); return DOKU_PLUGIN . $plugin . '/img/admin.svg'; } /** * output appropriate html */ public function html() { global $conf; $pluginPath = $conf['basedir'] . 'lib/plugins/' . $this->getPluginName(); /* Plugin Headline */ echo '
'; echo '

Bot Monitoring Plugin

'; /* tab navigation */ echo ''; // Beta warning message: echo '
Please note: This plugin is still in the early stages of development and does not (yet) clean up its logs directory.
You can clean up the old log files by clicking here, or by adding the cleanup script to your cron jobs.
'; /* Live tab */ echo '
'; echo '

Today

'; echo '
Loading …
'; echo '
'; echo '
Visitor logs'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; } }