<?php
Administrator(2);
$action=SafeRequest("action","get");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>全局配置</title>
<link href="static/admincp/images/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function $(obj) {return document.getElementById(obj);}
function change(type){
        if (type==1){
            lockmail.style.display='';
        }
        if (type==2){
            lockmail.style.display='none';
        }
        if (type==3){
            webcodea.style.display='';
        }
        if (type==4){
            webcodea.style.display='none';
        }
        if (type==5){
            weboffa.style.display='none';
        }
        if (type==6){
            weboffa.style.display='';
        }
        if (type==7){
            webhtml.style.display='none';
        }
        if (type==8){
            webhtml.style.display='';
        }
        if (type==9){
            webhtml.style.display='none';
        }
        if (type==10){
            uptype.style.display='';
        }
        if (type==11){
            uptype.style.display='none';
        }
        if (type==12){
            cd_remoteftp.style.display='';
            cd_remoteoss.style.display='none';
        }
        if (type==13){
            cd_remoteftp.style.display='none';
            cd_remoteoss.style.display='';
        }
        if (type==14){
            fsmessage.style.display='';
        }
        if (type==15){
            fsmessage.style.display='none';
        }
}
</script>
</head>
<body>
<?php
switch($action){
	case 'save':
		save();
		break;
	default:
		main();
		break;
	}
