怎样设置网店的在线人数?

2016-07-07 15:02 来源:www.chinab4c.com 作者:ecshop专家


回答:
Include\lib_insert.php
函数function insert_query_info()的结尾处附近
$online_count = $GLOBALS['db']->getOne("SELECT COUNT(*) FROM " . $GLOBALS['ecs']->table('sessions'))//在线人数
$online_count = $online_count+100起始人数即为100了