修改do_register.php文件
1.大约在117行找到- $inserts = $fuids = $pokes = array();
复制代码 修改为- $flog = $inserts = $fuids = $pokes = array();
复制代码 2.找到(大约125行)- $inserts[] = "('$value[uid]','$newuid','$username','1','$_SGLOBAL[timestamp]')";
复制代码 在后面插入- //添加好友变更记录
- $flog[] = "('$value[uid]','$newuid','add','$_SGLOBAL[timestamp]')";
复制代码 3.找到(大约130行)- $_SGLOBAL['db']->query("REPLACE INTO ".tname('poke')." (uid,fromuid,fromusername,dateline) VALUES ".implode(',', $pokes));
复制代码 后面插入- $_SGLOBAL['db']->query("REPLACE INTO ".tname('friendlog')." (uid,fuid,action,dateline) VALUES ".implode(',', $flog));
复制代码 |