不考虑加个在线人数统计功能吗?
不考虑加个在线人数统计功能吗?
By su-root
at 2016-03-26
0人收藏 • 2226人看过
<?php
$pw_tmsgs = GetTtable($id);
$rt = $db->get_one("SELECT t.tid,t.subject,tm.content,tm.ifconvert FROM pw_threads t LEFT JOIN $pw_tmsgs tm ON tm.tid=t.tid WHERE t.tid=".S::sqlEscape($id));
$rt['content'] = str_replace("\n","<br>",$rt['content']);
//* include_once pwCache::getPath(D_P.'data/bbscache/wordsfb.php');
pwCache::getData(D_P.'data/bbscache/wordsfb.php');
foreach ($alarm as $key => $value) {
$rt['content'] = str_replace($key,'<span style="background-color:#ffff66">'.$key.'</span>',$rt['content']);
}<script>
$.ajax({
url:"ajax.php",
type:"post",
success:function(result,state)
{
alert(state);
},
complete:function(XMLHttpRequest,textstatus)
{
alert('请求状态是:'+textstatus);
},
timeout:3000,
error:function(XMLHttpRequest, textStatus, errorThrown)
{
alert('出错,状态是:'+textStatus);
}
});
</script>发段脚本玩玩
- 登录后方可回帖
9 个回复 | 最后更新于 2016-03-27
回复#2 @lincanbin :
毕竟是开源项目,人家可以搞个虚假数据,用来装X。
回复#3 @su-root :
并不觉得有意义。
回复#4 @lincanbin :
好吧,回复真快。我差点以为您是机器人。
回复#6 @lincanbin :
这个推送用的是ajax回调吧
回复#8 @lincanbin :
哦,了解。