From 0ae8cbf5c0b1a198b963490985b7738392ebcb97 Mon Sep 17 00:00:00 2001 From: ahriman Date: Mon, 3 Dec 2018 19:22:25 -0500 Subject: installed dokuwiki, added to navbar, updated news --- wiki/inc/Action/Admin.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 wiki/inc/Action/Admin.php (limited to 'wiki/inc/Action/Admin.php') diff --git a/wiki/inc/Action/Admin.php b/wiki/inc/Action/Admin.php new file mode 100644 index 0000000..8d43057 --- /dev/null +++ b/wiki/inc/Action/Admin.php @@ -0,0 +1,56 @@ +str('page', '', true)) != '') { + /** @var $plugin \DokuWiki_Admin_Plugin */ + if($plugin = plugin_getRequestAdminPlugin()) { // FIXME this method does also permission checking + if($plugin->forAdminOnly() && !$INFO['isadmin']) { + throw new ActionException('denied'); + } + $plugin->handle(); + } + } + } + + public function tplContent() { + tpl_admin(); + } + +} -- cgit 1.4.1-2-gfad0
path: root/apps/factorial.subx
blob: 66fc4be09547bcb5f1d016d40b5704376abd6715 (plain) (blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120