3 define(
'CURSCRIPT',
'chat');
5 require
'./include/common.inc.php';
8 if(!$cuser || !defined(
'IN_GAME')) {
12 if(($sendmode ==
'send')&&$chatmsg) {
13 if(strpos($chatmsg,
'/') === 0) {
14 $result =
$db->query(
"SELECT groupid FROM {$tablepre}users WHERE username='$cuser'");
17 if(strpos($chatmsg,
'/post') === 0) {
18 $chatmsg = substr($chatmsg,6);
20 $db->query(
"INSERT INTO {$tablepre}chat (type,`time`,send,msg) VALUES ('4','$now','$cuser','$chatmsg')");
23 $chatdata = array(
'lastcid' => $lastcid,
'msg' => Array(
'<span class="red">指令错误。</span><br>'));
26 $chatdata = array(
'lastcid' => $lastcid,
'msg' => Array(
'<span class="red">聊天信息不能用 / 开头。</span><br>'));
30 $db->query(
"INSERT INTO {$tablepre}chat (type,`time`,send,msg) VALUES ('0','$now','$cuser','$chatmsg')");
32 $db->query(
"INSERT INTO {$tablepre}chat (type,`time`,send,recv,msg) VALUES ('1','$now','$cuser','$teamID','$chatmsg')");
getchat($last, $team='', $limit=0)
【生存者数:<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
if(!$cuser||!$cpass) $result
compatible_json_encode($data)