diff options
| author | Christian Fowler <spider@viovio.com> | 2006-04-15 01:36:48 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-04-15 01:36:48 +0000 |
| commit | bf7d8e9be5699ac01998c62a5b98af982dd0942e (patch) | |
| tree | 272703804600803fd5af9b6e92140d8caa6d7b07 | |
| parent | e0b4b8b6ffcc554d8dc0f97abb9d0585572b6d84 (diff) | |
| download | liberty-bf7d8e9be5699ac01998c62a5b98af982dd0942e.tar.gz liberty-bf7d8e9be5699ac01998c62a5b98af982dd0942e.tar.bz2 liberty-bf7d8e9be5699ac01998c62a5b98af982dd0942e.zip | |
convert allow_html feature to permission p_liberty_enter_html
| -rwxr-xr-x | LibertySystem.php | 3 | ||||
| -rw-r--r-- | admin/schema_inc.php | 1 | ||||
| -rw-r--r-- | templates/admin_plugins.tpl | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/LibertySystem.php b/LibertySystem.php index b61029b..2a9a85e 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.25 2006/04/13 08:45:11 starrrider Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.26 2006/04/15 01:36:47 spiderr Exp $ * @author spider <spider@steelsun.com> */ @@ -37,6 +37,7 @@ define( 'LIBERTY_SERVICE_RATING', 'rating'); define( 'LIBERTY_SERVICE_TRANSLATION', 'translation'); define( 'LIBERTY_SERVICE_CONTENT_TEMPLATES', 'content_templates'); define( 'LIBERTY_TEXT_AREA', 'editliberty'); +define( 'LIBERTY_UPLOAD', 'upload'); define( 'DEFAULT_ACCEPTABLE_TAGS', '<a><br><b><blockquote><cite><code><div><dd><dl><dt><em><h1><h2><h3><h4><hr>' .' <i><it><img><li><ol><p><pre><span><strong><table><tbody><div><tr><td><th><u><ul>' diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 9d82af7..a5c240c 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -215,6 +215,7 @@ $gBitInstaller->registerUserPermissions( LIBERTY_PKG_NAME, array( array('p_liberty_attach_attachments', 'Can create content attachments', 'registered', LIBERTY_PKG_NAME), array('p_liberty_detach_attachment', 'Can detach content attachments', 'registered', LIBERTY_PKG_NAME), array('p_liberty_print', 'Can print content', 'basic', LIBERTY_PKG_NAME), + array('p_liberty_enter_html', 'Can enter HTML', 'registered', LIBERTY_PKG_NAME), ) ); ?> diff --git a/templates/admin_plugins.tpl b/templates/admin_plugins.tpl index 26fbb2b..b4007e1 100644 --- a/templates/admin_plugins.tpl +++ b/templates/admin_plugins.tpl @@ -64,7 +64,7 @@ <div class="row"> {formlabel label="Allow HTML" for="allow_html"} {forminput} - <input type="checkbox" name="allow_html[]" id="allow_html" {if $gBitSystem->isFeatureActive( 'allow_html' ) }checked="checked"{/if} /> + To allow use of HTML in any format, assign the <a href="{$smarty.const.USERS_PKG_PATH}admin/edit_group.php">p_liberty_enter_html permission</a>. {formhelp note="Allow the use of HTML in tikiwiki format content."} {/forminput} </div> |
