
qdgal - a quick & dirty PHP photo gallery

I created qdgal for my own personal use, because I needed a dead simple PHP
gallery to show a few photos to family. There is plenty of such gallery
softwares on the internet, but every one that I checked was too complicated,
while I needed something *very* basic. No mandatory authentication, no user
options, no sql database, no crazy php dependencies, and a very simple user
interface that could be used by older people that are not so comfortable with
a computer.
Then I wrote a short php script during a summer afternoon, and qdgal was born.
As time passed, I added a handful of features to qdgal: basic (optional)
authentication, support for video files, custom styles, and more.

How to use it: simply copy the index.php, qdconf.php, qdlang.php and qdgal.css
files to your web server, into a directory where your photos are stored.
That's all. You can optionally edit qdconf.php and/or qdgal.css if you'd like
to customize qdgal to your liking, but that's up to you.
If you use password protection ($AUTH_PASS), copy htaccess.example to
.htaccess as well (disables directory indexes on Apache).

If you'd like to add comments to some of the photos, simply create a text file
with the same base name as the photo (for example 'photo.txt' if the image is
named 'photo.jpg'), its content will be displayed as the photo's comment.

Custom footer: to display a custom footer, create a html file named
"footer.html". qdgal will use it automatically.

Dependencies:
 - PHP 5.6+ (7.4+ or 8.x recommended)
 - php-gd (required only if thumbnail support is to be used)
 - exif (optional but highly recommended for correct thumbnails orientation)

homepage: https://mateusz.fr/qdgal

qdgal is published under the MIT license. It's free for anyone to use, modify,
and share.

=== Localization support =====================================================

qdgal supports a variety of languages out of the box. There's nothing you need
to do to, qdgal will auto-negotiate the browser's preferred language.
Currently, qdgal supports the following list of languages:
 * English
 * French
 * German
 * Polish
 * Russian

If your language is missing and you'd like to add it, simply add it to the
qdlang.php file. Let me know about your translation, I'd be happy to add it
into the official qdgal release.

=== License content ==========================================================

MIT License

Copyright (c) 2016-2026 Mateusz Viste

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

==============================================================================
