if (!$thread['visiable'] && !$self) { showmessage("对不起,此视频正在审核中!", "plugin.php?id=smart_video"); } require_once libfile("function/reply", "plugin/smart_video"); $post = C::t("#smart_video#video")->fetch_first("smart_video_post", "tid={$tid} and first=1"); $relt_video = C::t("#smart_video#video")->fetch_all_by_where('smart_video_thread', 'fcid=' . $thread['fcid'] . " and num=1", 'play desc,dateline desc', 0, $smart['renum']); $relt_album = C::t("#smart_video#video")->fetch_all_by_where('smart_video_thread', 'num>1', 'play desc,dateline desc', 0, 6); $navtitle = $thread['subject']; $mes = stripslashes($post['message']); $video = unserialize(stripslashes($post['audio'])); $metakeywords = $navtitle . ',' . $post['fname'] . ',' . $thread['subject']; $metadescription = cutstr($mes, 90, ''); $num = $thread['num']; $perpage = max(1, $smart['per_reply']); $page = 1; $where = "tid={$tid} and first<>1"; $replys = C::t("#smart_video#video")->fetch_all_by_where('smart_video_post', $where, 'dateline desc', 0, $perpage); $maxnum = C::t("#smart_video#video")->count_by_where('smart_video_post', $where); $url = SMART_VIDEO_URL . ":ajax&type=reply&tid={$tid}"; $multi = get_smart_page($maxnum, $perpage, $page, $url, 10, 1, "reply_reajax"); $smiley = get_smiley(); $svalue = intval(getcookie("ping_video_" . $thread[tid])); $ext = smart_get_ext($video[0]['link']); $first_url = get_smart_url($video[0][link], $tid, 0); if ($num > 1) { $height = 660; include template("smart_video:vl"); } else { $height = 660; include template("smart_video:v"); }
echo '<li class="smart_x hover"></li>'; } else { echo '<li class="smart_x"></li>'; } } echo '<div class="smart_grade"><font color="#FF0000">' . number_format($ngrade, 1) . '</font>分</div>'; } elseif ($_GET['list']) { @(list($fcid, $scid) = array(intval($_GET[fcid]), intval($_GET[scid]))); $key = array('fcid', 'scid'); $where = ''; foreach ($key as $k => $v) { if (${$v} != 0) { $where .= "{$v}=" . ${$v} . " and "; } } $where .= "1=1"; $smart = $_G['cache']['plugin']['smart_video']; $perpage = max(4, $smart['perpage']); $page = max(1, intval($_GET['page'])); $start = $perpage * $page - $perpage; $posts = C::t("#smart_video#video")->fetch_all_by_where('smart_video_thread', $where, 'displayorder desc,dateline desc', $start, $perpage); $maxnum = C::t("#smart_video#video")->count_by_where('smart_video_thread', $where); $url = "plugin.php?id=smart_video:ajax&list=1&fcid={$fcid}&scid={$scid}"; $multi = get_smart_page($maxnum, $perpage, $page, $url); include template('smart_video:ajax_post'); } else { @(list($type, $cup) = array(intval($_GET[type]), intval($_GET[cup]))); $class = C::t("#smart_video#video")->fetch_all("type={$type} and cup={$cup}"); include template('smart_video:ajax'); } include template('common/footer_ajax');