public function ipblock_delete() { if ($this->inGroup(43, true)) { require dirname(__FILE__) . '/resources/ipblock.action.php'; $ipblock = new IpblockAction($this->parent); return $ipblock->delete(); } else { return new ActionResult($this, '/admin/core/ipblock_view', 0, 'You are not allowed to do that', B_T_FAIL); } }