打开index.php文件

查找

dsetcookie(‘indextype’, $indextype, 604800); 

### 下面加入

$lastmembera= $db->fetch_first("SELECT uid, username FROM {$tablepre}members ORDER BY uid DESC LIMIT 0,1");

## 打开discuz.htm文件

查找:

{lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_members}: <em>$totalmembers</em>

替换为:

{lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_maxday}: <em>$postdata[1]</em>, {lang index_members}: <em>$totalmembers</em>, {lang index_threads}: <em>$threads</em>, {lang index_posts}: <em>$posts</em>, {lang welcome_newmember} <cite><a onClick="checkurl(this.href);return false;" href="space.php?uid=$lastmembera[uid]">$lastmembera[username]</a></cite> 

## 更新缓存