-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.php
More file actions
34 lines (29 loc) · 1000 Bytes
/
defaults.php
File metadata and controls
34 lines (29 loc) · 1000 Bytes
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
<?php
// A simple helper script that will setup initial module
// settings in case one of these settings is missing.
if(!defined("PHORUM") && !defined("PHORUM_ADMIN")) return;
// The settings array itself.
if (! isset($GLOBALS["PHORUM"]['mod_readable_dates'])) {
$GLOBALS["PHORUM"]['mod_readable_dates'] = array();
}
$phorum_mod_readable_dates_defaults = array(
'index' => 1,
'list' => 1,
'read' => 0,
'read_userregdate' => 0,
'pm_list' => 1,
'pm_read' => 0,
'buddies' => 1,
'profile' => 1,
'mod_announcements' => 1,
'granularity' => 60,
'max_time' => '',
'readable_numbers' => 1,
);
// The default options.
foreach ($phorum_mod_readable_dates_defaults as $page => $default) {
if (! isset($GLOBALS["PHORUM"]['mod_readable_dates'][$page])) {
$GLOBALS["PHORUM"]['mod_readable_dates'][$page] = $default;
}
}
?>