PlayTube v2.2.2 – PHP视频上传分享源码
源码简介

PlayTube是一个视频分享程序,它能快速的建立一个视频上传、导入、分享的网站,具有多语言、用户管理、广告管理、视频上传、从youtube和vime等网站导入视频等功能。本次发布的是2.2.2版本,更新包后续发布。

在线演示

官方演示

https://playtubescript.com/

主要功能

更多功能介绍请访问官网查看

上传视频: 上传本地视频

导入视频: 非常简单的从 YouTube, Dailymotion, 和 Vimeo 等站点批量导入视频,此功能需要对应网站的API.

自动导入视频: 设置一些关键词并创建导入任务,轻松从 YouTube 和 Dailymotion 导入视频到你的网站!

高性能: PlayTube 可以轻松的处理超过 1B 的视频.

WoWonder 登录集成:无缝对接 WoWonder 社交系统,可以使用社交系统的帐户授权登入.

喜欢 & 反感: 用户可以对某视频进行喜欢投票.

评论系统: 注册用户可以对视频进行评论.

订阅, 历史, 接下来观看: 功能也是比较人性化的.

用户频道: 完整的用户展示页.

广告系统: 可以创建视频、页面的广告,一切都在后台的广告设置里.

站点地图建立: 建立站点地图并自动发送到 Google/Bing.

SEO 友好: 搜索引擎优化友好的链接,非常有利于谷歌收录!

完整的后台: 功能完善的后台控制面板.

漂亮的 UI: 非常容易修改而且还很漂亮的模板.

安装需求

PHP 5.5 or Higher.

MySQLi.

GD Library.

mbstring.

cURL.

allow_url_fopen.

更新日志

https://docs.playtubescript.com/#idocs_changelog

破解说明

原版程序由国际友人提供,由reishi进行破解。

安装方法、升级方法、伪静态规则

安装说明

解压缩上传Script里的内容到服务器

访问http://www.yoursite.com/install 按照要求填写每项内容。授权码处请填写topide.com

升级方法

解压缩上传Script里的内容到服务器,覆盖旧文件,然后将scripts目录外的update.php上传到服务器,运行

youdomain.tld/update.php 进行升级。

Nginx伪静态规则

早期版本,并不一定适用于最新版。

官方给的规则在程序根目录里,nginx.conf,有用户反应不好用,今天reishi又特意安装了一个nginx环境测试了一份自己转换的规则,目前亲测无误,有测试的可以反馈一下。

PlayTube v2.2.2 – PHP视频上传分享源码
显示/隐藏文本
location / {

if (!-e $request_filename){

rewrite ^/$ /index.php?link1=home;

}

if (!-e $request_filename){

rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2;

}

rewrite ^/@([^/]+)(/|)$ /index.php?link1=timeline&id=$1;

if (!-e $request_filename){

rewrite ^/([^/]+)(/|)$ /index.php?link1=$1;

}

}

location /reset {

rewrite ^/reset-password/([^/]+)(/|)$ /index.php?link1=reset-password&code=$1;

}

location /confirm {

rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&code=$1&email=$2;

}

location = /two_factor_login {

rewrite ^(.*)$ /index.php?link1=two_factor_login;

}

location = /two_factor_submit {

rewrite ^(.*)$ /index.php?link1=two_factor_submit;

}

location /v {

rewrite ^/v/(.*)$ /index.php?v=$1;

}

location /api {

rewrite ^/api/v(([0-9])([.][0-9]+))(/|)$ /api.php?v=$1;

}

location /admin {

rewrite ^/admin-cp$ /admincp.php;

rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1;

}

location /admin-cdn/ {

alias /admin-panel/;

}

location /videos {

rewrite ^/videos/category/(.*)/rss(/|)$ /index.php?link1=videos&page=category&id=$1&feed=rss;

rewrite ^/videos/category/(.*)/(.*)$ /index.php?link1=videos&page=category&id=$1&sub_id=$2;

rewrite ^/videos/category/(.*)$ /index.php?link1=videos&page=category&id=$1;

rewrite ^/videos/(.*)/rss(/|)$ /index.php?link1=videos&page=$1&feed=rss;

rewrite ^/videos/(.*)$ /index.php?link1=videos&page=$1;

}

location /articles {

rewrite ^/articles(/|)$ /index.php?link1=articles;

rewrite ^/articles/category/(.*)(/|)$ /index.php?link1=articles&category_id=$1;

rewrite ^/articles/read/(.*)(/|)$ /index.php?link1=read&id=$1;

}

location /aj {

rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2 last;

rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2 last;

rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2&second=$3 last;

}

location /edit {

rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&id=$1;

}

location /video_text {

rewrite ^/video_text/(.*)?$ /index.php?link1=video_text&id=$1;

}

location /watch {

rewrite ^/watch/([^/]+)(/|)?$ /index.php?link1=watch&id=$1;

rewrite ^/watch/([^/]+)/list/([^/]+)(/|)?$ /index.php?link1=watch&id=$1&list=$2;

}

location /embed {

rewrite ^/embed/(.*)?$ /index.php?link1=embed&id=$1;

}

location /resend {

rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&id=$1&u_id=$2;

}

location /redirect {

rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&id=$1;

}

location /settings {

rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&page=$1&user=$2;

rewrite ^/settings/(.*)$ /index.php?link1=settings&page=$1;

}

location /terms {

rewrite ^/terms/([^/]+)(/|)$ /index.php?link1=terms&type=$1;

}

location /go_pro {

rewrite ^/go_pro(/|)$ /index.php?link1=go_pro;

}

location /ads {

rewrite ^/ads(/|)$ /index.php?link1=ads;

rewrite ^/ads/create(/|)$ /index.php?link1=create_ads;

rewrite ^/ads/edit/(d+)(/|)$ /index.php?link1=edit_ads&id=$1;

rewrite ^/ads/analytics/(d+)(/|)$ /index.php?link1=ads_analytics&id=$1;

}

location /contact {

rewrite ^/contact-us(/|)$ /index.php?link1=contact;

}

location /messages {

rewrite ^/messages/(.*)$ /index.php?link1=messages&id=$1;

}

location /view_analytics {

rewrite ^/view_analytics/(.*)$ /index.php?link1=view_analytics&id=$1;

}

location /video_studio {

rewrite ^/video_studio/(.*)$ /index.php?link1=video_studio;

}

location = /comments {

rewrite ^(.*)$ /index.php?link1=comments;

}

location = /dashboard {

rewrite ^(.*)$ /index.php?link1=dashboard;

}

location = /popular_channels {

rewrite ^(.*)$ /index.php?link1=popular_channels;

}

location = /create_article {

rewrite ^(.*)$ /index.php?link1=create_article;

}

location = /my_articles {

rewrite ^(.*)$ /index.php?link1=my_articles;

}

location /edit_articles {

rewrite ^/edit_articles/(.*)?$ /index.php?link1=edit_articles&id=$1;

}

location = /age_block {

rewrite ^(.*)$ /index.php?link1=age_block;

}

location /site {

rewrite ^/site-pages/(.*)$ /index.php?link1=site-pages&page_name=$1;

}

location /post {

rewrite ^/post/(.*)(/|)$ /index.php?link1=post&id=$1;

}

location /edit_activity {

rewrite ^/edit_activity/(.*)(/|)$ /index.php?link1=edit_activity&id=$1;

}

    声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。