Go to the source code of this file.
◆ phorum_htmlpurifier_show_config_info()
phorum_htmlpurifier_show_config_info |
( |
| ) |
|
◆ phorum_htmlpurifier_show_form()
phorum_htmlpurifier_show_form |
( |
| ) |
|
Definition at line 3 of file form.php.
References $config, $error, $js, $PHORUM, phorum_htmlpurifier_config_file_exists(), phorum_htmlpurifier_get_config(), and phorum_htmlpurifier_show_config_info().
14 $frm =
new PhorumInputForm (
"",
"post",
"Save");
15 $frm->hidden(
"module",
"modsettings");
16 $frm->hidden(
"mod",
"htmlpurifier");
22 $frm->addbreak(
"Edit settings for the HTML Purifier module");
24 $frm->addMessage(
'<p>The box below sets <code>$PHORUM[\'mod_htmlpurifier\'][\'wysiwyg\']</code>. 25 When checked, contents sent for edit are now purified and the 26 informative message is disabled. If your WYSIWYG editor is disabled for 27 admin edits, you can safely keep this unchecked.</p>');
28 $frm->addRow(
'Use WYSIWYG?', $frm->checkbox(
'wysiwyg',
'1',
'', $PHORUM[
'mod_htmlpurifier'][
'wysiwyg']));
30 $frm->addMessage(
'<p>The box below sets <code>$PHORUM[\'mod_htmlpurifier\'][\'suppress_message\']</code>, 31 which removes the big how-to use 32 HTML Purifier message.</p>');
33 $frm->addRow(
'Suppress information?', $frm->checkbox(
'suppress_message',
'1',
'', $PHORUM[
'mod_htmlpurifier'][
'suppress_message']));
35 $frm->addMessage(
'<p>Click on directive links to read what each option does 36 (links do not open in new windows).</p> 37 <p>For more flexibility (for instance, you want to edit the full 38 range of configuration directives), you can create a <tt>config.php</tt> 39 file in your <tt>mods/htmlpurifier/</tt> directory. Doing so will, 40 however, make the web configuration interface unavailable.</p>');
42 require_once
'HTMLPurifier/Printer/ConfigForm.php';
44 $htmlpurifier_form->setTextareaDimensions(23, 7);
46 $frm->addMessage($htmlpurifier_form->render(
47 $config, $PHORUM[
'mod_htmlpurifier'][
'directives'],
false));
49 $frm->addMessage(
"<strong>Warning: Changing HTML Purifier's configuration will invalidate 50 the cache. Expect to see a flurry of database activity after you change 51 any of these settings.</strong>");
53 $frm->addrow(
'Reset to defaults:', $frm->checkbox(
"reset",
"1",
"",
false));
56 echo
'<style type="text/css">' . $htmlpurifier_form->getCSS() .
' 57 .hp-config {margin-left:auto;margin-right:auto;} 59 $js = $htmlpurifier_form->getJavaScript();
60 echo
'<script type="text/javascript">'.
"<!--\n$js\n//-->".
'</script>';
$PHORUM['mod_htmlpurifier']['directives']
phorum_htmlpurifier_get_config($default=false)
Initializes the appropriate configuration from either a PHP file or a module configuration value...
phorum_htmlpurifier_config_file_exists()