-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
36 lines (28 loc) · 957 Bytes
/
Copy pathsettings.php
File metadata and controls
36 lines (28 loc) · 957 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
35
36
<?php
if (!defined('PHORUM_ADMIN')) return;
global $PHORUM;
if (count($_POST))
{
// Create the settings array for this module.
$PHORUM['mod_automatic_timezones'] = array(
'allow_user_override' => empty($_POST['allow_user_override']) ? 0 : 1
);
phorum_db_update_settings(array(
'mod_automatic_timezones' => $PHORUM['mod_automatic_timezones']
));
phorum_admin_okmsg('The settings were updated successfully');
}
include_once './include/admin/PhorumInputForm.php';
$frm = new PhorumInputForm ('', 'post', 'Save');
$frm->hidden('module', 'modsettings');
$frm->hidden('mod', 'automatic_timezones');
$frm->addbreak('Edit settings for the Automatic Time Zones module');
$row = $frm->addrow(
'Allow users to override the automatic time zones from their Control Center',
$frm->checkbox(
'allow_user_override', '1', '',
$PHORUM['mod_automatic_timezones']['allow_user_override']
)
);
$frm->show();
?>