1<?php
2
3/**
4 * Referrers for DokuWiki
5 *
6 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 * @author     Terence J. Grant<tjgrant@tatewake.com>
8 */
9
10class admin_plugin_referrers extends DokuWiki_Admin_Plugin
11{
12    /** @inheritdoc */
13    public function handle()
14    {
15        global $INPUT;
16        if ($INPUT->post->has('pref') && checkSecurityToken()) {
17            $this->savePreferences($INPUT->post->arr('pref'));
18        }
19    }
20
21    /**
22     * output appropriate html
23     */
24    public function html()
25    {
26        global $INPUT;
27
28        echo '<div class="plugin_referrers">';
29
30        echo $this->locale_xhtml('intro');
31
32        echo '</div>';
33    }
34}
35