-
Notifications
You must be signed in to change notification settings - Fork 13
/
admin.php
53 lines (45 loc) · 1.09 KB
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
if(!defined('DOKU_INC')) {
define('DOKU_INC', /** @scrutinizer ignore-type */ realpath(dirname(__FILE__).'/../../../').'/');
}
if(!defined('DOKU_PLUGIN')) {
define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
}
require_once(DOKU_PLUGIN.'admin.php');
/**
* All DokuWiki plugins to extend the admin function
* need to inherit from this class
*/
class admin_plugin_siteexport extends DokuWiki_Admin_Plugin {
/**
* Constructor
*/
public function __construct() {
$this->setupLocale();
}
/**
* return sort order for position in admin menu
*/
public function getMenuSort() {
return 100;
}
public function forAdminOnly() {
return false;
}
/**
* handle user request
*/
public function handle() {
}
/**
* output appropriate html
*/
public function html() {
if (!$functions = & plugin_load('helper', 'siteexport')) {
msg("Can't initialize");
return false;
}
$functions->__siteexport_addpage();
}
}
//Setup VIM: ex: et ts=4 enc=utf-8 :