ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
save.php File Reference

Go to the source code of this file.

Functions

 phorum_htmlpurifier_save_settings ()
 
 phorum_htmlpurifier_commit_settings ()
 

Function Documentation

◆ phorum_htmlpurifier_commit_settings()

phorum_htmlpurifier_commit_settings ( )

Definition at line 23 of file save.php.

References $PHORUM, and array.

Referenced by phorum_htmlpurifier_migrate_sigs(), phorum_htmlpurifier_save_settings(), and phorum_htmlpurifier_show_config_info().

24 {
25  global $PHORUM;
26  return phorum_db_update_settings(array("mod_htmlpurifier"=>$PHORUM["mod_htmlpurifier"]));
27 }
$PHORUM['mod_htmlpurifier']['directives']
Definition: settings.php:28
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ phorum_htmlpurifier_save_settings()

phorum_htmlpurifier_save_settings ( )

Definition at line 3 of file save.php.

References $_POST, $config, $error, $PHORUM, phorum_htmlpurifier_commit_settings(), phorum_htmlpurifier_config_file_exists(), and phorum_htmlpurifier_get_config().

4 {
5  global $PHORUM;
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 />";
9  } else {
11  if (!isset($_POST['reset'])) $config->mergeArrayFromForm($_POST, 'config', $PHORUM['mod_htmlpurifier']['directives']);
12  $PHORUM['mod_htmlpurifier']['config'] = $config->getAll();
13  }
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.";
18  } else {
19  echo "Settings Updated<br />";
20  }
21 }
$PHORUM['mod_htmlpurifier']['directives']
Definition: settings.php:28
phorum_htmlpurifier_get_config($default=false)
Initializes the appropriate configuration from either a PHP file or a module configuration value...
Definition: init-config.php:8
$error
Definition: Error.php:17
phorum_htmlpurifier_config_file_exists()
Definition: init-config.php:25
phorum_htmlpurifier_commit_settings()
Definition: save.php:23
$_POST["username"]
+ Here is the call graph for this function: