在地址栏里输入uchome url,显示的是
query("SELECT main.*, field.* FROM ".tname('blog')." main LEFT JOIN ".tname('blogfield')." field ON field.blogid=main.blogid WHERE ".implode(' AND ', $wherearr)." ORDER BY main.{$order} $sc LIMIT 0,$shownum"); $bloglist = array(); while ($value = $_SGLOBAL['db']->fetch_array($query)) { $value['message'] = getstr($value['message'], 86, 0, 0, 0, 0, -1); $value['subject'] = getstr($value['subject'], 50, 0, 0, 0, 0, -1); $bloglist[] = $value; } if($_SGLOBAL['network']['blog']['cache']) { swritefile($cachefile, serialize($bloglist)); } } foreach($bloglist as $key => $value) { realname_set($value['uid'], $value['username']); $bloglist[$key] = $value; } //图片 $cachefile = S_ROOT.'./data/cache_network_pic.txt'; if(check_network_cache('pic')) { $piclist = unserialize(sreadfile($cachefile)); } else { $sqlarr = mk_network_sql('pic', array('picid', 'uid'), array('hot'), array('dateline'),.........
|