adding some strings
[moodle-linuxchix.git] / filter / censor / filterconfig.html
blobdf551f5651b02c797c7678a589e9fe45b94c1f18
1 <?php
2 // check the default settings
3 // $forcereset is set in calling routine
4 if (!isset($forcereset)) {
5 $forcereset = false;
7 if (!isset($CFG->filter_censor_badwords) or $forcereset) {
8 set_config( 'filter_censor_badwords','' );
11 // get strings to use
12 $txt = new Object;
13 $txt->badwordslist = get_string( 'badwordslist','admin' );
14 $txt->badwordsconfig = get_string( 'badwordsconfig','admin' );
15 $txt->badwordsdefault = get_string( 'badwordsdefault','admin' );
18 <table cellpadding="9" cellspacing="0">
19 <tr valign="top">
20 <td align="right"><?php echo $txt->badwordslist; ?></td>
21 <td><textarea name="filter_censor_badwords" cols="60" rows="10"><?php echo "$CFG->filter_censor_badwords"; ?></textarea></td>
22 </tr>
23 <tr>
24 <td>&nbsp;</td>
25 <td align="center"><?php echo $txt->badwordsconfig; ?><br />
26 <i><?php echo $txt->badwordsdefault; ?></i></td>
27 </tr>
28 </table>