?>
</body>
</html>
<?php function main(){
global $action;
?>
<form method="post" action="?iframe=config&action=save">
<div class="container" style="<?php if($action==""){echo "display:";}else{echo "display:none";} ?>;">
<?php if($action==""){echo "<script type=\"text/javascript\">parent.document.title = 'QianWei Music Board 管理中心 - 全局 - 站点信息';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;站点信息&nbsp;&nbsp;<a target=\"main\" title=\"添加到常用操作\" href=\"?iframe=menu&action=getadd&name=站点信息&url=".$_SERVER['QUERY_STRING']."\">[+]</a>';</script>";} ?>
<div class="floattop"><div class="itemtitle"><h3>站点信息</h3><ul class="tab1">
<li class="current"><a href="?iframe=config"><span>站点信息</span></a></li>
<li><a href="?iframe=config&action=html"><span>生成信息</span></a></li>
<li><a href="?iframe=config&action=upload"><span>上传信息</span></a></li>
<li><a href="?iframe=config&action=pay"><span>支付信息</span></a></li>
<li><a href="?iframe=config&action=user"><span>会员信息</span></a></li>
</ul></div></div><div class="floattopempty"></div>
<table class="tb tb2">
<tr><th colspan="15" class="partition">基本设置</th></tr>
<tr><td colspan="2" class="td27">站点名称:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webname; ?>" name="cd_webname"></td><td class="vtop tips2">站点名称，将显示在浏览器窗口标题等位置</td></tr>
<tr><td colspan="2" class="td27">站点域名:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_weburl; ?>" name="cd_weburl"></td><td class="vtop tips2">站点域名，将作为链接显示在模板等页面的底部</td></tr>
<tr><td colspan="2" class="td27">关键字词:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_keywords; ?>" name="cd_keywords"></td><td class="vtop tips2">关键字词，将放置在模板等页面的头部</td></tr>
<tr><td colspan="2" class="td27">站点描述:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_description; ?>" name="cd_description"></td><td class="vtop tips2">站点描述，将放置在模板等页面的头部</td></tr>
<tr><td colspan="2" class="td27">客服 QQ:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webqq; ?>" name="cd_webqq" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">客服 QQ，将显示在模板等页面的底部或头部</td></tr>
<tr><td colspan="2" class="td27">备案信息:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webicp; ?>" name="cd_webicp"></td><td class="vtop tips2">备案信息，将显示在模板等页面的底部</td></tr>
<tr><td colspan="2" class="td27">客服 E-mail:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webmail; ?>" name="cd_webmail"></td><td class="vtop tips2">客服 E-mail，将作为系统发邮件时的发件人地址</td></tr>
<tr><td colspan="2" class="td27">邮件服务开关:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_lockmail==0){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_lockmail" value="0" onclick="change(1);"<?php if(cd_lockmail==0){echo " checked";} ?>>&nbsp;开启</li>
<?php if(cd_lockmail==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_lockmail" value="1" onclick="change(2);"<?php if(cd_lockmail==1){echo " checked";} ?>>&nbsp;关闭</li>
</ul>
</td><td class="vtop lightnum">注意：在开启的情况下，如果 配置信息 设置有误，将影响前台注册和邮件功能</td></tr>
<tbody class="sub" id="lockmail"<?php if(cd_lockmail<>0){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">SMTP 服务器:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webmailsmtp; ?>" name="cd_webmailsmtp"></td><td class="vtop tips2">通过SMTP协议发邮件时所指定的服务器</td></tr>
<tr><td colspan="2" class="td27">E-mail 密码:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webmailpswd; ?>" name="cd_webmailpswd"></td><td class="vtop tips2">通过SMTP协议发邮件时需要验证的密码</td></tr>
</tbody>
<tr><td colspan="2" class="td27">后台提问开关:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_webcodea==0){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_webcodea" value="0" onclick="change(3);"<?php if(cd_webcodea==0){echo " checked";} ?>>&nbsp;开启</li>
<?php if(cd_webcodea==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_webcodea" value="1" onclick="change(4);"<?php if(cd_webcodea==1){echo " checked";} ?>>&nbsp;关闭</li>
</ul>
</td><td class="vtop tips2">为了站点安全起见，建议开启</td></tr>
<tbody class="sub" id="webcodea"<?php if(cd_webcodea<>0){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">认证码:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webcodeb; ?>" name="cd_webcodeb"></td><td class="vtop tips2">管理员登录后台时的安全提问</td></tr>
</tbody>
<tr><td colspan="2" class="td27">统计代码:</td></tr>
<tr><td class="vtop rowform"><textarea rows="6" name="cd_webstat" cols="50" class="tarea"><?php echo cd_webstat; ?></textarea></td><td class="vtop tips2">页面底部显示的第三方统计</td></tr>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">关闭站点</th></tr>
<tr><td colspan="2" class="td27">站点维护开关:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_weboffa==0){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_weboffa" value="0" onclick="change(5);"<?php if(cd_weboffa==0){echo " checked";} ?>>&nbsp;开放</li>
<?php if(cd_weboffa==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_weboffa" value="1" onclick="change(6);"<?php if(cd_weboffa==1){echo " checked";} ?>>&nbsp;维护</li>
</ul>
</td><td class="vtop tips2">暂时将站点关闭，前台无法访问，但不影响后台访问</td></tr>
<tbody class="sub" id="weboffa"<?php if(cd_weboffa<>1){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">维护说明:</td></tr>
<tr><td class="vtop rowform"><textarea rows="6" name="cd_weboffb" cols="50" class="tarea"><?php echo cd_weboffb; ?></textarea></td><td class="vtop tips2">前台显示的维护信息</td></tr>
</tbody>
<tr><td colspan="15"><div class="fixsel"><input type="submit" name="submit" class="btn" value="提交" /></div></td></tr>
</table>
</div>

<div class="container" style="<?php if($action=="html"){echo "display:";}else{echo "display:none";} ?>;">
<?php if($action=="html"){echo "<script type=\"text/javascript\">parent.document.title = 'QianWei Music Board 管理中心 - 全局 - 生成信息';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;生成信息&nbsp;&nbsp;<a target=\"main\" title=\"添加到常用操作\" href=\"?iframe=menu&action=getadd&name=生成信息&url=".ReplaceStr($_SERVER['QUERY_STRING'],"&","%26")."\">[+]</a>';</script>";} ?>
<div class="floattop"><div class="itemtitle"><h3>生成信息</h3><ul class="tab1">
<li><a href="?iframe=config"><span>站点信息</span></a></li>
<li class="current"><a href="?iframe=config&action=html"><span>生成信息</span></a></li>
<li><a href="?iframe=config&action=upload"><span>上传信息</span></a></li>
<li><a href="?iframe=config&action=pay"><span>支付信息</span></a></li>
<li><a href="?iframe=config&action=user"><span>会员信息</span></a></li>
</ul></div></div><div class="floattopempty"></div>
<table class="tb tb2">
<tr><th colspan="15" class="partition">缓存设置</th></tr>
<tr><td colspan="2" class="td27">站点缓存开关:</td></tr>
<tr><td class="vtop rowform">
<select name="cd_iscache">
<option value="1"<?php if(cd_iscache==1){echo " selected";} ?>>开启</option>
<option value="0"<?php if(cd_iscache==0){echo " selected";} ?>>关闭</option>
</select>
</td><td class="vtop tips2">缓存能减少内存消耗，从而提高整站运行效率</td></tr>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">运行模式</th></tr>
<tr><td colspan="2" class="td27">会员中心:</td></tr>
<tr><td class="vtop rowform">
<select name="cd_userhtml">
<option value="0"<?php if(cd_userhtml==0){echo " selected";} ?>>动态</option>
<option value="1"<?php if(cd_userhtml==1){echo " selected";} ?>>伪静态</option>
</select>
</td><td class="vtop tips2">如果您的服务器不支持 Rewrite，请选择“动态”</td></tr>
<tr><td colspan="2" class="td27">模板页面:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_webhtml==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_webhtml" value="1" onclick="change(7);"<?php if(cd_webhtml==1){echo " checked";} ?>>&nbsp;动态</li>
<?php if(cd_webhtml==2){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_webhtml" value="2" onclick="change(8);"<?php if(cd_webhtml==2){echo " checked";} ?>>&nbsp;静态</li>
<?php if(cd_webhtml==3){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_webhtml" value="3" onclick="change(9);"<?php if(cd_webhtml==3){echo " checked";} ?>>&nbsp;伪静态</li>
</ul>
<input type="hidden" name="cd_templatedir" value="<?php echo cd_templatedir; ?>">
<input type="hidden" name="cd_ucenter" value="<?php echo cd_ucenter; ?>">
</td><td class="vtop tips2">如果您的服务器不支持 Rewrite，请选择“动态”或“静态”</td></tr>
<tbody class="sub" id="webhtml"<?php if(cd_webhtml<>2){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">栏目页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_calistfolder; ?>" name="cd_calistfolder"></li>
<li><select onchange="cd_calistfolder.value=this.value;">
<option value="[系统目录]list/[栏目编号]/[分页编号].html">系统样式</option>
<option value="[系统目录]list/[英文别名]/[分页编号].html">样式一</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
<tr><td colspan="2" class="td27">播放页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_caplayfolder; ?>" name="cd_caplayfolder"></li>
<li><select onchange="cd_caplayfolder.value=this.value;">
<option value="[系统目录]song/[数字编号].html">系统样式</option>
<option value="[系统目录]song/[字母编号].html">样式一</option>
<option value="[系统目录]song/[加密编号].html">样式二</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
<tr><td colspan="2" class="td27">专辑页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_caspecialfolder; ?>" name="cd_caspecialfolder"></li>
<li><select onchange="cd_caspecialfolder.value=this.value;">
<option value="[系统目录]album/[数字编号].html">系统样式</option>
<option value="[系统目录]album/[字母编号].html">样式一</option>
<option value="[系统目录]album/[加密编号].html">样式二</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
<tr><td colspan="2" class="td27">歌手页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_casingerfolder; ?>" name="cd_casingerfolder"></li>
<li><select onchange="cd_casingerfolder.value=this.value;">
<option value="[系统目录]singer/[数字编号].html">系统样式</option>
<option value="[系统目录]singer/[字母编号].html">样式一</option>
<option value="[系统目录]singer/[加密编号].html">样式二</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
<tr><td colspan="2" class="td27">视频栏目页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_cavideocfolder; ?>" name="cd_cavideocfolder"></li>
<li><select onchange="cd_cavideocfolder.value=this.value;">
<option value="[系统目录]class/[栏目编号]/[分页编号].html">系统样式</option>
<option value="[系统目录]video/[栏目编号]/[分页编号].html">样式一</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
<tr><td colspan="2" class="td27">视频页面存放路径:</td></tr>
<tr><td class="vtop rowform">
<ul class="nofloat">
<li><input type="text" class="txt" value="<?php echo cd_cavideofolder; ?>" name="cd_cavideofolder"></li>
<li><select onchange="cd_cavideofolder.value=this.value;">
<option value="[系统目录]video/[数字编号].html">系统样式</option>
<option value="[系统目录]video/[字母编号].html">样式一</option>
<option value="[系统目录]video/[加密编号].html">样式二</option>
</select></li>
</ul>
</td><td class="vtop tips2">默认为“系统样式”</td></tr>
</tbody>
<tr><td colspan="15"><div class="fixsel"><input type="submit" name="submit" class="btn" value="提交" /></div></td></tr>
</table>
</div>

<div class="container" style="<?php if($action=="upload"){echo "display:";}else{echo "display:none";} ?>;">
<?php if($action=="upload"){echo "<script type=\"text/javascript\">parent.document.title = 'QianWei Music Board 管理中心 - 全局 - 上传信息';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;上传信息&nbsp;&nbsp;<a target=\"main\" title=\"添加到常用操作\" href=\"?iframe=menu&action=getadd&name=上传信息&url=".ReplaceStr($_SERVER['QUERY_STRING'],"&","%26")."\">[+]</a>';</script>";} ?>
<div class="floattop"><div class="itemtitle"><h3>上传信息</h3><ul class="tab1">
<li><a href="?iframe=config"><span>站点信息</span></a></li>
<li><a href="?iframe=config&action=html"><span>生成信息</span></a></li>
<li class="current"><a href="?iframe=config&action=upload"><span>上传信息</span></a></li>
<li><a href="?iframe=config&action=pay"><span>支付信息</span></a></li>
<li><a href="?iframe=config&action=user"><span>会员信息</span></a></li>
</ul></div></div><div class="floattopempty"></div>
<table class="tb tb2">
<tr><th colspan="15" class="partition">本地设置</th></tr>
<tr><td colspan="2" class="td27">上传开关:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_uptype==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_uptype" value="1" onclick="change(10);"<?php if(cd_uptype==1){echo " checked";} ?>>&nbsp;开启</li>
<?php if(cd_uptype==0){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_uptype" value="0" onclick="change(11);"<?php if(cd_uptype==0){echo " checked";} ?>>&nbsp;关闭</li>
</ul>
</td><td class="vtop tips2">关闭后用户将无法上传本地文件</td></tr>
<tbody class="sub" id="uptype"<?php if(cd_uptype<>1){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">上传允许的格式:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_upext; ?>" name="cd_upext"></td><td class="vtop tips2">各个类型间用“;”隔开</td></tr>
<tr><td colspan="2" class="td27">每天上传的次数:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_upnum; ?>" name="cd_upnum" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">次</td></tr>
<tr><td colspan="2" class="td27">歌曲音质的码率:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_upkbps; ?>" name="cd_upkbps" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">设置为0时将关闭音质检测，单位：kbps</td></tr>
<tr><td colspan="2" class="td27">上传文件的大小:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_upsize; ?>" name="cd_upsize" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">MB</td></tr>
</tbody>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">远程设置</th></tr>
<tr><td colspan="2" class="td27">上传方式:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_remoteup==1){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_remoteup" value="1" onclick="change(12);"<?php if(cd_remoteup==1){echo " checked";} ?>>&nbsp;FTP</li>
<?php if(cd_remoteup==2){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_remoteup" value="2" onclick="change(13);"<?php if(cd_remoteup==2){echo " checked";} ?>>&nbsp;OSS</li>
</ul>
</td><td class="vtop tips2">两种方式的“最大上传字节”取决于本地服务器配置</td></tr>
<tbody class="sub" id="cd_remoteftp"<?php if(cd_remoteup>1){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">FTP地址:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftphost; ?>" name="cd_ftphost"></td><td class="vtop tips2">远程登录的地址，一般为ip或url地址</td></tr>
<tr><td colspan="2" class="td27">FTP用户名:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftpuser; ?>" name="cd_ftpuser"></td><td class="vtop tips2">远程登录的帐号</td></tr>
<tr><td colspan="2" class="td27">FTP密码:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftppass; ?>" name="cd_ftppass"></td><td class="vtop tips2">远程登录的密码</td></tr>
<tr><td colspan="2" class="td27">FTP访问域:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftpdomain; ?>" name="cd_ftpdomain"></td><td class="vtop tips2">通过该域名来访问或下载FTP中的文件，最前面需要加“http://”，最后面无需加“/”</td></tr>
<tr><td colspan="2" class="td27">FTP端口:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftpport; ?>" name="cd_ftpport" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">默认为“21”</td></tr>
<tr><td colspan="2" class="td27">FTP重建目录:</td></tr>
<tr><td class="vtop rowform">
<select name="cd_ftptype">
<option value="1"<?php if(cd_ftptype==1){echo " selected";} ?>>开启</option>
<option value="0"<?php if(cd_ftptype==0){echo " selected";} ?>>关闭</option>
</select>
</td><td class="vtop tips2">如果上传过程中路径不存在则自动新建，开启前请先确认是否有建立权限</td></tr>
<tr><td colspan="2" class="td27">FTP根目录:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftproot; ?>" name="cd_ftproot"></td><td class="vtop tips2">一般为 wwwroot|web|home，如 wwwroot/music，最后面无需加“/”</td></tr>
<tr><td colspan="2" class="td27">FTP子路径:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ftpdir; ?>" name="cd_ftpdir"></td><td class="vtop tips2">文件存放路径，如 /data/attachment/，前后需要加“/”</td></tr>
</tbody>
<tbody class="sub" id="cd_remoteoss"<?php if(cd_remoteup<2){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">BucketName:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_ossbucket; ?>" name="cd_ossbucket"></td><td class="vtop tips2">阿里云的开放存储服务Bucket</td></tr>
<tr><td colspan="2" class="td27">Access Key ID:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_osskeyid; ?>" name="cd_osskeyid"></td><td class="vtop tips2">阿里云的开放存储服务KeyID</td></tr>
<tr><td colspan="2" class="td27">Access Key Secret:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_osskeysecret; ?>" name="cd_osskeysecret"></td><td class="vtop tips2">阿里云的开放存储服务KeySecret</td></tr>
</tbody>
<tr><td colspan="15"><div class="fixsel"><input type="submit" name="submit" class="btn" value="提交" /></div></td></tr>
</table>
</div>

<div class="container" style="<?php if($action=="pay"){echo "display:";}else{echo "display:none";} ?>;">
<?php if($action=="pay"){echo "<script type=\"text/javascript\">parent.document.title = 'QianWei Music Board 管理中心 - 全局 - 支付信息';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;支付信息&nbsp;&nbsp;<a target=\"main\" title=\"添加到常用操作\" href=\"?iframe=menu&action=getadd&name=支付信息&url=".ReplaceStr($_SERVER['QUERY_STRING'],"&","%26")."\">[+]</a>';</script>";} ?>
<div class="floattop"><div class="itemtitle"><h3>支付信息</h3><ul class="tab1">
<li><a href="?iframe=config"><span>站点信息</span></a></li>
<li><a href="?iframe=config&action=html"><span>生成信息</span></a></li>
<li><a href="?iframe=config&action=upload"><span>上传信息</span></a></li>
<li class="current"><a href="?iframe=config&action=pay"><span>支付信息</span></a></li>
<li><a href="?iframe=config&action=user"><span>会员信息</span></a></li>
</ul></div></div><div class="floattopempty"></div>
<table class="tb tb2">
<tr><th colspan="15" class="partition">支付宝</th></tr>
<tr><td colspan="2" class="td27">合作身份者ID:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_alipayid; ?>" name="cd_alipayid"></td><td class="vtop tips2">以2088开头的16位纯数字</td></tr>
<tr><td colspan="2" class="td27">安全检验码:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_alipaykey; ?>" name="cd_alipaykey"></td><td class="vtop tips2">以数字和字母组成的32位字符</td></tr>
<tr><td colspan="2" class="td27">支付宝账号:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_alipayuid; ?>" name="cd_alipayuid"></td><td class="vtop tips2">签约支付宝账号或卖家支付宝帐户</td></tr>
<tr><td colspan="15"><div class="fixsel"><input type="submit" name="submit" class="btn" value="提交" /></div></td></tr>
</table>
</div>

<div class="container" style="<?php if($action=="user"){echo "display:";}else{echo "display:none";} ?>;">
<?php if($action=="user"){echo "<script type=\"text/javascript\">parent.document.title = 'QianWei Music Board 管理中心 - 全局 - 会员信息';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='全局&nbsp;&raquo;&nbsp;会员信息&nbsp;&nbsp;<a target=\"main\" title=\"添加到常用操作\" href=\"?iframe=menu&action=getadd&name=会员信息&url=".ReplaceStr($_SERVER['QUERY_STRING'],"&","%26")."\">[+]</a>';</script>";} ?>
<div class="floattop"><div class="itemtitle"><h3>会员信息</h3><ul class="tab1">
<li><a href="?iframe=config"><span>站点信息</span></a></li>
<li><a href="?iframe=config&action=html"><span>生成信息</span></a></li>
<li><a href="?iframe=config&action=upload"><span>上传信息</span></a></li>
<li><a href="?iframe=config&action=pay"><span>支付信息</span></a></li>
<li class="current"><a href="?iframe=config&action=user"><span>会员信息</span></a></li>
</ul></div></div><div class="floattopempty"></div>
<table class="tb tb2">
<tr><th colspan="15" class="partition">QQ登录</th></tr>
<tr><td colspan="2" class="td27">APP ID:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_qqappid; ?>" name="cd_qqappid"></td><td class="vtop tips2">QQ互联的站点APPID</td></tr>
<tr><td colspan="2" class="td27">APP KEY:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_qqappkey; ?>" name="cd_qqappkey"></td><td class="vtop tips2">QQ互联的站点APPKEY</td></tr>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">功能设置</th></tr>
<tr><td colspan="2" class="td27">会员注册开关:</td></tr>
<tr><td class="vtop rowform">
<select name="cd_usery">
<option value="yes"<?php if(cd_usery=="yes"){echo " selected";} ?>>开放</option>
<option value="no"<?php if(cd_usery=="no"){echo " selected";} ?>>关闭</option>
</select>
</td><td class="vtop tips2">默认为“开放”</td></tr>
<tr><td colspan="2" class="td27">注册是否发送短消息:</td></tr>
<tr><td class="vtop rowform">
<ul>
<?php if(cd_fsmessage=="yes"){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_fsmessage" value="yes" onclick="change(14);"<?php if(cd_fsmessage=="yes"){echo " checked";} ?>>&nbsp;是</li>
<?php if(cd_fsmessage=="no"){echo "<li class=\"checked\">";}else{echo "<li>";} ?><input class="radio" type="radio" name="cd_fsmessage" value="no" onclick="change(15);"<?php if(cd_fsmessage=="no"){echo " checked";} ?>>&nbsp;否</li>
</ul>
</td><td class="vtop tips2">默认为“是”</td></tr>
<tbody class="sub" id="fsmessage"<?php if(cd_fsmessage!=="yes"){echo " style=\"display:none;\"";} ?>>
<tr><td colspan="2" class="td27">注册发送短消息内容:</td></tr>
<tr><td class="vtop rowform"><textarea rows="6" name="cd_bodymessage" cols="50" class="tarea"><?php echo cd_bodymessage; ?></textarea></td><td class="vtop tips2">用户登录会员中心时收到的短消息</td></tr>
</tbody>
<tr><td colspan="2" class="td27">会员发布音乐开关:</td></tr>
<tr><td class="vtop rowform">
<select name="cd_usermusic">
<option value="yes"<?php if(cd_usermusic=="yes"){echo " selected";} ?>>开启</option>
<option value="no"<?php if(cd_usermusic=="no"){echo " selected";} ?>>关闭</option>
</select>
</td><td class="vtop tips2">默认为“开启”</td></tr>
<tr><td colspan="2" class="td27">记录登陆在线时间:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_onlinehold; ?>" name="cd_onlinehold" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">秒</td></tr>
<tr><td colspan="2" class="td27">个人动态保留天数:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_feedday; ?>" name="cd_feedday" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">天</td></tr>
<tr><td colspan="2" class="td27">试听记录保留天数:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_listenday; ?>" name="cd_listenday" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">天</td></tr>
<tr><td colspan="2" class="td27">通知信息保留天数:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_notificationday; ?>" name="cd_notificationday" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">天</td></tr>
<tr><td colspan="2" class="td27">会员空间皮肤扣币:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_webpoints; ?>" name="cd_webpoints" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td colspan="2" class="td27">通过美女认证奖励金币:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_mmpoints; ?>" name="cd_mmpoints" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td colspan="2" class="td27">发布音乐自动授予音乐认证:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_checkmusicnum; ?>" name="cd_checkmusicnum" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">设置为0时将关闭自动模式，单位：首</td></tr>
<tr><td colspan="2" class="td27">用户等级每升一级奖励金币:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_upgradepoints; ?>" name="cd_upgradepoints" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">算法为设置的值乘以用户等级</td></tr>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">奖励规则设置</th></tr>
<tr><td colspan="2" class="td27">新注册会员初始:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_points; ?>" name="cd_points" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_userrank; ?>" name="cd_userrank" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">每天登陆:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuaa; ?>" name="cd_pointsuaa" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuab; ?>" name="cd_pointsuab" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">访问别人空间:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuba; ?>" name="cd_pointsuba" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsubb; ?>" name="cd_pointsubb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsubc; ?>" name="cd_pointsubc" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币/经验=每天上限</td></tr>
<tr><td colspan="2" class="td27">发表微博:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuca; ?>" name="cd_pointsuca" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsucb; ?>" name="cd_pointsucb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsucc; ?>" name="cd_pointsucc" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币/经验=每天上限</td></tr>
<tr><td colspan="2" class="td27">上传照片:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuda; ?>" name="cd_pointsuda" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsudb; ?>" name="cd_pointsudb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsudc; ?>" name="cd_pointsudc" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币/经验=每天上限</td></tr>
<tr><td colspan="2" class="td27">上传音乐:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuea; ?>" name="cd_pointsuea" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsueb; ?>" name="cd_pointsueb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">赞许了别人:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsufa; ?>" name="cd_pointsufa" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsufb; ?>" name="cd_pointsufb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsufc; ?>" name="cd_pointsufc" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币/经验=每天上限</td></tr>
<tr><td colspan="2" class="td27">被别人赞许:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsuga; ?>" name="cd_pointsuga" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsugb; ?>" name="cd_pointsugb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsugc; ?>" name="cd_pointsugc" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币/经验=每天上限</td></tr>
</table>
<table class="tb tb2">
<tr><th colspan="15" class="partition">惩罚规则设置</th></tr>
<tr><td colspan="2" class="td27">微博被删除:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdaa; ?>" name="cd_pointsdaa" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdab; ?>" name="cd_pointsdab" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">照片被删除:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdba; ?>" name="cd_pointsdba" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdbb; ?>" name="cd_pointsdbb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">音乐被删除:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdca; ?>" name="cd_pointsdca" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdcb; ?>" name="cd_pointsdcb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">评论被删除:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdda; ?>" name="cd_pointsdda" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsddb; ?>" name="cd_pointsddb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="2" class="td27">留言被删除:</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdea; ?>" name="cd_pointsdea" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">金币</td></tr>
<tr><td class="vtop rowform"><input type="text" class="txt" value="<?php echo cd_pointsdeb; ?>" name="cd_pointsdeb" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td><td class="vtop tips2">经验</td></tr>
<tr><td colspan="15"><div class="fixsel"><input type="submit" name="submit" class="btn" value="提交" /></div></td></tr>
</table>
</div>
</form>
<?php
}
function save(){
if(!submitcheck('submit')){ShowMessage("表单验证不符，无法提交！","admin.php","infotitle3",3000,1);}
$cd_webname = SafeRequest("cd_webname","post");
$cd_weburl = SafeRequest("cd_weburl","post");
$cd_keywords = SafeRequest("cd_keywords","post");
$cd_description = SafeRequest("cd_description","post");
$cd_webqq = SafeRequest("cd_webqq","post");
$cd_webicp = SafeRequest("cd_webicp","post");
$cd_webmail = SafeRequest("cd_webmail","post");
$cd_lockmail = SafeRequest("cd_lockmail","post");
$cd_webmailsmtp = SafeRequest("cd_webmailsmtp","post");
$cd_webmailpswd = SafeRequest("cd_webmailpswd","post");
$cd_webcodea = SafeRequest("cd_webcodea","post");
$cd_webcodeb = SafeRequest("cd_webcodeb","post");
$cd_webstat = SafeRequest("cd_webstat","post");
$cd_weboffa = SafeRequest("cd_weboffa","post");
$cd_weboffb = SafeRequest("cd_weboffb","post");
$cd_iscache = SafeRequest("cd_iscache","post");
$cd_userhtml = SafeRequest("cd_userhtml","post");
$cd_webhtml = SafeRequest("cd_webhtml","post");
$cd_templatedir = SafeRequest("cd_templatedir","post");
$cd_ucenter = SafeRequest("cd_ucenter","post");
$cd_calistfolder = SafeRequest("cd_calistfolder","post");
$cd_caplayfolder = SafeRequest("cd_caplayfolder","post");
$cd_caspecialfolder = SafeRequest("cd_caspecialfolder","post");
$cd_casingerfolder = SafeRequest("cd_casingerfolder","post");
$cd_cavideocfolder = SafeRequest("cd_cavideocfolder","post");
$cd_cavideofolder = SafeRequest("cd_cavideofolder","post");
$cd_uptype = SafeRequest("cd_uptype","post");
$cd_upext = SafeRequest("cd_upext","post");
$cd_upnum = SafeRequest("cd_upnum","post");
$cd_upkbps = SafeRequest("cd_upkbps","post");
$cd_upsize = SafeRequest("cd_upsize","post");
$cd_remoteup = SafeRequest("cd_remoteup","post");
$cd_ftphost = SafeRequest("cd_ftphost","post");
$cd_ftpuser = SafeRequest("cd_ftpuser","post");
$cd_ftppass = SafeRequest("cd_ftppass","post");
$cd_ftpdomain = SafeRequest("cd_ftpdomain","post");
$cd_ftpport = SafeRequest("cd_ftpport","post");
$cd_ftptype = SafeRequest("cd_ftptype","post");
$cd_ftproot = SafeRequest("cd_ftproot","post");
$cd_ftpdir = SafeRequest("cd_ftpdir","post");
$cd_ossbucket = SafeRequest("cd_ossbucket","post");
$cd_osskeyid = SafeRequest("cd_osskeyid","post");
$cd_osskeysecret = SafeRequest("cd_osskeysecret","post");
$cd_alipayid = SafeRequest("cd_alipayid","post");
$cd_alipaykey = SafeRequest("cd_alipaykey","post");
$cd_alipayuid = SafeRequest("cd_alipayuid","post");
$cd_qqappid = SafeRequest("cd_qqappid","post");
$cd_qqappkey = SafeRequest("cd_qqappkey","post");
$cd_usery = SafeRequest("cd_usery","post");
$cd_fsmessage = SafeRequest("cd_fsmessage","post");
$cd_bodymessage = SafeRequest("cd_bodymessage","post");
$cd_usermusic = SafeRequest("cd_usermusic","post");
$cd_onlinehold = SafeRequest("cd_onlinehold","post");
$cd_feedday = SafeRequest("cd_feedday","post");
$cd_listenday = SafeRequest("cd_listenday","post");
$cd_notificationday = SafeRequest("cd_notificationday","post");
$cd_webpoints = SafeRequest("cd_webpoints","post");
$cd_mmpoints = SafeRequest("cd_mmpoints","post");
$cd_checkmusicnum = SafeRequest("cd_checkmusicnum","post");
$cd_upgradepoints = SafeRequest("cd_upgradepoints","post");
$cd_points = SafeRequest("cd_points","post");
$cd_userrank = SafeRequest("cd_userrank","post");
$cd_pointsuaa = SafeRequest("cd_pointsuaa","post");
$cd_pointsuab = SafeRequest("cd_pointsuab","post");
$cd_pointsuba = SafeRequest("cd_pointsuba","post");
$cd_pointsubb = SafeRequest("cd_pointsubb","post");
$cd_pointsubc = SafeRequest("cd_pointsubc","post");
$cd_pointsuca = SafeRequest("cd_pointsuca","post");
$cd_pointsucb = SafeRequest("cd_pointsucb","post");
$cd_pointsucc = SafeRequest("cd_pointsucc","post");
$cd_pointsuda = SafeRequest("cd_pointsuda","post");
$cd_pointsudb = SafeRequest("cd_pointsudb","post");
$cd_pointsudc = SafeRequest("cd_pointsudc","post");
$cd_pointsuea = SafeRequest("cd_pointsuea","post");
$cd_pointsueb = SafeRequest("cd_pointsueb","post");
$cd_pointsufa = SafeRequest("cd_pointsufa","post");
$cd_pointsufb = SafeRequest("cd_pointsufb","post");
$cd_pointsufc = SafeRequest("cd_pointsufc","post");
$cd_pointsuga = SafeRequest("cd_pointsuga","post");
$cd_pointsugb = SafeRequest("cd_pointsugb","post");
$cd_pointsugc = SafeRequest("cd_pointsugc","post");
$cd_pointsdaa = SafeRequest("cd_pointsdaa","post");
$cd_pointsdab = SafeRequest("cd_pointsdab","post");
$cd_pointsdba = SafeRequest("cd_pointsdba","post");
$cd_pointsdbb = SafeRequest("cd_pointsdbb","post");
$cd_pointsdca = SafeRequest("cd_pointsdca","post");
$cd_pointsdcb = SafeRequest("cd_pointsdcb","post");
$cd_pointsdda = SafeRequest("cd_pointsdda","post");
$cd_pointsddb = SafeRequest("cd_pointsddb","post");
$cd_pointsdea = SafeRequest("cd_pointsdea","post");
$cd_pointsdeb = SafeRequest("cd_pointsdeb","post");

$strs="<?php"."\r\n";
$strs=$strs."define(\"cd_webname\",\"".$cd_webname."\");\r\n";
$strs=$strs."define(\"cd_weburl\",\"".$cd_weburl."\");\r\n";
$strs=$strs."define(\"cd_keywords\",\"".$cd_keywords."\");\r\n";
$strs=$strs."define(\"cd_description\",\"".$cd_description."\");\r\n";
$strs=$strs."define(\"cd_webqq\",\"".$cd_webqq."\");\r\n";
$strs=$strs."define(\"cd_webicp\",\"".$cd_webicp."\");\r\n";
$strs=$strs."define(\"cd_webmail\",\"".$cd_webmail."\");\r\n";
$strs=$strs."define(\"cd_lockmail\",\"".$cd_lockmail."\");\r\n";
$strs=$strs."define(\"cd_webmailsmtp\",\"".$cd_webmailsmtp."\");\r\n";
$strs=$strs."define(\"cd_webmailpswd\",\"".$cd_webmailpswd."\");\r\n";
$strs=$strs."define(\"cd_webcodea\",\"".$cd_webcodea."\");\r\n";
$strs=$strs."define(\"cd_webcodeb\",\"".$cd_webcodeb."\");\r\n";
$strs=$strs."define(\"cd_webstat\",\"".$cd_webstat."\");\r\n";
$strs=$strs."define(\"cd_weboffa\",\"".$cd_weboffa."\");\r\n";
$strs=$strs."define(\"cd_weboffb\",\"".$cd_weboffb."\");\r\n";
$strs=$strs."define(\"cd_iscache\",\"".$cd_iscache."\");\r\n";
$strs=$strs."define(\"cd_userhtml\",\"".$cd_userhtml."\");\r\n";
$strs=$strs."define(\"cd_webhtml\",\"".$cd_webhtml."\");\r\n";
$strs=$strs."define(\"cd_templatedir\",\"".$cd_templatedir."\");\r\n";
$strs=$strs."define(\"cd_ucenter\",\"".$cd_ucenter."\");\r\n";
$strs=$strs."define(\"cd_calistfolder\",\"".$cd_calistfolder."\");\r\n";
$strs=$strs."define(\"cd_caplayfolder\",\"".$cd_caplayfolder."\");\r\n";
$strs=$strs."define(\"cd_caspecialfolder\",\"".$cd_caspecialfolder."\");\r\n";
$strs=$strs."define(\"cd_casingerfolder\",\"".$cd_casingerfolder."\");\r\n";
$strs=$strs."define(\"cd_cavideocfolder\",\"".$cd_cavideocfolder."\");\r\n";
$strs=$strs."define(\"cd_cavideofolder\",\"".$cd_cavideofolder."\");\r\n";
$strs=$strs."define(\"cd_uptype\",\"".$cd_uptype."\");\r\n";
$strs=$strs."define(\"cd_upext\",\"".$cd_upext."\");\r\n";
$strs=$strs."define(\"cd_upnum\",\"".$cd_upnum."\");\r\n";
$strs=$strs."define(\"cd_upkbps\",\"".$cd_upkbps."\");\r\n";
$strs=$strs."define(\"cd_upsize\",\"".$cd_upsize."\");\r\n";
$strs=$strs."define(\"cd_remoteup\",\"".$cd_remoteup."\");\r\n";
$strs=$strs."define(\"cd_ftphost\",\"".$cd_ftphost."\");\r\n";
$strs=$strs."define(\"cd_ftpuser\",\"".$cd_ftpuser."\");\r\n";
$strs=$strs."define(\"cd_ftppass\",\"".$cd_ftppass."\");\r\n";
$strs=$strs."define(\"cd_ftpdomain\",\"".$cd_ftpdomain."\");\r\n";
$strs=$strs."define(\"cd_ftpport\",\"".$cd_ftpport."\");\r\n";
$strs=$strs."define(\"cd_ftptype\",\"".$cd_ftptype."\");\r\n";
$strs=$strs."define(\"cd_ftproot\",\"".$cd_ftproot."\");\r\n";
$strs=$strs."define(\"cd_ftpdir\",\"".$cd_ftpdir."\");\r\n";
$strs=$strs."define(\"cd_ossbucket\",\"".$cd_ossbucket."\");\r\n";
$strs=$strs."define(\"cd_osskeyid\",\"".$cd_osskeyid."\");\r\n";
$strs=$strs."define(\"cd_osskeysecret\",\"".$cd_osskeysecret."\");\r\n";
$strs=$strs."define(\"cd_alipayid\",\"".$cd_alipayid."\");\r\n";
$strs=$strs."define(\"cd_alipaykey\",\"".$cd_alipaykey."\");\r\n";
$strs=$strs."define(\"cd_alipayuid\",\"".$cd_alipayuid."\");\r\n";
$strs=$strs."define(\"cd_qqappid\",\"".$cd_qqappid."\");\r\n";
$strs=$strs."define(\"cd_qqappkey\",\"".$cd_qqappkey."\");\r\n";
$strs=$strs."define(\"cd_usery\",\"".$cd_usery."\");\r\n";
$strs=$strs."define(\"cd_fsmessage\",\"".$cd_fsmessage."\");\r\n";
$strs=$strs."define(\"cd_bodymessage\",\"".$cd_bodymessage."\");\r\n";
$strs=$strs."define(\"cd_usermusic\",\"".$cd_usermusic."\");\r\n";
$strs=$strs."define(\"cd_onlinehold\",\"".$cd_onlinehold."\");\r\n";
$strs=$strs."define(\"cd_feedday\",\"".$cd_feedday."\");\r\n";
$strs=$strs."define(\"cd_listenday\",\"".$cd_listenday."\");\r\n";
$strs=$strs."define(\"cd_notificationday\",\"".$cd_notificationday."\");\r\n";
$strs=$strs."define(\"cd_webpoints\",\"".$cd_webpoints."\");\r\n";
$strs=$strs."define(\"cd_mmpoints\",\"".$cd_mmpoints."\");\r\n";
$strs=$strs."define(\"cd_checkmusicnum\",\"".$cd_checkmusicnum."\");\r\n";
$strs=$strs."define(\"cd_upgradepoints\",\"".$cd_upgradepoints."\");\r\n";
$strs=$strs."define(\"cd_points\",\"".$cd_points."\");\r\n";
$strs=$strs."define(\"cd_userrank\",\"".$cd_userrank."\");\r\n";
$strs=$strs."define(\"cd_pointsuaa\",\"".$cd_pointsuaa."\");\r\n";
$strs=$strs."define(\"cd_pointsuab\",\"".$cd_pointsuab."\");\r\n";
$strs=$strs."define(\"cd_pointsuba\",\"".$cd_pointsuba."\");\r\n";
$strs=$strs."define(\"cd_pointsubb\",\"".$cd_pointsubb."\");\r\n";
$strs=$strs."define(\"cd_pointsubc\",\"".$cd_pointsubc."\");\r\n";
$strs=$strs."define(\"cd_pointsuca\",\"".$cd_pointsuca."\");\r\n";
$strs=$strs."define(\"cd_pointsucb\",\"".$cd_pointsucb."\");\r\n";
$strs=$strs."define(\"cd_pointsucc\",\"".$cd_pointsucc."\");\r\n";
$strs=$strs."define(\"cd_pointsuda\",\"".$cd_pointsuda."\");\r\n";
$strs=$strs."define(\"cd_pointsudb\",\"".$cd_pointsudb."\");\r\n";
$strs=$strs."define(\"cd_pointsudc\",\"".$cd_pointsudc."\");\r\n";
$strs=$strs."define(\"cd_pointsuea\",\"".$cd_pointsuea."\");\r\n";
$strs=$strs."define(\"cd_pointsueb\",\"".$cd_pointsueb."\");\r\n";
$strs=$strs."define(\"cd_pointsufa\",\"".$cd_pointsufa."\");\r\n";
$strs=$strs."define(\"cd_pointsufb\",\"".$cd_pointsufb."\");\r\n";
$strs=$strs."define(\"cd_pointsufc\",\"".$cd_pointsufc."\");\r\n";
$strs=$strs."define(\"cd_pointsuga\",\"".$cd_pointsuga."\");\r\n";
$strs=$strs."define(\"cd_pointsugb\",\"".$cd_pointsugb."\");\r\n";
$strs=$strs."define(\"cd_pointsugc\",\"".$cd_pointsugc."\");\r\n";
$strs=$strs."define(\"cd_pointsdaa\",\"".$cd_pointsdaa."\");\r\n";
$strs=$strs."define(\"cd_pointsdab\",\"".$cd_pointsdab."\");\r\n";
$strs=$strs."define(\"cd_pointsdba\",\"".$cd_pointsdba."\");\r\n";
$strs=$strs."define(\"cd_pointsdbb\",\"".$cd_pointsdbb."\");\r\n";
$strs=$strs."define(\"cd_pointsdca\",\"".$cd_pointsdca."\");\r\n";
$strs=$strs."define(\"cd_pointsdcb\",\"".$cd_pointsdcb."\");\r\n";
$strs=$strs."define(\"cd_pointsdda\",\"".$cd_pointsdda."\");\r\n";
$strs=$strs."define(\"cd_pointsddb\",\"".$cd_pointsddb."\");\r\n";
$strs=$strs."define(\"cd_pointsdea\",\"".$cd_pointsdea."\");\r\n";
$strs=$strs."define(\"cd_pointsdeb\",\"".$cd_pointsdeb."\");\r\n";
$strs=$strs."?>";

if(!$fp = fopen('source/global/global_config.php', 'w')) {
	ShowMessage("保存失败，文件{source/global/global_config.php}没有写入权限！","history.back(1);","infotitle3",3000,2);
	}
	if($cd_webhtml<>2 && file_exists("index.html")){unlink("index.html");}
	$ifile = new iFile('source/global/global_config.php','w');
	$ifile->WriteFile($strs,3);
	ShowMessage("恭喜您，设置保存成功！","history.back(1);","infotitle2",1000,2);
}
?>