-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.php
More file actions
124 lines (113 loc) · 2.44 KB
/
module.php
File metadata and controls
124 lines (113 loc) · 2.44 KB
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
121
122
123
124
<?php
class wfm_core extends wf_module {
public function __construct($wf) {
$this->wf = $wf;
}
/* mimetype icon (c) FAMFAMFAM */
public function get_name() { return("core"); }
public function get_description() { return("OWF Native Core module"); }
public function get_banner() { return("OWF Native Core/1.3.0"); }
public function get_version() { return("1.3.0"); }
public function get_authors() { return("Michael VERGOZ"); }
public function get_depends() { return(array(
)); }
public function session_permissions() {
return(array(
"core:smtp" => $this->ts("Allow SMTP configuration"),
));
}
public function get_actions() {
return(array(
/* url shortener */
"/short" => array(
WF_ROUTE_ACTION,
"url_shortener",
"redirect",
"",
WF_ROUTE_HIDE,
array("session:ranon")
),
/* SMTP */
"/admin/system/smtp" => array(
WF_ROUTE_ACTION,
"admin/system/smtp",
"show",
$this->ts("SMTP Service configuration"),
WF_ROUTE_SHOW,
array("core:smtp")
),
/* data listing */
"/admin/system/data" => array(
WF_ROUTE_REDIRECT,
"/data",
$this->ts("Listing des données"),
WF_ROUTE_SHOW,
array("session:god")
),
"/data" => array(
WF_ROUTE_ACTION,
"data",
"show_data",
$this->ts("Données statiques"),
WF_ROUTE_HIDE,
array("session:ranon")
),
/* dao */
"/dao" => array(
WF_ROUTE_ACTION,
"dao",
"show",
$this->ts("Add form DAO"),
WF_ROUTE_HIDE,
array("session:ranon")
),
"/dao/gmap" => array(
WF_ROUTE_ACTION,
"dao",
"gmap",
"",
WF_ROUTE_HIDE,
array("session:ranon")
),
/* others */
"/dialog" => array(
WF_ROUTE_ACTION,
"dialog",
"show",
$this->ts("Core dialog"),
WF_ROUTE_HIDE,
array("session:ranon")
),
"/json" => array(
WF_ROUTE_ACTION,
"json",
"handler",
$this->ts("JSON interface"),
WF_ROUTE_HIDE,
array("session:ranon")
),
));
}
public function json_module() {
return array(
array(
"agg" => "core_poller",
"method" => "poll",
"perm" => array("session:simple")
)
);
}
public function admin_partners() {
return(array(
array(
"name" => "SAS BinarySEC",
"url" => "http://www.binarysec.com/",
"img" => "/data/admin/partners/binarysec.png"
),
));
}
public function owf_post_init() {
if(strlen(ini_get("date.timezone")) < 1)
date_default_timezone_set("UTC");
}
}