コード例 #1
0
function deal_smile($str)
{
    $smiley = get_smiley();
    foreach ($smiley as $k => $v) {
        $str = str_replace($k, '<img  style=" height:20px;width:20px;"src="' . SMART_SMILEY_DIR . $v . '"/>', $str);
    }
    return $str;
}
コード例 #2
0
ファイル: module_v.php プロジェクト: deepziyu/JX3PVE
if (!$thread['visiable'] && !$self) {
    showmessage("&#23545;&#19981;&#36215;&#44;&#27492;&#35270;&#39057;&#27491;&#22312;&#23457;&#26680;&#20013;&#65281;", "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");
}