summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLibertySystem.php3
-rw-r--r--templates/admin_plugins.tpl2
-rw-r--r--templates/display_comment.tpl2
-rw-r--r--templates/display_content.tpl2
-rw-r--r--templates/display_structure.tpl6
-rw-r--r--templates/display_toc_inc.tpl4
-rw-r--r--templates/edit_help_inc.tpl6
-rw-r--r--templates/edit_structure_alias.tpl4
-rw-r--r--templates/edit_structure_content.tpl6
-rw-r--r--templates/edit_structure_inc.tpl4
-rw-r--r--templates/rankings.tpl2
11 files changed, 21 insertions, 20 deletions
diff --git a/LibertySystem.php b/LibertySystem.php
index 8d297fb..863db13 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.21 2006/03/03 03:45:19 starrrider Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.22 2006/03/25 20:50:16 squareing Exp $
* @author spider <spider@steelsun.com>
*/
@@ -35,6 +35,7 @@ define( 'LIBERTY_SERVICE_DOCUMENT_GENERATION', 'document_generation' );
define( 'LIBERTY_SERVICE_SEARCH', 'search');
define( 'LIBERTY_SERVICE_RATING', 'rating');
define( 'LIBERTY_SERVICE_TRANSLATION', 'translation');
+define( 'LIBERTY_SERVICE_CONTENT_TEMPLATES', 'content_templates');
define( 'LIBERTY_TEXT_AREA', 'editliberty');
define( 'DEFAULT_ACCEPTABLE_TAGS', '<a><br><b><blockquote><cite><code><div><dd><dl><dt><em><h1><h2><h3><h4><hr>'
diff --git a/templates/admin_plugins.tpl b/templates/admin_plugins.tpl
index c367674..26fbb2b 100644
--- a/templates/admin_plugins.tpl
+++ b/templates/admin_plugins.tpl
@@ -35,7 +35,7 @@
<tr class="{cycle values="odd,even"}">
<td>
{if $plugin_type eq 'data'}
- <h3>{$plugin.title}</h3>
+ <h3>{$plugin.title|escape}</h3>
{/if}
<label for="{$guid}">
{$plugin.plugin_description}
diff --git a/templates/display_comment.tpl b/templates/display_comment.tpl
index fe3438e..191565f 100644
--- a/templates/display_comment.tpl
+++ b/templates/display_comment.tpl
@@ -17,7 +17,7 @@
{/if}
</div>
- <h3>{$comment.title}</h3>
+ <h3>{$comment.title|escape}</h3>
<div class="date">{tr}by{/tr} {displayname hash=$comment}, {$comment.last_modified|bit_long_datetime}</div>
<div class="content">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
diff --git a/templates/display_content.tpl b/templates/display_content.tpl
index ac74793..18e291d 100644
--- a/templates/display_content.tpl
+++ b/templates/display_content.tpl
@@ -1,3 +1,3 @@
Generic Content display template.
<br />
-Title: {$pageInfo.title}
+Title: {$pageInfo.title|escape}
diff --git a/templates/display_structure.tpl b/templates/display_structure.tpl
index d5137f9..c5246ed 100644
--- a/templates/display_structure.tpl
+++ b/templates/display_structure.tpl
@@ -6,7 +6,7 @@
{section loop=$structureInfo.structure_path name=ix}
{if $structureInfo.structure_path[ix].parent_id} &raquo; {/if}
<a href="index.php?structure_id={$structureInfo.structure_path[ix].structure_id}">
- {$structureInfo.structure_path[ix].title}
+ {$structureInfo.structure_path[ix].title|escape}
</a>
{/section}
</span>
@@ -20,7 +20,7 @@
{if $wikibook_use_icons eq 'y'}
{biticon ipackage=liberty iname=nav_prev iexplain=Previous}
{else}
- &laquo;&nbsp;{$structureInfo.prev.title}
+ &laquo;&nbsp;{$structureInfo.prev.title|escape}
{/if}
</a>
{else}&nbsp;{/if}
@@ -32,7 +32,7 @@
{if $wikibook_use_icons eq 'y'}
{biticon ipackage=liberty iname=nav_next iexplain=Next}
{else}
- {$structureInfo.next.title}&nbsp;&raquo;
+ {$structureInfo.next.title|escape}&nbsp;&raquo;
{/if}
</a>
{else}&nbsp;{/if}
diff --git a/templates/display_toc_inc.tpl b/templates/display_toc_inc.tpl
index 914adaf..dd43a15 100644
--- a/templates/display_toc_inc.tpl
+++ b/templates/display_toc_inc.tpl
@@ -4,11 +4,11 @@
<li>
{section name=ix loop=$subtree}
{if $subtree[ix].pos eq ''}
- <h3>{$subtree[ix].title} {if $subtree[ix].page_alias}({/if}{$subtree[ix].page_alias}{if $subtree[ix].page_alias}){/if}</h3>
+ <h3>{$subtree[ix].title|escape} {if $subtree[ix].page_alias}({/if}{$subtree[ix].page_alias}{if $subtree[ix].page_alias}){/if}</h3>
{else}
{if $subtree[ix].first}<ul>{else}</li>{/if}
{if $subtree[ix].last}</ul>{else}
- <li><strong>{$subtree[ix].pos}</strong> <a href="{$smarty.const.BIT_ROOT_URL}index.php?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title}{if $subtree[ix].page_alias} ({$subtree[ix].page_alias}){/if}</a>
+ <li><strong>{$subtree[ix].pos}</strong> <a href="{$smarty.const.BIT_ROOT_URL}index.php?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}{if $subtree[ix].page_alias} ({$subtree[ix].page_alias}){/if}</a>
{/if}
{/if}
{/section}
diff --git a/templates/edit_help_inc.tpl b/templates/edit_help_inc.tpl
index 66a2a89..7f6c04b 100644
--- a/templates/edit_help_inc.tpl
+++ b/templates/edit_help_inc.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/edit_help_inc.tpl,v 1.10 2006/03/04 11:13:55 squareing Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/edit_help_inc.tpl,v 1.11 2006/03/25 20:50:16 squareing Exp $ *}
{strip}
{if $gBitSystem->isFeatureActive( 'wiki_help' )}
@@ -32,7 +32,7 @@
<select size="15" onchange="javascript:flipMulti(this.options[this.selectedIndex].value,'2')">
{foreach from=$dataplugins item=p}
{if $p.is_active eq 'y'}
- <option value="{$p.windowId}">{$p.title}</option>
+ <option value="{$p.windowId}">{$p.title|escape}</option>
{/if}
{/foreach}
</select>
@@ -43,7 +43,7 @@
<div id="{$p.windowId}" style="display:none;">
<table class="data help">
<tr>
- <th colspan="4" style="text-align: center;">{$p.title}</th>
+ <th colspan="4" style="text-align: center;">{$p.title|escape}</th>
</tr>
<tr class="odd">
<td title="{tr}The GUID is a string used to locate the Plugins Data.{/tr}">GUID => {$p.guid}</td>
diff --git a/templates/edit_structure_alias.tpl b/templates/edit_structure_alias.tpl
index e27676b..85ffed6 100644
--- a/templates/edit_structure_alias.tpl
+++ b/templates/edit_structure_alias.tpl
@@ -24,7 +24,7 @@
{section name=ix loop=$subtree}
{if $subtree[ix].pos eq ''}
{if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if}
- <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&amp;tab=alias">{$subtree[ix].title}</a>
+ <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&amp;tab=alias">{$subtree[ix].title|escape}</a>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if}
{else}
{if $subtree[ix].first}<ul>{else}</li>{/if}
@@ -32,7 +32,7 @@
<li>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if}
<strong>{$subtree[ix].pos}</strong>
- <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&amp;tab=alias">{$subtree[ix].title}</a>
+ <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}&amp;tab=alias">{$subtree[ix].title|escape}</a>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if}
{/if}
{/if}
diff --git a/templates/edit_structure_content.tpl b/templates/edit_structure_content.tpl
index ce74f30..7855557 100644
--- a/templates/edit_structure_content.tpl
+++ b/templates/edit_structure_content.tpl
@@ -10,7 +10,7 @@
{forminput}
<select name="after_ref_id" id="after_ref_id">
{section name=iy loop=$subpages}
- <option value="{$subpages[iy].structure_id}" {if $insert_after eq $subpages[iy].structure_id}selected="selected"{/if}>{$subpages[iy].title}</option>
+ <option value="{$subpages[iy].structure_id}" {if $insert_after eq $subpages[iy].structure_id}selected="selected"{/if}>{$subpages[iy].title|escape}</option>
{/section}
</select>
{formhelp note=""}
@@ -47,7 +47,7 @@
{section name=ix loop=$subtree}
{if $subtree[ix].pos eq ''}
{if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if}
- <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title}</a>
+ <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if}
{else}
{if $subtree[ix].first}<ul>{else}</li>{/if}
@@ -55,7 +55,7 @@
<li>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}<div class="highlight">{/if}
<strong>{$subtree[ix].pos}</strong>&nbsp;
- <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title}</a>
+ <a href="{$smarty.server.PHP_SELF}?structure_id={$subtree[ix].structure_id}">{$subtree[ix].title|escape}</a>
{if $structureInfo.structure_id eq $subtree[ix].structure_id}</div>{/if}
{/if}
{/if}
diff --git a/templates/edit_structure_inc.tpl b/templates/edit_structure_inc.tpl
index 752a679..c8cf1e9 100644
--- a/templates/edit_structure_inc.tpl
+++ b/templates/edit_structure_inc.tpl
@@ -3,7 +3,7 @@
<div class="tree-wrapper1">
{section name=ix loop=$subtree}
{if $subtree[ix].pos eq ''}
- <h2>{$subtree[ix].title} {if $subtree[ix].page_alias}({/if}{$subtree[ix].page_alias}{if $subtree[ix].page_alias}){/if}</h2>
+ <h2>{$subtree[ix].title|escape} {if $subtree[ix].page_alias}({/if}{$subtree[ix].page_alias}{if $subtree[ix].page_alias}){/if}</h2>
{/if}
{/section}
@@ -13,7 +13,7 @@
{if $subtree[ix].first}{else}</div>{/if}
{if $subtree[ix].last}{else}
<div class="{if $subtree[ix].has_children}folder{else}doc{/if}">
- <a href="{$smarty.const.WIKI_PKG_URL}index.php?structure_id={$subtree[ix].structure_id}" target="{$subtree[ix].content_id}" title="{$subtree[ix].structure_id}">{$subtree[ix].title}{if $subtree[ix].page_alias} ({$subtree[ix].page_alias}){/if}</a>
+ <a href="{$smarty.const.WIKI_PKG_URL}index.php?structure_id={$subtree[ix].structure_id}" target="{$subtree[ix].content_id}" title="{$subtree[ix].structure_id}">{$subtree[ix].title|escape}{if $subtree[ix].page_alias} ({$subtree[ix].page_alias}){/if}</a>
{/if}
{/if}
{/section}
diff --git a/templates/rankings.tpl b/templates/rankings.tpl
index 2906a09..2b656db 100644
--- a/templates/rankings.tpl
+++ b/templates/rankings.tpl
@@ -34,7 +34,7 @@
</div>
{/form}
- <h2>{$rankList.title} &nbsp;&nbsp; <small>[ {$rankList.attribute} ]</small></h2>
+ <h2>{$rankList.title|escape} &nbsp;&nbsp; <small>[ {$rankList.attribute} ]</small></h2>
<ol>
{foreach from=$rankList.data item=item}
<li class="{cycle values="even,odd"}">