*/ /** * 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.
To avoid taking up too much space on your server, please remove older logs manually!
'; /* Live tab */ echo '
'; echo '

Today

'; echo '
Loading …
'; echo '
'; echo '
Visitor log'; echo '
    '; echo '
    '; echo ''; echo '
    '; echo '
    '; } }