<?php
/**
 * Shop-Reviews
 *
 * @released under the GNU General Public License
 * inspired and in parts based on
 * Copyright (c) 2003 osCommerce
 * @author H-P Sausen
 * @copyright (c) since 2010 web4design.de
 * @contact webmaster@web4design.de
 * @version 3.0
 */

include(MH_DIR_CONFIG . 'config_shopvoting/admin/common.php');
include(MH_DIR_CONFIG . 'config_shopvoting/admin/common_header.php');
?>

<div id="borderbox">
<!--    <form action="--><?php //echo shopvoting_admin_page_link(Shopvoting::FILENAME_SHOPREVIEW_MANAGE_PROTECTION); ?><!--" method="post">-->
        <?php echo mh_draw_form('shopvoting', shopvoting_admin_page_link(Shopvoting::FILENAME_SHOPREVIEW_MANAGE_PROTECTION, '', true), '', 'post'); ?>



<div class="leftupdatebox">
<?php echo WEB4DESIGN_DE_SR_SAVE_INFO; ?>&nbsp;&nbsp;&nbsp; <input type="submit" name="" value="<?php echo WEB4DESIGN_DE_SR_SAVE_SETTINGS; ?>"/>
</div>
    
        <table class="maintab">
            <tr>
                <td colspan="3">
                    <?php
                    if ($_POST) {
                        $voting->setAdminBadwords($_POST['badwords_text']);
                        $voting->__construct();
                        ?>
                        <div class="speichern"><?php echo WEB4DESIGN_DE_SR_UPDATED; ?></div>
                    <?php } ?>
                </td>
            </tr>
            <tr>
                <td width="49%" style="vertical-align: top;">
                    <p class="adminConfigHeader"><strong><?php echo WEB4DESIGN_DE_SR_CONFIGURATION_PROTECTION; ?></strong></p>

                    <p><?php echo WEB4DESIGN_DE_SR_BADWORDS_INPUT; ?></p>
                    <textarea rows="5" style="width:100%;" name="badwords_text"><?php echo $voting->badwords_text; ?></textarea>

                    <p><strong><?php echo WEB4DESIGN_DE_SR_INFO; ?></strong><br/><?php echo WEB4DESIGN_DE_SR_BADWORD_INFO_TEXT; ?>
                </td>
                <td width="2%">&nbsp;</td>
                <td width="49%" style="vertical-align: top;">&nbsp;</td>
            </tr>
        </table>

    </form>
    <p class="clr">&nbsp;</p>
</div>