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"); }
<?php /** * Copyright:SmartCome * WebSite:www.SmartCome.com * QQ:2811931192 * */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } session_start(); if (submitcheck('usubmit', 1)) { if ($_FILES['file']['size']) { $mark = trim($_GET['mark']); $ext = smart_get_ext($_FILES['file']['name']); $filename = time() . rand(1, 10000) . ".{$ext}"; $dir = check_uploaddir(); $object = $dir . $filename; move_uploaded_file($_FILES['file']['tmp_name'], DISCUZ_ROOT . $object); echo $object; } } else { if ($_GET['type'] == 'video') { $type = 'mp4'; } elseif ($_GET['type'] == 'audio') { $type = 'mp3'; } elseif ($_GET['type'] == 'swf') { $type = 'swf'; } else { $type = "png";