1<?php
2/**
3 * Display Wiki Page for DokuWiki
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Terence J. Grant<tjgrant@tatewake.com>
7 */
8
9if (!defined('DOKU_INC')) {
10    define('DOKU_INC', realpath(dirname(__FILE__).'/../../').'/');
11}
12if (!defined('DOKU_PLUGIN')) {
13    define('DOKU_PLUGIN', DOKU_INC.'lib/plugins/');
14}
15require_once(DOKU_PLUGIN.'admin.php');
16
17include_once(DOKU_PLUGIN.'displaywikipage/code.php');
18
19class admin_plugin_displaywikipage extends DokuWiki_Admin_Plugin
20{
21    /** @inheritdoc */
22    public function handle()
23    {
24        global $INPUT;
25        if ($INPUT->post->has('pref') && checkSecurityToken()) {
26            $this->savePreferences($INPUT->post->arr('pref'));
27        }
28    }
29
30    /**
31     * output appropriate html
32     */
33    public function html()
34    {
35        global $INPUT;
36
37        echo '<div class="plugin_displaywikipage">';
38
39        echo $this->locale_xhtml('intro');
40
41        echo '</div>';
42    }
43}
44