<?php
defined('IN_DESTOON') or exit('Access Denied');
include tpl('header');
$menus = array (
array('基本设置'),
array('SEO优化'),
array('服务器优化'),
array('安全中心'),
array('图片处理'),
array('邮件发送'),
array('页面细节'),
);
show_menu($menus);
?>
<form method="post" action="?">
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="tab" id="tab" value="<?php echo $tab;?>"/>
<div id="Tabs0" style="display:">
<div class="tt">基本设置</div>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl">网站名称</td>
<td><input name="setting[sitename]" type="text" value="<?php echo $sitename;?>" size="40"/></td>
</tr>
<tr>
<td class="tl">网站地址</td>
<td><input name="config[url]" type="text" value="<?php echo $url;?>" size="40"/><?php tips('请添写完整URL地址,例如http://www.destoon.com/<br/>注意以 / 结尾');?></td>
</tr>
<tr>
<td class="tl">网站LOGO</td>
<td><input name="setting[logo]" type="text" value="<?php echo $logo;?>" id="logo" size="60"/> <span onclick="Dthumb(1,180,60, $('logo').value, 0, 'logo');" class="jt">[上传]</span> <span onclick="_preview($('logo').value);" class="jt">[预览]</span> <span onclick="$('logo').value='';" class="jt">[删除]</span><br/>
<a href="<?php echo DT_PATH;?>" target="_blank"><img src="<?php echo $logo ? $logo : DT_SKIN.'image/logo.gif';?>" style="margin:2px;"/></a></td>
</tr>
<tr>
<td class="tl">绝对地址</td>
<td>
<input type="radio" name="config[absurl]" value="1" <?php if($absurl){ ?>checked <?php } ?>/> 启用
<input type="radio" name="config[absurl]" value="0" <?php if(!$absurl){ ?>checked <?php } ?>/> 关闭<?php tips('如有任一模块绑定二级域名或会员启用二级域名时必须启用绝对地址');?>
</td>
</tr>
<tr>
<td class="tl">版权信息</td>
<td><textarea name="setting[copyright]" id="copyright" style="width:500px;height:50px;"><?php echo $copyright;?></textarea><br/>支持HTML语法,常用代码:版权© &copy; 空格 &nbsp; 换行 <br/>
</td>
</tr>
<tr>
<td class="tl">客服电话</td>
<td><input name="setting[telephone]" type="text" value="<?php echo $telephone;?>" size="20"/></td>
</tr>
<tr>
<td class="tl">ICP备案序号</td>
<td><input name="setting[icpno]" type="text" value="<?php echo $icpno;?>" size="20"/></td>
</tr>
<tr>
<td class="tl">网站状态</td>
<td>
<input type="radio" name="setting[close]" value="0" <?php if(!$close){ ?>checked <?php } ?> onclick="Dh('dclose');"/> 开启
<input type="radio" name="setting[close]" value="1" <?php if($close){ ?>checked <?php } ?> onclick="Ds('dclose');"/> 关闭
</td>
</tr>
<tr id="dclose" style="display:<?php if(!$close) echo 'none';?>">
<td class="tl">关闭原因</td>
<td><textarea name="setting[close_reason]" id="close_reason" style="width:500px;height:50px;overflow:visible;"><?php echo $close_reason;?></textarea><br/>支持HTML语法,网站关闭不影响后台管理
</td>
</tr>
<tr>
<td class="tl">网站默认语言</td>
<td>
<?php
$select = '';
$dirs = list_dir('lang');
foreach($dirs as $v) {
$selected = ($v['dir'] == DT_LANG) ? 'selected' : '';
$select .= "<option value='".$v['dir']."' ".$selected.">".$v['name']."</option>";
}
$select = '<select name="config[language]">'.$select.'</select>';
echo $select;
?>
</td>
</tr>
<tr>
<td class="tl">网站默认风格</td>
<td>
<?php
$select = '';
$dirs = list_dir('skin');
foreach($dirs as $v) {
$selected = ($CFG['skin'] && $v['dir'] == $CFG['skin']) ? 'selected' : '';
$select .= "<option value='".$v['dir']."' ".$selected.">".$v['name']."</option>";
}
$select = '<select name="config[skin]">'.$select.'</select>';
echo $select;
tips('位于./skin/目录,一个目录即为一套风格');
?>
</td>
</tr>
<tr>
<td class="tl">网站默认模板</td>
<td>
<?php
$select = '';
$dirs = list_dir('template');
foreach($dirs as $v) {
$selected = ($CFG['template'] && $v['dir'] == $CFG['template']) ? 'selected' : '';
$select .= "<option value='".$v['dir']."' ".$selected.">".$v['name']."</option>";
}
$select = '<select name="config[template]">'.$select.'</select>';
echo $select;
tips('位于./template/目录,一个目录即为一套模板');
?>
</td>
</tr>
<tr>
<td class="tl">VIP会员名称</td>
<td><input name="config[com_vip]" type="text" value="<?php echo $com_vip;?>" size="10"/></td>
</tr>
<tr>
<td class="tl">真实货币名称</td>
<td><input name="setting[money_name]" type="text" value="<?php echo $money_name;?>" size="10"/></td>
</tr>
<tr>
<td class="tl">真实货币单位</td>
<td><input name="setting[money_unit]" type="text" value="<?php echo $money_unit;?>" size="10"/></td>
</tr>
<tr>
<td class="tl">虚拟积分名称</td>
<td><input name="setting[credit_name]" type="text" value="<?php echo $credit_name;?>" size="10"/></td>
</tr>
<tr>
<td class="tl">虚拟积分单位</td>
<td><input name="setting[credit_unit]" type="text" value="<?php echo $credit_unit;?>" size="10"/></td>
</tr>
<tr>
<td class="tl">即时通讯QQ</td>
<td>
<input type="radio" name="setting[im_qq]" value="1" <?php if($im_qq){ ?>checked <?php } ?>/> 开启
<input type="radio" name="setting[im_qq]" value="0" <?php if(!$im_qq){ ?>checked <?php } ?>/> 关闭
</td>
</tr>
<tr>
<td class="tl">即时通讯阿里旺旺</td>
<td>
<input type="radio" name="setting[im_ali]" value="1" <?php if($im_ali){ ?>checked <?php } ?>/> 开启
<input type="radio" name="setting[im_ali]" value="0" <?php if(!$im_ali){ ?>checked <?php } ?>/> 关闭
</td>
</tr>
<tr>
<td class="tl">即时通讯MSN</td>
<td>
<input type="radio" name="setting[im_msn]" value="1" <?php if($im_msn){ ?>checked <?php } ?>/> 开启
<input type="radio" name="setting[im_msn]" value="0" <?php if(!$im_msn){ ?>checked <?php } ?>/> 关闭
</td>
</tr>
<tr>
<td class="tl">即时通讯Skype</td>
<td>
<input type="radio" name="setting[im_skype]" value="1" <?php if($im_skype){ ?>checked <?php } ?>/> 开启
<input type="radio" name="setting[im_skype]" value="0" <?php if(!$im_skype){ ?>checked <?php } ?>/> 关闭
</td>
</tr>
<tr>
<td class="tl">手机短信</td>
<td>
<input type="radio" name="setting[sms]" value="1" <?php if($sms){ ?>checked <?php } ?> onclick="Ds('dsms');"/> 开启
<input type="radio" name="setting[sms]" value="0" <?php if(!$sms){ ?>checked <?php } ?> onclick="Dh('dsms');"/> 关闭 <a href="http://www.destoon.com/member/sms.php" target="_blank" class="t">[申请/管理帐号<?php if($sms && $sms_uid && $sms_key) { ?> 可用短信<strong class="f_red"><script type="text/javascript" src="http://www.destoon.com/sms.php?uid=<?php echo $sms_uid;?>&key=<?php echo $sms_key;?>"></script></strong>条<?php } ?>]</a>
</td>
</tr>
<tbody id="dsms" style="display:<?php if(!$sms) echo 'none';?>">
<tr>
<td class="tl">短信接口帐号</td>
<td><input name="setting[sms_uid]" type="text" value="<?php echo $sms_uid;?>" size="30"/></td>
</tr>
<tr>
<td class="tl">短信接口密钥</td>
<td><input name="setting[sms_key]" type="text" id="sms_key" size="30" value="<?php echo $sms_key;?>" onfocus="if(this.value.indexOf('**')!=-1)this.value='';"/></td>
</tr>
<tr>
<td class="tl">短信内容签名</td>
<td><input name="setting[sms_sign]" type="text" value="<?php echo $sms_sign;?>" size="30"/> <?php tips('将显示在短信内容结尾,以便会员识别,请尽量简短<br/>例如 [某某网]');?></td>
</tr>
<tr>
<td class="tl">短信单价</td>
<td><input name="setting[sms_fee]" type="text" value="<?php echo $sms_fee;?>" size="5"/> 元/条 <?php tips('此项针对会员收费');?></td>
</tr>
<tr>
<td class="tl">短信长度</td>
<td><input name="setting[sms_len]" type="text" value="<?php echo $sms_len;?>" size="5"/> 字/条</t