<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=<?=$op?>&">
    <div class="space">
        <div class="subtitle">网站功能</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1"><strong>验证码设置:</strong>防止恶意点评或自动程序登录</td>
                <td width="50%">
                    <input type="checkbox" name="seccode[login]" value="1"<?if($login)echo' checked'?> /> 登录<br />
                    <input type="checkbox" name="seccode[registry]" value="1"<?if($registry)echo' checked'?> /> 注册<br />
                    <input type="checkbox" name="seccode[newreview]" value="1"<?if($newreview)echo' checked'?> /> 增加点评<br />
                    <input type="checkbox" name="seccode[newshop]" value="1"<?if($newshop)echo' checked'?> /> 增加商铺<br />
                    <input type="checkbox" name="seccode[adminlogin]" value="1"<?if($adminlogin)echo' checked'?> /> 后台登陆<br />
                </td>
            </tr>
            <tr>
                <td class="altbg1"><strong>页面 Gzip 压缩:</strong>将页面内容以 gzip 压缩后传输，可以加快传输速度，需 PHP 4.0.4 以上且支持 Zlib 模块才能使用。</td>
                <td>是 <input type="radio" name="gzipcompress" value="1" <?if($config['gzipcompress'])echo' checked'?> />&nbsp;
                    否 <input type="radio" name="gzipcompress" value="0" <?if(!$config['gzipcompress'])echo' checked'?> /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>显示页面信息:</strong>再页面底部，显示数据库查询次数和页面执行时间。</td>
                <td>是 <input type="radio" name="debug" value="1" <?if($config['debug'])echo' checked'?> />&nbsp;
                    否 <input type="radio" name="debug" value="0" <?if(!$config['debug'])echo' checked'?> /></td>
            </tr>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">图片上传</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" width="50%"><strong>上传图片:</strong>在上传图片时，生成缩略图的尺寸，共2种缩略图，小缩略图用于商铺列表，大缩略图用于商铺详细页面。格式为：宽 x 高；单位：像素</td>
                <td width="50%">
                    小：<input type="text" name="picture_thumb[small][width]" value="<?=$picture_thumb['small']['width']?>" class="txtbox5" />&nbsp;x&nbsp;<input type="text" name="picture_thumb[small][height]" value="<?=$picture_thumb['small']['height']?>" class="txtbox5" /><br />
                    大：<input type="text" name="picture_thumb[big][width]" value="<?=$picture_thumb['big']['width']?>" class="txtbox5" />&nbsp;x&nbsp;<input type="text" name="picture_thumb[big][height]" value="<?=$picture_thumb['big']['height']?>" class="txtbox5" /></td>
            </tr>
            <tr>
                <td class="altbg1" width="45%"><strong>上传尺寸限制:</strong>商铺图片最大上传尺寸，单位：KB</td>
                <td><input type="text" name="picture_upload_size" value="<?=$config['picture_upload_size']?>" class="txtbox4" /> KB</td>
            </tr>
            <tr>
                <td class="altbg1" width="45%"><strong>图片水印功能:</strong>在上传图片时，给图片加上水印，支持PNG类型水印，水印图片存放在./images/watermark.png，您可替换水印文件以实现不同的水印效果，水印功能需要GD库支持。</td>
                <td>是 <input type="radio" name="watermark" value="1"<?if($config['watermark'])echo' checked'?> />&nbsp;
                    否 <input type="radio" name="watermark" value="0"<?if(!$config['watermark'])echo' checked'?> /></td>
            </tr>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">提交审核</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" class="altbg1" width="50%"><strong>添加新商铺时需审核:</strong>打开审核功能以后，必须通过管理员后台审核，才能显示在前台</td>
                <td width="50%">是 <input type="radio" name="auditing[addshop]" value="1"<?if($addshop)echo' checked'?> />&nbsp;
                    否 <input type="radio" name="auditing[addshop]" value="0"<?if(!$addshop)echo' checked'?> /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>添加新点评时需审核:</strong>打开审核功能以后，必须通过管理员后台审核，才能显示在前台</td>
                <td>是 <input type="radio" name="auditing[addreview]" value="1"<?if($addreview)echo' checked'?> />&nbsp;
                    否 <input type="radio" name="auditing[addreview]" value="0"<?if(!$addreview)echo' checked'?> /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>添加点评回应时需审核:</strong>打开审核功能以后，必须通过管理员后台审核，才能显示在前台</td>
                <td>是 <input type="radio" name="auditing[addrespond]" value="1"<?if($addrespond)echo' checked'?> />&nbsp;
                    否 <input type="radio" name="auditing[addrespond]" value="0"<?if(!$addrespond)echo' checked'?>  /></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>上传图片时需审核:</strong>打开审核功能以后，必须通过管理员后台审核，才能显示在前台</td>
                <td>是 <input type="radio" name="auditing[uploadpicture]" value="1"<?if($uploadpicture)echo' checked'?> />&nbsp;
                    否 <input type="radio" name="auditing[uploadpicture]" value="0"<?if(!$uploadpicture)echo' checked'?> /></td>
            </tr>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">其他设置</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td class="altbg1" class="altbg1" width="50%"><strong>视频播放器尺寸:</strong>在商铺页面显示视频的尺寸，格式为：宽 x 高；默认：250 x 200</td>
                <td width="50%"><input type="text" name="video[width]" value="<?=$video['width']?>" class="txtbox5" />&nbsp;x&nbsp;<input type="text" name="video[height]" value="<?=$video['height']?>" class="txtbox5" /></td>
            </tr>
            <tr>
                <td width="50%" class="altbg1"><strong>模板后缀:</strong>自定义后缀名，可防模板名被猜测，默认为.htm，必须加上后缀点号<br /><u>请确保模板目录下的各个文件后缀与此处设置保持一致。</u></td>
                <td width="*"><input type="text" name="tplext" value=<?=$config['tplext']?> class="txtbox4" /></td>
            </tr>
        </table>
    </div>
    <div class="space">
        <div class="subtitle">Google搜索</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" class="altbg1"><strong>启用Google搜索:</strong>利用Google搜索引擎来搜索本站数据</td>
                <td width="50%"><select name="googlesearch[enable]">
                    <option value="1"<?=$googlesearch['enable']?' selected="selected"':''?>>是</option>
                    <option value="0"<?=!$googlesearch['enable']?' selected="selected"':''?>>否</option>
                </select></td>
            </tr>
            <tr>
                <td class="altbg1"><strong>搜索站点:</strong>设置指定的搜索站点。不需要填写 http:// ，例如：modoer.com</td>
                <td><input type="text" class="txtbox" name="googlesearch[website]" value="<?=$googlesearch['website']?>" /></td>
            </tr>
        </table>
    </div>
    <center><input type="submit" name="settingsubmit" value=" 提交 " class="btn" /></center>
</form>
</div>