📄 config.php
字号:
<?PHP
//dirLIST v0.2.0 configuration file
//= = = = = = = = = = = = = = = = = = = = = = = = = =
//U S E R C O N F I G U R A T I O N
//= = = = = = = = = = = = = = = = = = = = = = = = = =
//Listing mode. 0:HTTP directory Listing 1:FTP directory listing
$listing_mode = 0;
//FTP credentials for FTP listing
$ftp_host = '';
$ftp_username = '';
$ftp_password = '';
//Directory to browse ***INCLUDING TRAILING SLASH***. Leave it as "./" if you want to browse the directory this file is in for HTTP listing or leave it blank for browsing the root directory for FTP listing. This can be an absolute or relative path. CAUTION: Listing a directory above your web root will cause errors.
$dir_to_browse = "./"; //default[HTTP] = "./" or default[FTP] = "/"
//Download speed limit for files (HTTP only, FTP currently not supported). 0:Disable 1:Enable
$limit_download_speed = 0; //default = 0
$speed = 64; //Value in KB/s (KiloBytes per second). An example value: 128 (do not include "KB/s")
//File uploading (HTTP only, FTP currently not supported). ***ENABLE THIS FEATURE AT YOUR OWN RISK***. Please refer to the readme file (dirLIST_files/README.txt). For the maximum file upload size, please also refer to the readme file.
$file_uploads = 1; //default = 1;
$banned_file_types = array('.php', '.php3', '.php5', '.htaccess', '.htpasswd'); //add any other extensions you want banned (in lower-case)
$display_banned_files = 0; //Enable this to display a list of the file types banned on the main page. 0:Disable 1:Enable
//Files and/or folders to exclude from listing. dirLIST related files and folders are automatically excluded.
$exclude = array('.','..','.ftpquota','.htaccess', '.htpasswd', 'dirLIST_files');
//Files to exclude based on extension (eg: '.jpg' or '.PHP') and whether to be case sensitive. 0:Disable 1:Enable
$exclude_ext = array('');
$case_sensative_ext = 0; //default = 0
//= = = = = = = = = = = = = = = = = = = = = = = = = =
//A P P E A R A N C E S E C T I O N
//= = = = = = = = = = = = = = = = = = = = = = = = = =
//Color schemes and whether to make it user selectable 0:Disable 1:Enable.
$color_scheme_code = 0; //0:Blue 1:Red/Pink 2:Green 3:Yellow 4:Brown 5:Gray/Black
$color_scheme_user_selectable = 1; //default = 1
//Statistics/legend/load time. 1:Enable 0:Disable
$statistics = 1; //default = 1
$legend = 1; //default = 1
$load_time = 1; //default = 1
//File icons. 0: Disabled 1:Enabled
$file_icons = 1; //default = 1
//Sorting method. 0:By name 1:By size 2:By Date
$sort_by = 0; //default = 0
$sort_order = 0; //0:Ascending 1:Descending
//Hide file extensions from being displayed. 0:Disabled 1:Enabled
$hide_file_ext = 0; //default = 0
//Folder sizes. Disabling this will greatly improve performance if there are several hundred folders/files. However, size of folders wont show. Also note that if the listing mode is FTP, enabling folder size will very likely cause a script timeout. 1:Enable 0:Disable
$show_folder_size_http = 1; //default = 1
$show_folder_size_ftp = 0; //default = 0
//Table formatting (values in pixels)
$width_of_files_column = "450"; //default = 450
$width_of_sizes_column = "100"; //default = 100
$width_of_dates_column = "125"; //default = 125
$cell_spacing = "5"; //default = 5
$cell_padding = "5"; //default = 5
//= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
//U S E R C O N F I G U R A T I O N - D O N E
//= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -