- 论坛徽章:
- 0
|
2可用积分
- function forum_counts($msg,$current,$underCurrent,$newDate,$msg_data) //15行
- {
- $sql="select (forums.date>'$newDate') from forums where id=$msg";
- list($isnew)=OPT_fetch_row(CRM_run_query($sql));
- if ($msg==$current)
- {
- $underCurrent=true;
- $msg_data[5]+=$isnew;
- }
- $sql="select id from forums where parent=$msg";
- $result=CRM_run_query($sql);
- while ($myrow=OPT_fetch_row($result))
- {
- $msg_data=forum_counts($myrow[0],$current,$underCurrent,$newDate,$msg_data);
- }
- $msg_data[1]++;
- $msg_data[3]+=$isnew;
- if ($underCurrent)
- {
- $msg_data[2]++;
- $msg_data[4]+=$isnew;
- }
- return($msg_data);
- }
复制代码 //38行
Cannot redeclare forum_counts() (previously declared in /var/www/opt/forums/forum_lib.php:15) in /var/www/opt/forums/forum_lib.php on line 38 |
|