1<?PHP
2
3/**
4 * Hiding IP address plugin
5 * Avoid IP addresses shown to public.
6 *
7 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 * @author     HokkaidoPerson <dosankomali@yahoo.co.jp>
9 */
10
11if(!defined('DOKU_INC')) die();
12
13
14class helper_plugin_hidingip extends DokuWiki_Plugin {
15
16    /**
17     * Return alternative text to be shown instead of IPs.
18     * It uses lang files of Hidingip plugin, so you needn't set up lang files of your plugin for this function.
19     *
20     * "$hidingip->altText()" is same to "$hidingip->getLang('notloggedin')"
21     *
22     * @return string
23     */
24    public function altText(){
25        return $this->getLang('notloggedin');
26    }
27
28}
29