7 echo "Cannot update settings, <code>mods/htmlpurifier/config.php</code> already exists. To change 8 settings, edit that file. To use the web form, delete that file.<br />";
11 if (!isset(
$_POST[
'reset']))
$config->mergeArrayFromForm(
$_POST,
'config', $PHORUM[
'mod_htmlpurifier'][
'directives']);
12 $PHORUM[
'mod_htmlpurifier'][
'config'] =
$config->getAll();
14 $PHORUM[
'mod_htmlpurifier'][
'wysiwyg'] = !empty(
$_POST[
'wysiwyg']);
15 $PHORUM[
'mod_htmlpurifier'][
'suppress_message'] = !empty(
$_POST[
'suppress_message']);
17 $error=
"Database error while updating settings.";
19 echo "Settings Updated<br />";
26 return phorum_db_update_settings(
array(
"mod_htmlpurifier"=>$PHORUM[
"mod_htmlpurifier"]));
$PHORUM['mod_htmlpurifier']['directives']
phorum_htmlpurifier_save_settings()
phorum_htmlpurifier_get_config($default=false)
Initializes the appropriate configuration from either a PHP file or a module configuration value...
Create styles array
The data for the language used.
phorum_htmlpurifier_config_file_exists()
phorum_htmlpurifier_commit_settings()