1<?php 2/** 3 * DokuWiki Plugin dlcounter (Admin Component) 4 * 5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 6 * @author Phil Ide <phil@pbih.eu> 7 */ 8 9// must be run within Dokuwiki 10if (!defined('DOKU_INC')) { 11 die(); 12} 13 14class admin_plugin_dlcounter extends DokuWiki_Admin_Plugin 15{ 16 17 /** 18 * @return int sort number in admin menu 19 */ 20 public function getMenuSort() 21 { 22 return 200; 23 } 24 25 /** 26 * @return bool true if only access for superuser, false is for superusers and moderators 27 */ 28 public function forAdminOnly() 29 { 30 return false; 31 } 32 33 /** 34 * Should carry out any processing required by the plugin. 35 */ 36 public function handle() 37 { 38 39 } 40 41 /** 42 * Render HTML output, e.g. helpful text and a form 43 */ 44 public function html() 45 { 46 ptln('<h1>' . $this->getLang('menu') . '</h1>'); 47 } 48} 49 50