www.gusucode.com > 搜一次CMS电影程序 PHP 1.5源码程序 > admin/users/admin_userset.php
<?php /* ************************************************************************************************** *软件名称: 搜一次 Content Management System *版本编号: PHPV1.0版 *官方网站: http://www.syccms.com * 软件著作: 无痕,暮寒,新手℡鼠标 *Copyright (C) 2009-2010 Soyici Inc. 搜一次网络事业部 版权所有 *************************************************************************************************** */ include "../../include/conn.php"; include "../../include/function.php"; include "../../include/userset.php"; include "../admin_version.php"; include "../admin_loginstate.php"; ?> <!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" /> <title>基本设置</title> <link type="text/css" href="../images/style.css" rel="stylesheet" /> <script language="javascript" src="../js/jquery.js"></script> </head> <body> <div class="r_main" style="margin-top:10px;"> <div class="r_content"> <div class="r_content_1"> <form action="?action=saveconf" method="post" name="form4" id="form4"> <table border="0" cellpadding="0" cellspacing="0" class="tb_Style" width="98%" style="margin:0 auto;"> <tr> <td colspan="3" class="td_title" height="30"> 评论留言基本配置</td> </tr> <tr> <td width="14%" height="30" align="left" class="td_border"> 开启会员功能:</td> <td align="left" class="td_border"><input type="radio" class="radio" id="S_VipFun" name="S_VipFun" <?php if(S_VipFun==1){echo("checked='checked'");}?> value="1"> 开启 <input type="radio" class="radio" id="S_VipFun" name="S_VipFun" <?php if(S_VipFun==0){echo("checked='checked'");}?> value="0"> 关闭 </td> <td width="63%" align="left" class="td_border"> 开启会员注册: <input type="radio" class="radio" id="S_VipReg" name="S_VipReg" <?php if(S_VipReg==1){echo("checked='checked'");}?> value="1" /> 开启 <input type="radio" class="radio" id="S_VipReg" name="S_VipReg" <?php if(S_VipReg==0){echo("checked='checked'");}?> value="0" /> 关闭</td> </tr> <tr> <td height="30" align="left" class="td_border"> 积分转换天数:</td> <td align="left" class="td_border"> <input type="text" name="S_TGChange" id="S_TGChange" value="<?php echo S_TGChange?>" /> <font color="#FF0000">* </font><br /> <font color="#FF0000"> 设置互换模式多少积分转换为1天!</font></td> <td align="left" class="td_border"> 注册赠送积分: <input type="text" name="S_GiftPoints" id="S_GiftPoints" value="<?php echo S_GiftPoints?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/> <font color="#FF0000">*</font> </td> </tr> <tr> <td height="30" align="left" class="td_border"> 开启推广功能:</td> <td align="left" class="td_border"><input type="radio" name="S_TGFun" value="1" class="radio" <?php if(S_TGFun==1){echo("checked='checked'");}?> /> 开启 <input type="radio" name="S_TGFun" value="0" class="radio" <?php if(S_TGFun==0){echo("checked='checked'");}?> /> 关闭 </td> <td class="td_border" align="left">推广获取积分: <input name="S_Points" id="S_Points" type="text" value="<?php echo S_Points?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/> <font color="#FF0000">*</font></td> </tr> <tr> <td height="30" align="left" class="td_border"> 推广页面地址:</td> <td align="left" class="td_border" colspan="2"> <input name="S_TGURL" type="text" size="65" value="<?php echo S_TGURL?>"/> <font color="#FF0000">* </font><br /> <font color="#FF0000">会员推广时链接的页面,不填写则默认是您的网站首页!</font></td> </tr> <tr> <td height="30" align="left" class="td_border"> 开启评论功能:</td> <td align="left" class="td_border"><input type="radio" name="S_IsOpen" id="radio" value="1" class="radio" <?php if(Syc_Star==1){echo("checked='checked'");}?> /> 开启 <input type="radio" name="S_IsOpen" id="radio" value="0" class="radio" <?php if(Syc_Star==0){echo("checked='checked'");}?> /> 关闭 </td> <td class="td_border" align="left">开启留言功能: <input type="radio" name="S_MIsOpen" id="S_MIsOpen" value="1" class="radio" <?php if(S_MStar==1){echo("checked='checked'");}?> /> 开启 <input type="radio" name="S_MIsOpen" id="S_MIsOpen" value="0" class="radio" <?php if(S_MStar==0){echo("checked='checked'");}?> /> 关闭 </td> </tr> <tr> <td class="td_border" height="30" align="left"> 开启评论审核:</td> <td class="td_border" align="left"><input type="radio" class="radio" id="S_IsCheck" name="S_IsCheck" <?php if(Syc_Check==1){ echo "checked='checked'";}?> value="1" /> 开启 <input type="radio" class="radio" id="S_IsCheck" name="S_IsCheck" <?php if(Syc_Check==0){ echo "checked='checked'";}?> value="0" /> 关闭 </td> <td class="td_border" align="left"> 评论每页数量: <input type="text" name="S_Count" id="S_Count" value="<?php echo Syc_Count?>"> <font color="red">*</font> </td> </tr> <tr> <td class="td_border" height="30" align="left"> 留言网名限制:</td> <td class="td_border" align="left"> <input type="text" name="S_MNameLen" id="S_MNameLen" value="<?php echo S_MNameLen?>"> <font color="red">*</font></td> <td class="td_border" align="left"> 评论网名限制: <input type="text" name="S_NameLen" id="S_NameLen" value="<?php echo Syc_NameLen?>"> <font color="red">*</font> </td> </tr> <tr> <td class="td_border" height="30" align="left"> 留言内容控制:</td> <td class="td_border" align="left"> <input type="text" name="S_MContentLen" id="S_MContentLen" value="<?php echo S_Message?>"> <font color="red">*</font></td> <td class="td_border" align="left"> 评论内容控制: <input type="text" name="S_ContentLen" id="S_ContentLen" value="<?php echo Syc_Comment?>"> <font color="red">*</font> </td> </tr> <tr> <td class="td_border" height="30" align="left"> 留言每页数量:</td> <td class="td_border" align="left"> <input type="text" name="S_MCount" id="S_MCount" value="<?php echo S_MCount?>" /> <font color="red">*</font></td> <td class="td_border" align="left"> 默认用户名称: <input type="text" name="S_NameDefault" id="S_NameDefault" value="<?php echo Syc_Name?>"> <font color="red">*</font> </td> </tr> <tr> <td class="td_border" height="30" align="left"> 留言验证码:</td> <td class="td_border" align="left"> 开启<input type="radio" name="S_Mcode" id="S_Mcode" value="1" class="radio" <?php if(defined('S_Mcode') && S_Mcode!='0') echo "checked"; ?>/> 关闭<input type="radio" name="S_Mcode" id="S_Mcode" value="0" class="radio" <?php if(defined('S_Mcode') && S_Mcode=='0') echo "checked"; ?>/> <font color="red">*</font></td> <td class="td_border" align="left"> 评论验证码: 开启<input type="radio" name="S_Ccode" id="S_Ccode" value="1" class="radio" <?php if(defined('S_Ccode') && S_Ccode!='0') echo "checked"; ?>/> 关闭<input type="radio" name="S_Ccode" id="S_Ccode" value="0" class="radio" <?php if(defined('S_Ccode') && S_Ccode=='0') echo "checked"; ?>/> <font color="red">*(new)</font> </td> </tr> <tr> <td class="td_border" align="left"> 脏话文字过滤:</td> <td class="td_border" align="left" colspan="2"> <textarea name="S_Filter" id="S_Filter" rows="7" cols="80"><?php echo Syc_GSQL?></textarea> <font color="red">*</font></td> </tr> <tr> <td class="td_border" height="30" align="center"> </td> <td class="td_border" height="30"> <input name="submit" type="submit" class="rb1" value="更新留言评论参数" /></td> <td class="td_border" height="30" align="center"> </td> </tr> </table> </form> </div> </div> </div> <?php $action=SafeRequest("action","get"); if($action=="saveconf"){ $S_IsOpen=SafeRequest("S_IsOpen","post"); $S_IsCheck=SafeRequest("S_IsCheck","post"); $S_Count=SafeRequest("S_Count","post"); $S_NameLen=SafeRequest("S_NameLen","post"); $S_ContentLen=SafeRequest("S_ContentLen","post"); $S_NameDefault=SafeRequest("S_NameDefault","post"); $S_Filter=SafeRequest("S_Filter","post"); $S_MIsOpen=SafeRequest("S_MIsOpen","post"); $S_MCount=SafeRequest("S_MCount","post"); $S_MNameLen=SafeRequest("S_MNameLen","post"); $S_MContentLen=SafeRequest("S_MContentLen","post"); $S_VipFun=SafeRequest("S_VipFun","post"); $S_VipReg=SafeRequest("S_VipReg","post"); $S_Points=SafeRequest("S_Points","post"); $S_TGFun=SafeRequest("S_TGFun","post"); $S_TGURL=SafeRequest("S_TGURL","post"); $S_TGChange=SafeRequest("S_TGChange","post"); $S_GiftPoints=SafeRequest("S_GiftPoints","post"); $S_Mcode=SafeRequest("S_Mcode","post"); $S_Ccode=SafeRequest("S_Ccode","post"); $strs="<?php"."\n"; $strs=$strs."define(\"Syc_Name\",\"".$S_NameDefault."\");\n"; $strs=$strs."define(\"Syc_Star\",".$S_IsOpen.");\n"; $strs=$strs."define(\"Syc_Check\",".$S_IsCheck.");\n"; $strs=$strs."define(\"Syc_Count\",".$S_Count.");\n"; $strs=$strs."define(\"Syc_NameLen\",".$S_NameLen.");\n"; $strs=$strs."define(\"Syc_Comment\",".$S_ContentLen.");\n"; $strs=$strs."define(\"S_MStar\",".$S_MIsOpen.");\n"; $strs=$strs."define(\"S_MCount\",".$S_MCount.");\n"; $strs=$strs."define(\"S_MNameLen\",".$S_MNameLen.");\n"; $strs=$strs."define(\"S_Message\",".$S_MContentLen.");\n"; $strs=$strs."define(\"Syc_GSQL\",\"".$S_Filter."\");\n"; $strs=$strs."define(\"S_VipFun\",\"".$S_VipFun."\");\n"; $strs=$strs."define(\"S_VipReg\",\"".$S_VipReg."\");\n"; $strs=$strs."define(\"S_Points\",\"".$S_Points."\");\n"; $strs=$strs."define(\"S_TGFun\",\"".$S_TGFun."\");\n"; $strs=$strs."define(\"S_TGURL\",\"".$S_TGURL."\");\n"; $strs=$strs."define(\"S_TGChange\",\"".$S_TGChange."\");\n"; $strs=$strs."define(\"S_GiftPoints\",\"".$S_GiftPoints."\");\n"; $strs=$strs."define(\"S_Mcode\",\"".$S_Mcode."\");\n"; $strs=$strs."define(\"S_Ccode\",\"".$S_Ccode."\");\n"; $strs=$strs."?>"; //写文件 $ifile = new iFile('../../include/userset.php','w'); $ifile->WriteFile($strs,3); echo "<script>window.location='admin_userset.php';</script>";} ?> <?php include "../admin_bottom.php"; ?> </body> </html>