/
admin_config.php
86 lines (70 loc) · 1.7 KB
/
admin_config.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
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
<?php
/**
* @file
* Class installations to handle configuration forms on Admin UI.
*/
require_once('../../class2.php');
if(!getperms('P'))
{
header('location:' . e_BASE . 'index.php');
exit;
}
// [PLUGINS]/nodejs_comment/languages/[LANGUAGE]/[LANGUAGE]_admin.php
e107::lan('nodejs_comment', true, true);
/**
* Class nodejs_comment_admin.
*/
class nodejs_comment_admin extends e_admin_dispatcher
{
protected $modes = array(
'main' => array(
'controller' => 'nodejs_comment_admin_ui',
'path' => null,
),
);
protected $adminMenu = array(
'main/prefs' => array(
'caption' => LAN_PLUGIN_NODEJS_COMMENT_ADMIN_01,
'perm' => 'P',
),
);
protected $menuTitle = LAN_PLUGIN_NODEJS_COMMENT_NAME;
}
/**
* Class nodejs_comment_admin_ui.
*/
class nodejs_comment_admin_ui extends e_admin_ui
{
protected $pluginTitle = LAN_PLUGIN_NODEJS_COMMENT_NAME;
protected $pluginName = "nodejs_comment";
protected $preftabs = array(
LAN_PLUGIN_NODEJS_COMMENT_ADMIN_01,
);
protected $prefs = array(
'disable_alerts' => array(
'title' => LAN_PLUGIN_NODEJS_COMMENT_ADMIN_02,
'type' => 'boolean',
'writeParms' => 'label=yesno',
'data' => 'int',
'tab' => 0,
),
'disable_sounds' => array(
'title' => LAN_PLUGIN_NODEJS_COMMENT_ADMIN_03,
'type' => 'boolean',
'writeParms' => 'label=yesno',
'data' => 'int',
'tab' => 0,
),
'comment_display' => array(
'title' => LAN_PLUGIN_NODEJS_COMMENT_ADMIN_04,
'type' => 'number',
'data' => 'int',
'tab' => 0,
),
);
}
new nodejs_comment_admin();
require_once(e_ADMIN . "auth.php");
e107::getAdminUI()->runPage();
require_once(e_ADMIN . "footer.php");
exit;