Files Photo Gallery Demo

Requirements

  • Any web server with PHP 5.5 or higher. Extensions GD and mbstring are required.
  • Files app works in all modern browsers Chrome, Firefox, Safari, Opera and Edge, and almost all mobile devices. Files app does NOT work in Internet Explorer.
  • Although Files app is a single file that loads files locally, it still requires an internet connection to load Javascripts loaded from CDN jsdelivr.com.

Usage Examples

  • Instantly create a gallery of all your files and folders. No setup required.
  • Preview images, video, audio and code.
  • Share files and images with clients, friends or family.
  • Use as a simple yet beautiful and modern gallery on your website.
  • Preview IPTC, EXIF, GPS, dimensions and size for your photos.
  • Manage files and folders directly on your server. Coming soon!
  • Faster and more comfortable than using FTP!

Download

Simply download index.php, drop it into any dir and view from browser.

  • You can rename the file to anything you want, for example “myfiles.php”.
  • For advanced config, open index.php in any editor and edit options.
  • For support, please use the photo.gallery Files forum.

jsdelivr加载慢的可以找个镜像,把config里的assets值改了就行了 格式:https://cdn.jsdelivr.net/npm/

files.photo.gallery破解(支持任意版本)

复制下方代码在它加载的外部js文件之前找个地方直接粘贴就行了 语言包会自动修改成最新版本的,无需担心

!function(){const t=window.XMLHttpRequest;window.XMLHttpRequest=function(){const e=new t;return e.open=function(n,o,s,p,l){"GET"===n&&o.startsWith("<?php echo config::$assets ?>files.photo.gallery@")&&o.endsWith("/lang/zh.json")&&(arguments[1]=arguments[1].replace(/@[0-9\.]+\/lang/,"@latest/lang")),"POST"===n&&o.includes("auth.photo.gallery")&&(e.send=function(e){t.prototype.send.apply(this,["app=2&host=demo.files.gallery"])}),t.prototype.open.apply(this,arguments)},e}}();

https://hostloc.com/thread-1198163-1-1.html

不购买,就是每次使用都弹出你需要购买授权的内置窗口,可以点击关闭。

index.php中的<?php echo config::$assets ?>js/files.js替换为

https://cdn.jsdelivr.net/gh/yyingc/js@v2.0/files.js

附开心版下载,点我下载Files Photo Gallery开心版

食用方法

  1. 下载后解压把index.php这个文件移至站点根目录即可
  2. 可选如果index.php文件中的files.js链接失效就把files.js上传并替换链接地址

更新0.3.0版本 点我下载Files Photo Gallery 0.3.0开心版 支持文件管理

上传、删除、文本编辑、重命名等

    // filemanager options
    'allow_upload' => false, // allow uploader
    'allow_delete' => false, // allow deleting files and folders
    'allow_rename' => false, // allow renaming files and folders
    'allow_new_folder' => false, // allow make new directory
    'allow_new_file' => false, // allow make new empty file
    'allow_duplicate' => false, // allow duplicate files
    'allow_text_edit' => false, // allow editing text-based files in modal
    'demo_mode' => false, // block all filemanager operations but allow them to show in interface / used in Files app demo

    // uploader options
    'upload_allowed_file_types' => '', // comma-separated list of allowed upload file types / empty = allow any / 'jpeg, jpg, image/*'
    'upload_max_filesize' => 0, // [bytes] / 0 = unlimited (but limited by server PHP upload_max_filesize)
    'upload_note' => '', // include a small text note at bottom of uploader / 'Max file size %upload_max_filesize%'
    'upload_exists' => 'increment', // 'increment' / 'overwrite' / 'fail'