Skip to main content

Files Gallery 0.11.0

· 3 min read
Karl Ward
Creator

Files Gallery 0.11.0 includes the long-awaited multi-user login system Beta

See demo Release info for Files Gallery 0.11.0

Multi-user login system

This release includes a new multi-user login system, which allows the following:

  • Allow public (non-login) view access while allowing admin login for file manager actions.
  • Create multiple users each assigned to different root folders.
  • Assign different permissions and config options per user.

Users Demo

A few examples of different user logins username / password.
demo.files.gallery/users
*For each login example, you will need to first logout from the topbar.

  • guest / guest
    Default public login with view only permissions.
  • admin / abracadabra
    Admin user with all file manager capabilities allowed.
  • galleries / aurora
    Users config root assigned to galleries dir with full permissions.
  • user / elixir
    Menu disabled, a few dirs excluded and language assigned to German.

Users Documentation

The concept is simple. Create a file _files/users/username/config.php which should contain the password and any other config option. Minimal user config file would look like this:

<?php
return array (
'password' => 'elixir', // non-encrypted for demonstration purpose
);
Users Documentation

Why is users beta?

I decided to release an early version, since core functionality is already working, and I would like to test and get feedback in the support forums before implementing additional user-related features:

  • Interface to manage users and user settings.
  • Config option to allow managing users and user settings.
  • Improvements for persistent login and when automatically logged out.
  • Custom javascript, css and includes per user.
  • Login page translated.

More Features

  • New allow_all config option enables all allow_* file manager actions from a single option.
  • Popup topbar mobile download button removed when allow_download is disabled [forum]
  • Load inline PDF files also on mobile devices when use_google_docs_viewer is disabled.
  • New Javascript option inline_pdf_append_url for disabling PDF toolbar [forum]
  • PHP config options filter_live and filter_props move to Javascript config.

New Config Options

The following new PHP config options have been added.

_files/config/config.php
// shortcut to enable all file manager allow options allow_{upload, delete, rename, new_folder, new_file, duplicate, text_edit, zip, unzip, move, copy, download, mass_download, mass_copy_links}
'allow_all' => false,

New Javascript Options

The following new Javascript options have been added.

_files/css/custom.js
// filter input live search on keybaord input. When disabled, input filter requires keyboard-return or unfocus to trigger, which may be useful if you have 1000's of files in folders and want to prevent slow filtering from triggering unnecessarily.
filter_live: true,

// array of file properties to use when filtering, more properties will cause slower processing. IPTC-related properties will only apply for images that contain IPTC data (title, keywords, copyright etc)
// name, filetype, mime, features, title, headline, description, creator, credit, copyright, keywords, city, sub-location, province-state
filter_props: ['name', 'filetype', 'mime', 'features', 'title'],

// append string to inline PDF url's. Useful for example to append '#toolbar=0' if you don't want the PDF toolbar to display
inline_pdf_append_url: '',

How to update?

Simply download latest Files Gallery index.php or see the update docs.