diff options
Diffstat (limited to 'templates/admin_liberty.tpl')
| -rw-r--r-- | templates/admin_liberty.tpl | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/templates/admin_liberty.tpl b/templates/admin_liberty.tpl index 93ad3fc..46c6ec3 100644 --- a/templates/admin_liberty.tpl +++ b/templates/admin_liberty.tpl @@ -1,5 +1,5 @@ {strip} -{form} +{form} {legend legend="General Settings"} {foreach from=$formLibertyFeatures key=item item=output} <div class="row"> @@ -38,21 +38,56 @@ </div> <div class="row"> - {formlabel label="Acceptable HTML tags" for="approved_html_tags"} - {formfeedback warning=$errors.warning} + {formlabel label="Liberty Cache" for="liberty_cache"} {forminput} - <input type="text" id="approved_html_tags" name="approved_html_tags" size="50" maxlength="250" value="{$approved_html_tags|escape}" /> - {formhelp note="List of allowed HTML tags. All other tags will be stripped when users save content. This will affect all format plugins."} + {html_options name=liberty_cache id=liberty_cache values=$cacheTimes options=$cacheTimes selected=$gBitSystem->getConfig('liberty_cache')} + {formhelp note='Cache all parsed content. This will dramatically reduce load on the server if pages are called frequently.' page=''} {/forminput} </div> + {/legend} + {legend legend="HTML Cleanup"} <div class="row"> - {formlabel label="Liberty Cache" for="liberty_cache"} + {formlabel label="Purification System"} {forminput} - {html_options name=liberty_cache id=liberty_cache values=$cacheTimes options=$cacheTimes selected=$gBitSystem->getConfig('liberty_cache')} - {formhelp note='Cache all parsed content. This will dramatically reduce load on the server if pages are called frequently.' page=''} + {html_options name=liberty_html_purifier options=$gLibertySystem->purifyHtmlMethods() selected=$gBitSystem->getConfig('liberty_html_purifier', 'simple')} + {formhelp note="Which system should be used to purify incoming HTML. The simple algorithm is faster but <strong>far less</strong> robust and secure than <a href=http://htmlpurifier.org>HTML Purifier</a> which has a much richer feature set. HTMLPurifier is recommended to protect against the most XSS attacks. The Simple system is known to <strong>fail XSS smoke tests</strong> and is therefore not recommended."} {/forminput} </div> + + + {legend legend="Simple Purifier Features"} + <div class="row"> + {formlabel label="Acceptable HTML tags" for="approved_html_tags"} + {formfeedback warning=$errors.warning} + {forminput} + <input type="text" id="approved_html_tags" name="approved_html_tags" size="50" maxlength="250" value="{$approved_html_tags|escape}" /> + {formhelp note="List of allowed HTML tags. All other tags will be stripped when users save content. This will affect all format plugins and all purification systems."} + {/forminput} + </div> + {/legend} + + {legend legend="HTMLPurifier Features"} + <div class="row"> + {formlabel label="Blacklisted HTML tags" for="blacklisted_html_tags"} + {formfeedback warning=$errors.blacklist} + {forminput} + <input type="text" id="blacklisted_html_tags" name="blacklisted_html_tags" size="50" maxlength="250" value="{$gBitSystem->getConfig('blacklisted_html_tags')|escape}" /> + {formhelp note="A comma seperated list of tags that should NOT be allowed in any content."} + {/forminput} + </div> + + {foreach from=$formLibertyHtmlPurifierFeatures key=item item=output} + <div class="row"> + {formlabel label=`$output.label` for=$item} + {forminput} + {html_checkboxes name="$item" values="y" checked=$gBitSystem->getConfig($item, $output.default) labels=false id=$item} + {formhelp note=`$output.note` page=`$output.page`} + {/forminput} + </div> + {/foreach} + {/legend} + {/legend} {legend legend="Captcha Settings"} |
