一、详细介绍
最新FANbbs社区圈子源码
视频链接允许使用外部直链,在填写或者上传视频后会自动填写链接。
链接会自动请求,如果需要设置封面图,可以在发布视频页面上方播放界面点击齿轮图标选择截图。
更新内容:
-
新增了视频播放界面
-
图片原图预览
-
添加图片文章编辑
- 删除了多于请求
~优化了本地上传文件的逻辑
~修正前端瀑布流进入页面错误
~修正前端视频页面黑暗模式下的颜色错误
~修正评论界面进入页面错误
~修正视频发布逻辑
~优化图片上传本地压缩不保留Alpha通道
~修正文章更新问题
~修正文章收藏状态
~修正文章删除权限(严重)
~修正个人页面数据
二、效果展示
1.部分代码
代码如下(示例):
if (isset($_FILES['file'])) {
$tmpFilePath =$_FILES['file']['tmp_name'];
$fileData = file_get_contents($tmpFilePath);
$fileData = file_get_contents($tmpFilePath);
$postdata = array(
"smtp" => $config['mailboxes'][$mailbox]['smtp'],
"username" => $config['mailboxes'][$mailbox]['username'],
"password" => $config['mailboxes'][$mailbox]['password'],
"secu" => $config['mailboxes'][$mailbox]['secu'],
"port" => $config['mailboxes'][$mailbox]['port'],
"sendname" => $sendname,
"to" => $to,
"body" => $body,
'file' => new CURLFile($tmpFilePath,$_FILES['file']['type'], $_FILES['file']['name']),
"subject" => $subject
);
}else
{
$postdata = array(
"smtp" => $config['mailboxes'][$mailbox]['smtp'],
"username" => $config['mailboxes'][$mailbox]['username'],
"password" => $config['mailboxes'][$mailbox]['password'],
"secu" => $config['mailboxes'][$mailbox]['secu'],
"port" => $config['mailboxes'][$mailbox]['port'],
"sendname" => $sendname,
"to" => $to,
"body" => $body,
"subject" => $subject
);
}
2.效果图展示