*/ if(!defined('DOKU_INC')) die(); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_PLUGIN.'action.php'); class action_plugin_iphelper extends DokuWiki_Action_Plugin { function register(Doku_Event_Handler $controller) { $controller->register_hook('TPL_CONTENT_DISPLAY', 'BEFORE', $this, 'handle_content_display', array()); } function handle_content_display(&$event, $param) { $subnetcalculator = $this->getConf('subnetcalculator'); $subnetcalculatortarget = $this->getConf('subnetcalculatortarget'); $tool1name = $this->getConf('tool1name'); $tool2name = $this->getConf('tool2name'); $tool3name = $this->getConf('tool3name'); $tool4name = $this->getConf('tool4name'); $tool5name = $this->getConf('tool5name'); $tool6name = $this->getConf('tool6name'); $tool7name = $this->getConf('tool7name'); $tool8name = $this->getConf('tool8name'); $tool9name = $this->getConf('tool9name'); $tool10name = $this->getConf('tool10name'); $rawtools = $this->getConf('rawtools'); if (strlen($tool1name) > 1) {$tool1url = $this->getConf('tool1url');$tool1urltarget = $this->getConf('tool1urltarget'); $tool1html = "" . $tool1name . "
";} if (strlen($tool2name) > 1) {$tool2url = $this->getConf('tool2url');$tool2urltarget = $this->getConf('tool2urltarget'); $tool2html = "" . $tool2name . "
";} if (strlen($tool3name) > 1) {$tool3url = $this->getConf('tool3url');$tool3urltarget = $this->getConf('tool3urltarget'); $tool3html = "" . $tool3name . "
";} if (strlen($tool4name) > 1) {$tool4url = $this->getConf('tool4url');$tool4urltarget = $this->getConf('tool4urltarget'); $tool4html = "" . $tool4name . "
";} if (strlen($tool5name) > 1) {$tool5url = $this->getConf('tool5url');$tool5urltarget = $this->getConf('tool5urltarget'); $tool5html = "" . $tool5name . "
";} if (strlen($tool6name) > 1) {$tool6url = $this->getConf('tool6url');$tool6urltarget = $this->getConf('tool6urltarget'); $tool6html = "" . $tool6name . "
";} if (strlen($tool7name) > 1) {$tool7url = $this->getConf('tool7url');$tool7urltarget = $this->getConf('tool7urltarget'); $tool7html = "" . $tool7name . "
";} if (strlen($tool8name) > 1) {$tool8url = $this->getConf('tool8url');$tool8urltarget = $this->getConf('tool8urltarget'); $tool8html = "" . $tool8name . "
";} if (strlen($tool9name) > 1) {$tool9url = $this->getConf('tool9url');$tool9urltarget = $this->getConf('tool9urltarget'); $tool9html = "" . $tool9name . "
";} if (strlen($tool10name) > 1) {$tool10url = $this->getConf('tool10url');$tool10urltarget = $this->getConf('tool10urltarget'); $tool10html = "" . $tool10name . "
";} $iphelperbase = "" . $tool1html . $tool2html . $tool3html . $tool4html . $tool5html . $tool6html . $tool7html . $tool8html . $tool9html . $tool10html . $rawtools; $event->data .= <<
× iphelper toolbox

you see this when javscript or css is not working correct

Untested
IP Address:
First usable:
Subnet:
Last usable:
CIDR:
Amount of usable:
Network address:
Reverse address:
Broadcast address:

TEXT; } }