./source/network.php中
下面这段代码控制- $piclist = array();
- $query = $_SGLOBAL['db']->query("SELECT album.albumname, album.friend, space.username, space.name, space.namestatus, main.*
- FROM ".tname('pic')." main
- LEFT JOIN ".tname('album')." album ON album.albumid=main.albumid
- LEFT JOIN ".tname('space')." space ON space.uid=main.uid
- WHERE ".implode(' AND ', $wherearr)."
- ORDER BY main.{$order} $sc LIMIT 0,$shownum");
- while ($value = $_SGLOBAL['db']->fetch_array($query)) {
- if(empty($value['friend'])) {
- $value['pic'] = pic_get($value['filepath'], $value['thumb'], $value['remote']);
- $piclist[] = $value;
- }
- }
- if($_SGLOBAL['network']['pic']['cache']) {
- swritefile($cachefile, serialize($piclist));
- }
- }
- foreach($piclist as $key => $value) {
- realname_set($value['uid'], $value['username'], $value['name'], $value['namestatus']);
- $piclist[$key] = $value;
- }
复制代码 |