Revision 225
Added by stefan about 19 years ago
trunk/wb/admin/settings/save.php | ||
---|---|---|
36 | 36 |
$admin = new admin('Settings', 'settings_advanced'); |
37 | 37 |
} |
38 | 38 |
|
39 |
//print_r($_POST); |
|
40 |
|
|
41 | 39 |
// Work-out file mode |
42 | 40 |
if($advanced == '') { |
43 | 41 |
// Check if should be set to 777 or left alone |
... | ... | |
124 | 122 |
while($setting = $results->fetchRow()) { |
125 | 123 |
$setting_name = $setting['name']; |
126 | 124 |
$value = $admin->get_post($setting_name); |
127 |
if ($value!=null) { |
|
125 |
if ($value!=null || $setting_name=='default_timezone' || $setting_name=='string_dir_mode' || $setting_name=='string_file_mode') {
|
|
128 | 126 |
$value = $admin->add_slashes($value); |
129 | 127 |
switch ($setting_name) { |
130 | 128 |
case 'default_timezone': |
... | ... | |
137 | 135 |
$value=$file_mode; |
138 | 136 |
break; |
139 | 137 |
} |
140 |
//echo $setting_name.':'.$value."<br />"; |
|
141 | 138 |
$database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$setting_name'"); |
142 | 139 |
} |
143 | 140 |
} |
Also available in: Unified diff
Fixed bug #74 - permission settings no getting changed.