If no custom list is specified, the default list from the language pack
[moodle-linuxchix.git] / filter / censor / filterconfig.html
blob44609805c3637c09fefdcb45a79660b8fb0a7000
1 <?php
2 // check the default settings
3 if (!isset($CFG->filter_censor_badwords)) {
4 set_config( 'filter_censor_badwords','' );
7 // get strings to use
8 $txt = new Object;
9 $txt->badwordslist = get_string( 'badwordslist','admin' );
10 $txt->badwordsconfig = get_string( 'badwordsconfig','admin' );
11 $txt->badwordsdefault = get_string( 'badwordsdefault','admin' );
14 <table cellpadding="9" cellspacing="0">
15 <tr valign="top">
16 <td align="right"><?php echo $txt->badwordslist; ?></td>
17 <td><textarea type="text" name="filter_censor_badwords" cols="60" rows="10"><?php echo "$CFG->filter_censor_badwords"; ?></textarea></td>
18 </tr>
19 <tr>
20 <td>&nbsp;</td>
21 <td align="center"><?php echo $txt->badwordsconfig; ?><br />
22 <i><?php echo $txt->badwordsdefault; ?></i></td>
23 </tr>
24 <table>