国外视频cms系统PlayTube 1.4.3nginx伪静态规则
PlayTube 1.4.3,此系统支持FFMPEG视频转码,还可以采集油管YOUTUBE,功能很强大界面和YouTub很像,比较简洁
官方购买地址:https://codecanyon.net/item/playtube-the-ultimate-php-video-sharing-platform/20759294
nginx伪静态规则
location / {
if (!-e $request_filename){
rewrite ^/$ /index.php?link1=home;
}
if (!-e $request_filename){
rewrite ^/aj/([^/.]+)/?$ /ajax.php?type=$1&first=$2;
rewrite ^/aj/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2;
rewrite ^/aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ /ajax.php?type=$1&first=$2&second=$3;
}
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 /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;
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/(\d+)(\/|)$ /index.php?link1=articles&category_id=$1;
rewrite ^/articles/read/(.*)(\/|)$ /index.php?link1=read&id=$1;}location /edit {
rewrite ^/edit-video/(.*)?$ /index.php?link1=edit-video&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;}location /contact {
rewrite ^/contact-us(\/|)$ /index.php?link1=contact;}
如果你使用Apache,伪静态规则如下
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.php?link1=home [NC,QSA]
RewriteRule ^reset-password/([^\/]+)(\/|)$ index.php?link1=reset-password&code=$1 [NC,QSA]
RewriteRule ^confirm/(.*)/(.*)$ index.php?link1=confirm&code=$1&email=$2 [NC,QSA]
RewriteRule ^api/v(([0-9])([.][0-9]+))(\/|)$ api.php?v=$1 [QSA]
RewriteRule ^admin-cp$ admincp.php [NC,QSA]
RewriteRule ^admin-cp/(.*)$ admincp.php?page=$1 [NC,QSA]
RewriteRule ^admin-cdn/(.*)$ admin-panel/$1 [L]
RewriteRule ^videos/category/(.*)/rss(\/|)$ index.php?link1=videos&page=category&id=$1&feed=rss [NC,QSA]
RewriteRule ^videos/category/(.*)$ index.php?link1=videos&page=category&id=$1 [NC,QSA]
RewriteRule ^videos/(.*)/rss(\/|)$ index.php?link1=videos&page=$1&feed=rss [NC,QSA]
RewriteRule ^videos/(.*)$ index.php?link1=videos&page=$1 [NC,QSA]
RewriteRule ^articles(\/|)$ index.php?link1=articles [NC,QSA]
RewriteRule ^articles/category/(\d+)(\/|)$ index.php?link1=articles&category_id=$1 [NC,QSA]
RewriteRule ^articles/read/(.*)(\/|)$ index.php?link1=read&id=$1 [NC,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^aj/([^/.]+)/?$ ajax.php?type=$1&first=$2 [L,QSA]
RewriteRule ^aj/([^/.]+)/([^/.]+)/?$ ajax.php?type=$1&first=$2 [L,QSA]
RewriteRule ^aj/([^/.]+)/([^/.]+)/([^/.]+)/?$ ajax.php?type=$1&first=$2&second=$3 [L,QSA]
RewriteRule ^edit-video/(.*)?$ index.php?link1=edit-video&id=$1 [L,QSA]
RewriteRule ^watch/([^\/]+)(\/|)?$ index.php?link1=watch&id=$1 [L,QSA]
RewriteRule ^watch/([^\/]+)/list/([^\/]+)(\/|)?$ index.php?link1=watch&id=$1&list=$2 [L,QSA]
RewriteRule ^embed/(.*)?$ index.php?link1=embed&id=$1 [L,QSA]
RewriteRule ^resend/(.*)/(.*)?$ index.php?link1=resend&id=$1&u_id=$2 [L,QSA]
RewriteRule ^redirect/(.*)?$ index.php?link1=redirect&id=$1 [L,QSA]
RewriteRule ^settings/(.*)/(.*)$ index.php?link1=settings&page=$1&user=$2 [NC,QSA]
RewriteRule ^settings/(.*)$ index.php?link1=settings&page=$1 [NC,QSA]
RewriteRule ^terms/([^\/]+)(\/|)$ index.php?link1=terms&type=$1 [QSA]
RewriteRule ^go_pro(\/|)$ index.php?link1=go_pro [QSA]
RewriteRule ^ads(\/|)$ index.php?link1=ads [QSA]
RewriteRule ^ads/create(\/|)$ index.php?link1=create_ads [QSA]
RewriteRule ^ads/edit/(\d+)(\/|)$ index.php?link1=edit_ads&id=$1 [QSA]
RewriteRule ^contact-us(\/|)$ index.php?link1=contact [QSA]
RewriteRule ^@([^\/]+)(\/|)$ index.php?link1=timeline&id=$1 [QSA]
RewriteRule ^messages/(.*)$ index.php?link1=messages&id=$1 [NC,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]+)(\/|)$ index.php?link1=$1 [QSA]
配置好伪静态后,找到对应你PHP版本的设置,在“禁用函数”里面把shell_exec这个函数删掉
官方演示站:https://playtubescript.com/
链接: https://pan.baidu.com/s/16A1HfWGObGjypvI3AEev8g 密码: raan
wordpress最棒的代码高亮插件
找了很多代码高亮插件,发现都有兼容的问题。要么加载慢,要么不兼容,要用着不舒服。
现在安利本站正在使用的代码高亮插件!自带一键换肤功能代码简洁。非常棒!
Pure Highlightjs |
去wordpress插件后台搜索,不用使用网上流传的。谨慎防后门!
JavaScript实现/APP在线身份证加水印工具/源码/可本地加水印
这是截图
现在互联网时代个人隐私是按T来卖的了,办理什么业务经常需要身份证截图,然而那些公司并不能获得我们的信任,鬼知道他们有没有外泄,或者拿去办理其他东西。
要知道在深圳一张身份证就可以办理信用卡。
然后你懂得。
所以需要这样,好歹也知道是谁泄露你的资料。
此证件仅供办理XX业务使用,他用无效。
这个可以本地使用 目录 WaterMark-WEB-Front\deploy\index.html
用浏览器打开即可,本地JS处理。源码透明
服务器使用设置deploy为目录
使用说明:说一下目录结构:
deploy:直接部署上服务器(本地打开index.html应该也能使用)
其它文件:源代码,Node和Webpack的配置文件
[url href='http://yun.bwcxbk.com/%E5%9C%A8%E7%BA%BF%E7%BD%91%E9%A1%B5%E6%BA%90%E7%A0%81/WaterMark-WEB-Front.zip']下载地址[/url]
最新评论
Thanks for such an amazing list. I was looking for tools just like these!
这个页面的资源可以补下档吗?
谢谢分享!!!
要是有linux版的就更完美了
还有吗?
谢谢分享
厉害1727
厉害