} elseif ($status == 1) { showmessage('forum_group_status_off'); } elseif ($status == 2) { showmessage('forum_group_noallowed', "forum.php?mod=group&fid={$_G['fid']}"); } elseif ($status == 3) { showmessage('forum_group_moderated', "forum.php?mod=group&fid={$_G['fid']}"); } elseif ($status == 4) { showmessage('forum_group_not_groupmember', "forum.php?mod=forumdisplay&fid={$_G['fid']}"); } } if (empty($_G['gp_action'])) { showmessage('undefined_action', NULL); } elseif ($_G['gp_action'] == 'threadsorts') { require_once libfile('function/threadsort'); loadcache(array('threadsort_option_' . $_G['gp_sortid'], 'threadsort_template_' . $_G['gp_sortid'])); threadsort_optiondata($_G['gp_pid'], $_G['gp_sortid'], $_G['cache']['threadsort_option_' . $_G['gp_sortid']], $_G['cache']['threadsort_template_' . $_G['gp_sortid']]); $template = intval($_G['gp_operate']) ? 'forum/search_sortoption' : 'forum/post_sortoption'; include template($template); exit; } elseif ($_G['gp_action'] == 'albumphoto') { include_once libfile('function/home'); $perpage = 8; $page = max(1, $_G['gp_page']); $start_limit = ($page - 1) * $perpage; $aid = intval($_G['gp_aid']); $photolist = array(); $count = DB::result_first("SELECT picnum FROM " . DB::table('home_album') . " WHERE albumid='{$aid}' AND uid='{$_G['uid']}'"); $query = DB::query("SELECT * FROM " . DB::table('home_pic') . " WHERE albumid='{$aid}' AND uid='{$_G['uid']}' ORDER BY dateline DESC LIMIT {$start_limit},{$perpage}"); while ($value = DB::fetch($query)) { $value['bigpic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote'], 0); $value['pic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote']);
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: post_threadsorts.php 22852 2011-05-26 04:15:24Z monkey $ */ 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_sql = implode(', ', $sqlarr); $member_profile = DB::fetch_first("SELECT {$member_profile_sql} FROM " . DB::table('common_member_profile') . " WHERE uid = '{$_G['uid']}' LIMIT 1"); unset($member_profile_sql); } threadsort_optiondata($pid, $sortid, $_G['cache']['threadsort_option_' . $sortid], $_G['cache']['threadsort_template_' . $sortid]);
This is NOT a freeware, use is subject to license terms $Id: post.php 17458 2008-12-23 12:06:32Z monkey $ */ define('CURSCRIPT', 'post'); define('NOROBOT', TRUE); require_once './include/common.inc.php'; require_once DISCUZ_ROOT . './include/post.func.php'; $_DTYPE = $checkoption = $optionlist = array(); if ($sortid) { threadsort_checkoption(); } if (empty($action)) { showmessage('undefined_action', NULL, 'HALTED'); } elseif ($action == 'threadsorts') { threadsort_optiondata(); $template = intval($operate) ? 'search_sortoption' : 'post_sortoption'; include template($template); exit; } elseif ($forum['simple'] & 1 || $forum['redirect']) { showmessage('forum_disablepost'); } require_once DISCUZ_ROOT . './include/discuzcode.func.php'; $customaddfeed = $customaddfeed ? $customaddfeed : $uchome['addfeed']; if ($action == 'reply') { $addfeedcheck = $customaddfeed & 4 ? 'checked="checked"' : ''; } elseif (!empty($special) && $action != 'reply') { $addfeedcheck = $customaddfeed & 2 ? 'checked="checked"' : ''; } else { $addfeedcheck = $customaddfeed & 1 ? 'checked="checked"' : ''; }
$tid = $thread['tid']; $sortid = $thread['sortid']; $message = $thread['message']; $sortdata = DB::fetch_first("SELECT tid, attachid, dateline, expiration, displayorder, recommend, groupid, city, district, street, mapposition FROM " . DB::table('category_sortvalue') . "{$sortid} WHERE tid='{$tid}'"); $expiration = $sortdata['expiration'] ? dgmdate($sortdata['expiration'], 'd') : ''; $districtid = intval($sortdata['district']); $streetid = intval($sortdata['street']); $cityid = intval($sortdata['city']); $mapcenter = $arealist['city'][$cityid] . ' ' . $arealist['district'][$cityid][$districtid] . ' ' . $arealist['street'][$districtid][$streetid]; $mapposition = empty($sortdata['mapposition']) ? '' : explode(',', $sortdata['mapposition']); loadcache(array('category_option_' . $sortid, 'category_template_' . $sortid)); $_G['category_optionlist'] = $_G['cache']['category_option_' . $sortid]; threadsort_checkoption($sortid); $category_sort = $sortlist[$sortid]; if (!submitcheck('editsubmit')) { threadsort_optiondata($sortid, $_G['cache']['category_option_' . $sortid], $_G['cache']['category_template_' . $sortid], $tid); $attachs = array(); if ($sortdata['attachid']) { $query = DB::query("SELECT * FROM " . DB::table('category_' . $modidentifier . '_pic') . " WHERE tid='{$tid}'"); while ($attach = DB::fetch($query)) { $attachs[] = $attach; } } if (count($attachs) < $category_sort['imgnum']) { $imgnum = array(); $uploadnum = $category_sort['imgnum'] - count($attachs); $imgnum = array_pad($imgnum, $uploadnum, 0); } } else { $_G['category_optiondata'] = threadsort_validator($_G['gp_typeoption'], $pid); $_G['gp_expiration'] = $_G['gp_expiration'] ? $sortdata['expiration'] ? $sortdata['expiration'] + intval($_G['gp_expiration']) : $_G['timestamp'] + intval($_G['gp_expiration']) : $sortdata['expiration'];