PlayTube v1.4.2
引自topide.com;password: file-by-topide.com
这次是发布1.4.2单独更新版本,需要先安装或升级到1.4.1然后再执行升级安装。
升级方法
解压缩上传Script里的内容到服务器,覆盖旧文件,然后将 scripts 目录外的 update.php 上传到服务器,运行youdomain.tld/update.php
进行升级,如升级成功会出现 The script is successfully updated to v1.4.2! 字样,然后系统自动更名 update.php 为 _update.php 为安全起见,建议删除该文件。
安装需求(自检)
PHP 5.5 or Higher.
MySQLi.
GD Library.
mbstring.
cURL.
allow_url_fopen.
安装cURL
cd /usr/local/src wget https://curl.haxx.se/download/curl-7.36.0.tar.gz tar -xvzf curl-7.36.0.tar.gz rm *.gz cd curl-7.36.0 ./configure make make install
1.倒数第三行如果运行失败,可以输入
apt-get install build-essential
然后继续安装
2.注意更改cURL的版本以及对应的文件名
3.安装完成后需要重启Apache
CentOS安装GD库支持
yum -y install php-gd
重新启动apachce服务以使安装后的GD库生效
安装FFmpeg
破解说明
原版程序由国际友人提供,由reishi进行破解。安装时需要输入购买代码,请填写nulled-by-reishi即可
新版增加了安卓端源码,资源待收集,如果找到了安卓端源码我会第一时间发布的。
或者下载install替换
SQL Host name: Your MySQL host name, e.g: localhost
另外新版有一点改动不是很方便,就是将语言写到了数据库中,并不支持在线导入和导出,这点在汉化使用起来不是很方便。
安装方法
解压缩上传Script里的内容到服务器
访问https://www.yoursite.com/install 按照要求填写每项内容。
Nginx伪静态规则
官方给的规则不能使用,研究了一下,给一个可用的伪静态规则。
if (!-f $request_filename){ set $rule_0 1$rule_0; } if (!-d $request_filename){ set $rule_0 2$rule_0; } if ($rule_0 = "21"){ rewrite ^/$ /index.php?link1=home ; } rewrite ^/reset-password/([^/]+)(/|)$ /index.php?link1=reset-password&code=$1 ; rewrite ^/confirm/(.*)/(.*)$ /index.php?link1=confirm&code=$1&email=$2 ; rewrite ^/api/v(([0-9])([.][0-9]+))(/|)$ /api.php?v=$1 ; rewrite ^/admin-cp$ /admincp.php ; rewrite ^/admin-cp/(.*)$ /admincp.php?page=$1 ; rewrite ^/admin-cdn/(.*)$ /admin-panel/$1 last; 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 ; rewrite ^/videos/(.*)/rss(/|)$ /index.php?link1=videos&page=$1&feed=rss ; rewrite ^/videos/(.*)$ /index.php?link1=videos&page=$1 ; 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 ; if (!-f $request_filename){ set $rule_14 1$rule_14; } if (!-d $request_filename){ set $rule_14 2$rule_14; } if ($rule_14 = "21"){ 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; rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&id=$1 last; rewrite ^/watch/([^/]+)(/|)?$ /index.php?link1=watch&id=$1 last; rewrite ^/watch/([^/]+)/list/([^/]+)(/|)?$ /index.php?link1=watch&id=$1&list=$2 last; rewrite ^/embed/(.*)?$ /index.php?link1=embed&id=$1 last; rewrite ^/resend/(.*)/(.*)?$ /index.php?link1=resend&id=$1&u_id=$2 last; rewrite ^/redirect/(.*)?$ /index.php?link1=redirect&id=$1 last; rewrite ^/settings/(.*)/(.*)$ /index.php?link1=settings&page=$1&user=$2 ; rewrite ^/settings/(.*)$ /index.php?link1=settings&page=$1 ; rewrite ^/terms/([^/]+)(/|)$ /index.php?link1=terms&type=$1 ; rewrite ^/go_pro(/|)$ /index.php?link1=go_pro ; 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 ^/contact-us(/|)$ /index.php?link1=contact ; rewrite ^/@([^/]+)(/|)$ /index.php?link1=timeline&id=$1 ; rewrite ^/messages/(.*)$ /index.php?link1=messages&id=$1 ; if (!-f $request_filename){ set $rule_33 1$rule_33; } if (!-d $request_filename){ set $rule_33 2$rule_33; } if ($rule_33 = "21"){ rewrite ^/([^/]+)(/|)$ /index.php?link1=$1 ; }
更改目录
You can edit them in the languages files located in ./assets/langs/