www.gusucode.com > 高端教育培训门户+论坛网站源码程序 > 整站安装/整站源码/source/include/post/post_threadsorts.php
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: post_threadsorts.php 23995 2011-08-18 09:41:27Z zhangguosheng $ */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } require_once libfile('function/threadsort'); threadsort_checkoption($sortid); $forum_optionlist = getsortedoptionlist(); loadcache(array('threadsort_option_'.$sortid, 'threadsort_template_'.$sortid)); $sqlarr = array(); foreach($_G['cache']['threadsort_option_'.$sortid] AS $key => $val) { if($val['profile']) { $sqlarr[] = $val['profile']; } } if($sqlarr) { $member_profile = array(); $_member_profile = C::t('common_member_profile')->fetch($_G['uid']); foreach($sqlarr as $val) { $member_profile[$val] = $_member_profile[$val]; } unset($_member_profile); } threadsort_optiondata($pid, $sortid, $_G['cache']['threadsort_option_'.$sortid], $_G['cache']['threadsort_template_'.$sortid]); ?>