From 7911c1a32125160d78f00dd3f9ee7269a7d6f9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=96=E4=B8=AD=E6=B2=89?= <341936031@qq.com> Date: Wed, 5 May 2021 16:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E8=A7=86=E9=A2=91=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BF=9D=E6=8C=81=E4=B8=BA=E6=96=B0=E7=9A=84=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=8E=BB=E9=99=A4flash?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_share.php | 4 ++++ upload/template/default/home/space_share_li.htm | 12 +++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/upload/source/function/function_share.php b/upload/source/function/function_share.php index 059e801a2..ff92a4fdb 100644 --- a/upload/source/function/function_share.php +++ b/upload/source/function/function_share.php @@ -12,6 +12,7 @@ if(!defined('IN_DISCUZ')) { } function mkshare($share) { + require_once libfile('function/discuzcode'); $share['body_data'] = unserialize($share['body_data']); $searchs = $replaces = array(); @@ -25,6 +26,9 @@ function mkshare($share) { $searchs[] = '{'.$key.'}'; $replaces[] = $share['body_data'][$key]; } + if($share['body_data']['flashvar']){ + $share['body_data']['player'] = parseflv($share['body_data']['data'], '500', '373'); + } } $share['body_template'] = str_replace($searchs, $replaces, $share['body_template']); diff --git a/upload/template/default/home/space_share_li.htm b/upload/template/default/home/space_share_li.htm index c4e01b5b6..8b1fa0dd0 100644 --- a/upload/template/default/home/space_share_li.htm +++ b/upload/template/default/home/space_share_li.htm @@ -25,17 +25,15 @@ $value[body_template] - -
-
- |
+
+ {$value['body_data']['player']}
-
+
+ {$value['body_data']['player']}
+
$value[body_general]