chatwrite.php用以下文件全部替换:
- <?
- require_once './include/common.php';
- require_once DISCUZ_ROOT.'./include/forum.php';
- $other=($checkbox==2)?"1":"0";
- $name=$discuz_user;
- if(empty($name)) {
- chat_msg('forum_nopermission', 'chat_reg.php') ;
- }
- if(!empty($bsay) && trim($bsay)!=""){
- $other=($toname=="大家")?"0":$other;
- $deltime=time();
- $timer = gmdate("$dateformat $timeformat", $deltime + $timeoffset * 3600);
- $db->query("INSERT INTO cdb_chat (fn, tn, tim, col, says, oth, deltime) VALUES ('$name', '$toname', '$timer', '$coloer', '$bsay','$other', '$deltime')");
- }
- ?>
- <html>
- <body onload="window.location=('chatlist.php');" leftmargin="0" topmargin="0" text="#FFFFFF">
- <body>
- </html>
复制代码 |