<?php
    // check the default settings
    // $forcereset is set in calling routine
    if (!isset($forcereset)) {
        $forcereset = false;
    }
    if (!isset($CFG->filter_censor_badwords) or $forcereset) {
       set_config( 'filter_censor_badwords','' ); 
    }

    // get strings to use
    $txt = new Object;
    $txt->badwordslist = get_string( 'badwordslist','admin' );
    $txt->badwordsconfig = get_string( 'badwordsconfig','admin' );
    $txt->badwordsdefault = get_string( 'badwordsdefault','admin' );
?>

<table cellpadding="9" cellspacing="0">
    <tr valign="top">
        <td align="right"><?php echo $txt->badwordslist; ?></td>
        <td><textarea name="filter_censor_badwords" cols="60" rows="10"><?php echo "$CFG->filter_censor_badwords"; ?></textarea></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="center"><?php echo $txt->badwordsconfig; ?><br />
            <i><?php echo $txt->badwordsdefault; ?></i></td>
    </tr>
</table>
