源码简介
PlayTube是一个**分享程序,它能快速的建立一个**上传、导入、分享的网站,具有多语言、用户管理、**管理、**上传、从*******和vime等网站导入**等功能。本次发布的是2.2.2版本,更新包后续发布。
在线演示
官方演示
https://playtubescript.com/
主要功能
更多功能介绍请访问官网查看
上传**: 上传本地**
导入**: 非常简单的从 YouTube, Dailymotion, 和 Vimeo 等站点批量导入**,此功能需要对应网站的API.
自动导入**: 设置一些关键词并创建导入任务,轻松从 YouTube 和 Dailymotion 导入**到你的网站!
高性能: PlayTube 可以轻松的处理超过 1B 的**.
WoWonder 登录集成:无缝对接 WoWonder 社交系统,可以使用社交系统的帐户授权登入.
喜欢 &**p; 反感: 用户可以对某**进行喜欢**.
评论系统: 注册用户可以对**进行评论.
订阅, 历史, 接下来观看: 功能也是比较人性化的.
用户频道: 完整的用户展示页.
**系统: 可以创建**、页面的**,一切都在后台的**设置里.
站点地图建立: 建立站点地图并自动发送到 Google/Bing.
SEO 友好: 搜索引擎优化友好的链接,非常有利于谷歌收录!
完整的后台: 功能完善的后台控制面板.
漂亮的 UI: 非常容易修改而且还很漂亮的模板.
安装需求
PHP 5.5 or Higher.
My**Li.
GD Library.
mbstring.
cURL.
allow_url_fopen.
更新日志
https://docs.playtubescript.com/#idocs_changelog
pj说明
原版程序由国际友人提供,由reishi进行pj。
安装方法、升级方法、伪静态规则
安装说明
解压缩上传Script里的内容到服务器
访问http://www.yoursite.com/install 按照要求填写每项内容。授权码处请填写topide.com
升级方法
解压缩上传Script里的内容到服务器,覆盖旧文件,然后将scripts目录外的update.php上传到服务器,运行
youdo**in.tld/update.php 进行升级。
Nginx伪静态规则
早期版本,并不一定适用于最新版。
官方给的规则在程序根目录里,nginx.conf,有用户反应不好用,今天reishi又特意安装了一个nginx环境测试了一份自己转换的规则,目前亲测无误,有测试的可以反馈一下。
location / {
if (!-e $request_filen**e){
rewrite ^/$ /index.php?link1=home;
}
if (!-e $request_filen**e){
rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&**p;first=$2;
}
rewrite ^/@([^/]+)(/|)$ /index.php?link1=timeline&**p;id=$1;
if (!-e $request_filen**e){
rewrite ^/([^/]+)(/|)$ /index.php?link1=$1;
}
}
location /reset {
rewrite ^/reset-password/([^/]+)(/|)$ /index.php?link1=reset-password&**p;code=$1;
}
location /confirm {
rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&**p;code=$1&**p;e**il=$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&**p;page=category&**p;id=$1&**p;feed=rss;
rewrite ^/videos/category/(.*)/(.*)$ /index.php?link1=videos&**p;page=category&**p;id=$1&**p;sub_id=$2;
rewrite ^/videos/category/(.*)$ /index.php?link1=videos&**p;page=category&**p;id=$1;
rewrite ^/videos/(.*)/rss(/|)$ /index.php?link1=videos&**p;page=$1&**p;feed=rss;
rewrite ^/videos/(.*)$ /index.php?link1=videos&**p;page=$1;
}
location /articles {
rewrite ^/articles(/|)$ /index.php?link1=articles;
rewrite ^/articles/category/(.*)(/|)$ /index.php?link1=articles&**p;category_id=$1;
rewrite ^/articles/read/(.*)(/|)$ /index.php?link1=read&**p;id=$1;
}
location /aj {
rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&**p;first=$2 last;
rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&**p;first=$2 last;
rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&**p;first=$2&**p;second=$3 last;
}
location /edit {
rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&**p;id=$1;
}
location /video_text {
rewrite ^/video_text/(.*)?$ /index.php?link1=video_text&**p;id=$1;
}
location /watch {
rewrite ^/watch/([^/]+)(/|)?$ /index.php?link1=watch&**p;id=$1;
rewrite ^/watch/([^/]+)/list/([^/]+)(/|)?$ /index.php?link1=watch&**p;id=$1&**p;list=$2;
}
location /embed {
rewrite ^/embed/(.*)?$ /index.php?link1=embed&**p;id=$1;
}
location /resend {
rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&**p;id=$1&**p;u_id=$2;
}
location /redirect {
rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&**p;id=$1;
}
location /settings {
rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&**p;page=$1&**p;user=$2;
rewrite ^/settings/(.*)$ /index.php?link1=settings&**p;page=$1;
}
location /terms {
rewrite ^/terms/([^/]+)(/|)$ /index.php?link1=terms&**p;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&**p;id=$1;
rewrite ^/ads/****ytics/(d+)(/|)$ /index.php?link1=ads_****ytics&**p;id=$1;
}
location /contact {
rewrite ^/contact-us(/|)$ /index.php?link1=contact;
}
location /messages {
rewrite ^/messages/(.*)$ /index.php?link1=messages&**p;id=$1;
}
location /view_****ytics {
rewrite ^/view_****ytics/(.*)$ /index.php?link1=view_****ytics&**p;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&**p;id=$1;
}
location = /age_block {
rewrite ^(.*)$ /index.php?link1=age_block;
}
location /site {
rewrite ^/site-pages/(.*)$ /index.php?link1=site-pages&**p;page_n**e=$1;
}
location /post {
rewrite ^/post/(.*)(/|)$ /index.php?link1=post&**p;id=$1;
}
location /edit_activity {
rewrite ^/edit_activity/(.*)(/|)$ /index.php?link1=edit_activity&**p;id=$1;
}