require libfile('forum/post', 'module'); C::t('#sanree_brand#sanree_brand_voter')->updatestar_by_tid($_G['uid'], $_G['username'], $tid, intval($_G['sr_star'])); $href = $_POST['portal_referer']; $href = str_replace("'", "\\'", $href); $url_forward = 'javascript:history.back()'; $extra = array('showdialog' => false, 'extrajs' => "<script type=\"text/javascript\" reload=\"1\">///hideWindow;\r\nsetTimeout(\"window.location.href ='" . $href . "';\", 3000);</script>"); showmessage(srlang('votersucceed'), $url_forward, array(), $extra); } else { if (!$brandresult) { ajaxexit(''); } if ($allowfastpost != 1) { ajaxexit(srlang('nofastpostcontrol')); } if ($brandresult[allowfastpost] != 1) { ajaxexit(srlang('nofastpostcontrol')); } $perpage = 5; $page = intval($_G[sr_page]); $page = max(1, intval($page)); $start = ($page - 1) * $perpage; $start = max(0, $start); require_once libfile('function/discuzcode'); $count = C::t('#sanree_brand#forum_post')->count_by_tid_post(0, $tid); if ($count > 0) { $postthread = C::t('#sanree_brand#forum_post')->fetch_all_by_tid(0, $tid, true, ' desc', ($page - 1) * $perpage, $perpage, 0, 0); foreach ($postthread as $key => $val) { $postthread[$key]['message'] = discuzcode($val['message'], 0, 0, 0, 1); } $murl = 'plugin.php?id=sanree_brand&mod=fastpost&tid=' . $tid . $extra; $multi = multi($count, $perpage, $page, $murl);
* * $Id: sanree_brand_album.php sanree $ */ if (!defined('IN_DISCUZ')) { exit('2014042523s4K4QUOUT9||5057||1411992002'); } $bid = intval($_G['sr_bid']); if ($isalbum != 1) { ajaxexit(''); } $brandresult = C::t('#sanree_brand#sanree_brand_businesses')->getbusinesses_by_bid($bid); if (!$brandresult) { ajaxexit(''); } if ($brandresult[allowalbum] != 1) { ajaxexit(''); } $brandresult[albumurl] = getalbumurl($brandresult[bid]); $where = array(); $where[] = 'uid=' . $brandresult['uid']; $where[] = 'bid=' . $bid; $albumcat = C::t('#sanree_brand#sanree_brand_album_category')->fetch_all_by_searchd($where, 'displayorder,dateline DESC'); $bids = array(); foreach ($albumcat as $data) { $bids[] = $data[catid]; } $maxpic = $maxishomepic; $albumlist = array(); for ($i = 0; $i < $maxpic; $i++) { $albumlist[$i]['pic'] = 'source/plugin/sanree_brand/tpl/good/images/nophoto.gif'; $albumlist[$i]['thumbpic'] = 'source/plugin/sanree_brand/tpl/good/images/nophoto.gif';