ecshop 购买记录和网站评论的用户名使用***
2017-05-22 18:07:23
网先生编辑部
修改购买记录
$arr[$row['comment_id']]['username'] = $row['user_name'];
将其替换为:
如下代码:$bought_notes[$key]['add_time'] = local_date("Y-m-d G:i:s", $val['add_time']);
$arr[$row['comment_id']]['username'] = mb_substr($row['user_name'], 0, 1, 'utf-8').'***'. mb_substr($row['user_name'], -1, 1, 'utf-8');
找到includes/lib_main.php
一 修改用户评论的
在其下面添加这个:$bought_notes[$key]['user_name'] = mb_substr($val['user_name'], 0, 1, 'utf-8').'***'. mb_substr($val['user_name'], -1, 1, 'utf-8');
找到includes/lib_insert.php