3600) { $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE tid IN (".dimplode($GLOBALS['stickytids']).") ORDER BY lastpost DESC"); while($thread = DB::fetch($query)) { $threads[] = $thread; } $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE `fid`='".$_G['fid']."' AND `displayorder`='1' ORDER BY lastpost DESC"); while($thread = DB::fetch($query)) { $threads[] = $thread; } savecache('mobile_toplist_'.$_G['fid'], array('variable' => $threads, 'expiration' => TIMESTAMP)); } else { $threads = $_G['cache']['mobile_toplist_'.$_G['fid']]['variable']; } $variable = array( 'forum_threadlist' => mobile_core::getvalues($threads, array('/^\d+$/')), ); $variable['forum']['password'] = $variable['forum']['password'] ? '1' : '0'; mobile_core::result(mobile_core::variable($variable)); } } ?>