• Stars
    star
    313
  • Rank 133,311 (Top 3 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

网站目录

webdir

index.php

index.php放在你的网站根目录并且设置好你的所在目录权限即可[用于目录浏览]

1.图标图片预览支持IE浏览器

2.手机端自动缩放

开启密码请将前面的"//"删去,默认密码为123

//define("PASS","123");//

只展示该目录以下的所有文件,通过添加禁止显示文件夹以及后缀文件来控制显示

例如:

$this->notex=array("php","js","tgz");//不允许显示的后缀名文件
$this->notdir=array("a","phpmyadmin");//不允许显示的文件夹

支持在线播放mp4视频和MP3音频以及PDF在线预览,对于手机的自适应不是特别完美。

eg:http://webdir.cc/

LNMP LAMP 一键包测试通过, windows下惨不忍睹

WabAN

Webdir下外挂一个AriaNg来控制下载(注意:Aria2请务必安装不然会显示“未连接”)。

界面

AriaNg下载界面

安装WebAN

安装Aria2

下载WebAN.zip并解压到你的想放的web目录,在index.php文件顶部可以编辑密码,默认密码为admin,访问你的对应的网站即可。

wadir-ajax.php

与下面的wadir.php安装步骤以及功能完全相同,但是aria2下载操作全部换成AJAX进行,界面稍微好于wadir.php.定时刷新30S一次,可以手动刷新。

Aria2控制界面

wadir.php

详细安装方法:https://github.com/maysrp/webdir/tree/master/doc

对于index.php的扩充

基于php-aria2,需要安装aria2的支持。 简单的管理: bt1.png ec7938932a3f4f0e.png 关于导入Magnet成功却从未有速度,且不显示文件名的,可能存在的问题,缺少dht.dat,参考下文中的dht.dat的处理方法 ###配置 密码:

define("PASS", "admin");

配置显示文件以及文件夹

$this->notex=array("php","js","tgz");//不允许显示的后缀名文件
$this->notdir=array("a","phpmyadmin");//不允许显示的文件夹

##more.php ###简单的多用户实现 创建不同的目录每个目录都放入more.php,配置如下(目录必须可写 0777):

define("PASS", "admin");
define("TYPE","d");//定义结算方式,d为每日,m为每月
define("NUM", 1);//每个结束方式内可以下载的数量

每个账户一个目录,登入后能添加magnet,对其进行基本管理。

moreinfo.php

121212112212.png

多用户控制,可以控制每个用户离线空间的总大小,周期结算类型,每个周期内可用的任务个数,每次任务的大小等......

创建不同的目录每个目录都放入moreinfo.php,配置如下(目录必须可写 0777):

define("PASS", "admin");
define("TYPE","d");//定义结算方式,d为每日,m为每月
define("NUM", 1);//每个结束方式内可以下载的数量
define("DISK", 20);//单位GB,定义总空间大小
define("MAX", 10);//单位GB,定义每个任务的大小[超出自动删除任务]

每个账户一个目录,登入后能添加magnet,对其进行基本管理。 ##dplayer.php 使用dplayer播放器的index.php; ##wadir-dplay.php 使用dplayer播放器的wadir.php; ##wardir/

移动到:https://github.com/maysrp/wardir

jugg.php

该文件只用于检测你是否完成了aria2的配置,上传到你的网站根目录访问即可,如有正常的文件下载信息表示完成了aria2配置,删除该文件即可。 ##dht.dat 有些新安装aria2,可能会因为缺少dht.dat导致无法magnet下载,拷贝该文件到你的/root/.aria2/下即可

ffmpge.php

基本界面和之前类似: ffmpeg 黄色的就是转换符号,未用到任何数据库,没有转换完成通知,调用时间根据你的设置的PHP脚本运行时间为止。 在线转码,请 php.ini中修改:

删去禁用的exec

以及修改脚本运行时间1000s:

max_execution_time = 1000;

修改配置后记得重新启动php端:

服务端安装ffmpeg ubuntu/debian 安装ffmpeg

sudo apt-get install ffmpeg

VPS转码效率底下 vultr 默认是webm格式的视频修改

return "<span class=\"ffmpeg  text-primary\" value=\"?video=".$file."\"><span class=\"glyphicon glyphicon-refresh\"></span></span>|<a href=\"".$file."\" ><span class=\"glyphicon glyphicon-download-alt\"></span></a>";

改变为:

return "<span class=\"ffmpeg text-primary\" value=\"?video=".$file."&type=mp4\"><span class=\"glyphicon glyphicon-refresh\"></span></span>|<a href=\"".$file."\" ><span class=\"glyphicon glyphicon-download-alt\"></span></a>";

gbk.zip

如果中文乱码请解压使用该脚本

More Repositories

1

yunBT

Aria2 FFmpeg 的多用户下载视频转码
PHP
315
star
2

pico_micropython

树莓派pico使用micropython进行编程
Python
73
star
3

TALD

使用Aria2作为后端 通过视频来 采集视频作为自己的视频网站:ThinkPHP Aria2 Libav Dplayer
PHP
72
star
4

shortURL

短链程序,基于ThinkPHP5
PHP
36
star
5

topdf

office文档在线转换pdf平台
JavaScript
22
star
6

ssd1306_font

ssd1306 oled font micropython
Python
19
star
7

onedrive_share

利用Onedrive 作存储载体的个人分享网盘
PHP
19
star
8

esp32cam-LIVE2

ESP32cam 局域网视频监控 带web配网
Python
17
star
9

wifiat_pico

PICO use WIFI ESP8266 AT V1.1
Python
17
star
10

ESP32-CAM-LIVE

ESP32-CAM 局域网 直播摄像头
Python
16
star
11

micropython-bpv

micropython oled play video or show PBM picture
Python
15
star
12

btpan

种子解析
JavaScript
11
star
13

wardir

基于webdir,yaaw,aria2的离线下载
JavaScript
8
star
14

ESP32_Calculator

ESP32 Micropython 4x4 key lcd 1602
Python
7
star
15

webdirBus

webdir的离线下载公交车
PHP
7
star
16

micropython_webconfig

使用micropython下的异步web框架(nanoweb)在ESP8266 上使用web界面修改配置
Python
4
star
17

pico_snake

PICO 使用SSD1306 OLED AD KeyBoard 制作贪吃蛇
Python
4
star
18

esp32_max7219_clock

ESP32 Max7219 Clock
Python
4
star
19

esp32_caculate

ESP32 caculate plot ST7789
Python
3
star
20

saya

AI-Saya
PHP
3
star
21

badapple

ESP8266 micropython badapple 64*32
Python
3
star
22

Ttomp4

转码到MP4
PHP
2
star
23

tokyotosho

PHP
2
star
24

badapple_esp32_max7219

esp32 Micropython Max7219
Python
2
star
25

btpan_offlin

基于BTpan的多用户离线下载
PHP
2
star
26

13clock

ESP32 联合 SSD1351 bilibili时钟
Python
2
star
27

micropython_csv

USE_CSV
Python
2
star
28

bilibili_bangumi_range

B站每日冻鳗排名采集
Python
1
star
29

WebFFmpeg

use ffmpeg in web
1
star
30

ESP8266_Clock

Python
1
star
31

rdimage

随机目录图片[POST]
PHP
1
star
32

t2magnet

PHP torrent to magnet
PHP
1
star
33

ssd1351-display

Python
1
star
34

esp8266-deauth

Python
1
star
35

daolao

Python
1
star
36

btn

五向导航按键模块 micropython
Python
1
star
37

fans_clock_esp01s

Python
1
star