home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
discus_admin_1357211388
/
template
/
admin
/
cussedit.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
4KB
|
160 lines
# FILE: cussedit.tmpl
# DESCRIPTION: Edit cuss words
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<html><head><title>Profanity Filter - Word List</title>
<script language="JavaScript">
<!--
function changer () {
document.cuss.changed.value = 1;
}
function openwin(url) {
return window.open(url, 'X', 'height=400,width=600,scrollbars=yes,resizable');
}
function testwords () {
if (document.cuss.changed.value == 1) {
alert('You must save your changes to the word list before you can test words.');
return false;
}
document.cuss.changed.value = 2;
document.cuss.submit();
}
function initpage () {
<#if $general->{screen} == 1#>
document.cuss.testword.focus();
<#endif#>
}
// -->
</script>
<style>
td.nb {font: 9pt verdana,arial,helvetica}
td.b {font: 9pt verdana,arial,helvetica; font-weight: bold}
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" vlink="#0000FF" onLoad="initpage()">
$fs<font size=3><center><b>Profanity Filter - Word List</b></center></font>
<hr>
<#if $general->{screen} == 0#>
<form action="$cgiurl" method="post" name="cuss">
<p>
Use this screen to enter profanity words, one per line. You may use the
following expressions to match characters if you desire:
</p>
<ul>
<li><b>+</b> matches 1 or more characters
<li><b>*</b> matches 0 or more characters
<li><b>?</b> matches any 1 character
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="action" value="options_profanity">
<input type=hidden name="changed" value="0">
<textarea name="words" rows=10 cols=30 wrap=none onKeyPress="changer()">
<#foreach $word (@words)#>
<#form escape "$word->{word}"#>
<#endloop#>
</textarea>
</ul>
<p>
<input type=submit value="Save List">
<input type=button value="Close" onClick="self.close()">
</p>
<p>
Test a word: <input type=text name="testword" value="" size=20>
<input type=button name="clickbut" onClick="testwords()" value="Go">
</p>
</form>
<#if $checkup->{duplicate_keys} > 0#>
<hr>
<p><b><font color="#ff0000">WARNING: Duplicate Words</font></b></p>
<p>
You have repeated the following words or expressions in your profanity list.
Repeating words will adversely affect the performance of your profanity
filter.
</p>
<ul>
<#reference array @keys from $checkup->{duplicate}#>
<#foreach $word (@keys)#>
<li>$word->{word}</li>
<#endloop#>
</ul>
<#endif#>
<#if $checkup->{caughtby_keys} > 0#>
<hr>
<p><b><font color="#ff0000">WARNING: Unnecessary Words</font></b></p>
<p>
You have entered certain words into your profanity list that are always caught
by other expressions on your list. These unnecessary words will adversely
affect the performance of your profanity filter.
</p>
<p>
The following "good" patterns:
</p>
<ul>
<#reference array @keys from $checkup->{caughtby}#>
<#foreach $word (@keys)#>
<li>$word->{word}</li>
<#endloop#>
</ul>
<p>
also will always match the following "unnecessary" patterns:
</p>
<ul>
<#reference array @keys from $checkup->{caughtby_2}#>
<#foreach $word (@keys)#>
<li>$word->{word}</li>
<#endloop#>
</ul>
<#endif#>
<#endif#>
<#if $general->{screen} == 1#>
<table>
<tr>
<td class="nb">You Entered:</td>
<td class="b">$general->{entry}</td>
</tr>
<tr>
<td class="nb">Was This Profanity?</td>
<td class="b">\
<#if $general->{match} eq ""#>
<font color="#00aa00">No</font></td>
<#else#>
<font color="#ff0000">Yes</font></td>
</tr>
<tr>
<td class="nb">This Matched:</td>
<td class="b">$general->{match}</td>
<#endif#>
</tr>
</table>
<form action="$cgiurl" method="post" name="cuss">
<p>
Try Another Word or
<a href="$cgiurl?username=$general->{username}&action=options_profanity">Edit the List</a>:
</p>
<p>
Test a word: <input type=text name="testword" value="" size=20>
<input type=submit value="Go">
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="action" value="options_profanity">
<input type=hidden name="changed" value="2">
</p>
</form>
<#endif#>
</font>
</body></html>
<!--END-->