帮你找出来了,修改viewcomment.php,找到这段代码- $setsqlarr = array(
- 'itemid' => $itemid,
- 'type' => 'news',
- 'uid' => '0',
- 'authorid' => $_SGLOBAL['supe_uid'],
- 'author' => $_SGLOBAL['supe_username'],
- 'ip' => $_SGLOBAL['onlineip'],
- 'dateline' => $_SGLOBAL['timestamp'],
- 'rates' => $_POST['rates'],
- 'message' => $_POST['message']
- );
复制代码 在这段代码之前增加一行:- if (!$_SGLOBAL['supe_username'] OR $_SGLOBAL['supe_username'] == 'Guest') { $_SGLOBAL['supe_username'] = '游客';}
复制代码 GBK版本的直接保存,如果是UTF-8版的另存为UTF-8编码。 |