Zdir PHP Directory Listing Tool Updated to v1.3

zdirphp directory listingfile manageronline previewopen source
Published·Modified·

Zdir is a directory listing program developed using PHP. It requires no database, features simple installation, and is easy to use. The following details the updates in version 1.3.

Video Introduction

Zdir Features

  • Directory browsing
  • Markdown file preview
  • One-click copy for CSS/JavaScript
  • File hash generation
  • Image preview
  • Video playback (supports .mp4, .ts, .m3u8, and other formats)
  • Audio playback (supports .mp3, .wav, .flac, .ape)
  • Text viewer (supports .txt, .sh, .py, .go, .c, .cpp)
  • Online Office preview (supports .doc, .docx, .xls, .xlsx, .ppt, .pptx); Note: Preview is not supported via intranet or IP access
  • File indexing
  • QR code generation
  • File management (upload, delete, edit, etc.)
  • File search
  • Password verification
  • Chinese character display support

v1.3 Update Notes

  • Fixed Chinese character display issues on Windows
  • Updated tinyfilemanager version
  • Updated parsedown version
  • Added display of usage instructions
  • Optimized music player
  • Other minor optimizations

Fixed Chinese Character Display on Windows:

In previous versions, Zdir could only display Chinese characters correctly on Linux systems. This update resolves the issue of Chinese characters not displaying on Windows. Users are welcome to test this new feature.

Added Usage Instructions Display:

Zdir now automatically reads the README.md file in the current directory and displays it at the top for easier access to usage instructions, as shown below. (Note: The instruction file must be strictly named README.md with correct casing, otherwise it will not display.)

Other Optimizations:

This update includes version upgrades for tinyfilemanager and parsedown, along with other minor optimizations, such as replacing text buttons with icon buttons. Users can download the latest version to explore more details.

Some Changes:

The username for the file manager has been changed from admin to zdir in this upgrade. Please ensure you use the correct username when logging in.

Upgrade Method

  • Backup your existing files
  • Download the latest version and overwrite the old files
  • Modify the config.php file by adding a site_name element to the array, as follows:
$siteinfo = array(
		"site_name" => "<i class='fa fa-sitemap' aria-hidden='true'></i> Zdir",
		"title" => "Zdir Practical Directory Listing Program",
		"keywords" => "zdir,h5ai,Directory Lister,Fdscript,目录列表,目录索引",
		"description" => "Zdir is a PHP-based directory listing program, simple, practical, free, and open source."
	);

The site_name parameter value represents the website name displayed in the top-left corner of the site. Please modify it according to your specific needs.

Obtaining the Donor Version

Scan the QR code below. Donating more than 30 yuan will grant you access to the donor version, which includes initial technical support and ad removal. After donating, please contact me via QQ: 337003006 to obtain the version.

Other Resources