setting_save.asp

来自「里面说明详细」· ASP 代码 · 共 66 行

ASP
66
字号
<%
if session("chat_admin")<>"yes" then
  response.redirect "login.asp"
  response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统的其他一些设置</title>
<style type="text/css">
<!--
.p9 {font-size: 10pt; line-height: 14pt }
-->
</style>
</head>
<body topmargin="3" leftmargin="3">
<table border="0" width="100%" bgcolor="#C8C9D2">
  <tr>
    <td width="52%"><a href="index.asp">系统管理首页</a>-><strong>聊天室的其他一些设置</strong></td>
    <td width="48%">
      <p align="right" class="p9"><a href="logout.asp"><font color=red>退出系统</font></a>&nbsp;&nbsp; <a href="http://www.easyfad.com">技术支持</a>&nbsp;&nbsp; <a href="http://www.jchat.com.cn">关于JChat</a></td>
  </tr>
</table>
<table border="0" width="100%" height="85%" bgcolor="#E7E7EB">
  <tr>
    <td width="100%" class="p9" valign="top"><br>
<% 
'$filename="../roominfo/adinfo.ini";
'if($adinfomsg!="")
'{
' $file=fopen($filename,"w");
' $adinfomsg=stripslashes($adinfomsg);
' $msglen=strlen($adinfomsg);
' fwrite($file,$adinfomsg,$msglen);
' fclose($file);
' if($jobtitle!="")
' {
'  $file=fopen("../jobtitle.asp","w");
'  $jobtitle=stripslashes($jobtitle);
'  $msglen=strlen($jobtitle);
'  fwrite($file,$jobtitle,$msglen);
'  fclose($file);
' }
' echo "保存设置成功。";
'}
'else
'{
'  echo "更新设置失败,无法写文件。";
'}
response.write "对不起,这个免费版本的JChat暂时没有提供这个功能。请手工修改chatroom/roominfo/adinfo.ini这个文件的内容。如果你需要更强功能的JChat,请注册JChat正式版本http://www.jchat.com.cn"
%>
 <a href="#" onclick="history.back(0);return false;">返 回</a>
 </td>
  </tr>
</table>
<table border="0" width="100%" bgcolor="#C8C9D2">
  <tr>
    <td width="100%" class="p9">
      <p align="right">版本:<font color="#FF0000">JChat V3.6.2</font>&nbsp;&nbsp;</p> 
    </td> 
  </tr> 
</table> 
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?