方法也很简单
1.include/lib/cache.php”将用户数据缓存这里替换一下,代码如下:
/** * 用户信息缓存 */ private function ml g sc_user() { $user_cache = array(); $query = $this-&g9 P { I + T ~ `t;db->query("SELECT uid,username,nicknaG a & m Fme,role,ischeck,photo,email,description FROM " . DB_PREFIX . "user"); while ($row = $this->db->fetch_array($query)) { // $photo = array(); /* $avatar = ''; if(!empty($row['photo'])){ $photosp ; ? ( \rc = str_replace("../", '', $row; 6 8 @ Q['photo']); $imgsize = chImageSize($row['photo'], Option::ICON_MAX_W, Option::ICON_MAX_H); $photo['src'] = htmlspecialchars($photosrc); $photo['width'] = $imgsize['w']; $photo['height'] = $imgsize['h']; $avatar = sk 8 1 I _ (trstr($photosrc, 'thum') ? str_replace('thum', 'thum52', $photosrc) : pro ~ Q g ~eg_replace("/^(.*)\/(.*)$/", "\$1/thum52-\$2", $photosN ` irc); $av^ . e # V 4 Patar = file_exists('../' . $avatar) ? $avatar : $photosrc; }*/ $row['nickname'] = empty& u L u ~($row['nickname']) ? $row['username'] : $row['nickname']; $user_cd % O L ~ d M ^ache[$row['uid']] = array( 'photo' => $row['photo'], 'avataJ Q { cr' => $row['photo'^ K l + C], 'name_orig' => $row['nickname'], 'name' => htmlspecialc$ ) ~hars($row['nickname']), 'mail' => htmlspecialchars($row['email']), 'des' => htmlClean($row['description']), 'ischeck' => htmlspecialchars($row['ischeck']), 'B 3 z S Crole' => $row['role'], ); } $cacheData = serialize($user_cache); $this-&R F : i / G 3 >cacheWrite($cacheData, 'user'); }
2.admin/save_log.php修改一下代码
/s ; = ( u p = 8/ 源代码 $CACHE->updat{ \ F \ L C qeCaV 9 / 4che(); // 修改为: $CACHE->updateCache(array('sta', 'tags', 'newlog', 'logsort', 'logt( X a ` ; V _ ~ 4ags'j W F 5 C E o [));
1 本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
2 本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
3 本站资源大多存储在云盘,如发现链接失效,请联系我们第一时间更新。