1
0
forked from Public/pics
Yorick van Pelt a71b8c9717 Add SQLite support as alternative database backend
Support config-driven choice between MySQL and SQLite via DB_DRIVER
constant, defaulting to MySQL for backward compatibility. All SQL
adaptation lives in Database.php (UDFs + query rewriting), so model
files need no changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

SQLite: remove FK constraints, revert 0→null sentinel changes

The SQLite schema had FOREIGN KEY constraints that don't exist in the
MySQL schema. These forced a cascade of 0→null changes to satisfy FK
enforcement. Removing them keeps the two backends behaviorally consistent
and minimises the diff. Real SQLite compat fixes (UDFs, query rewriting,
rowCount→count, Router fixes, EditAlbum guard) are preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 15:23:41 +01:00
2017-11-09 17:00:22 +01:00
2017-11-09 17:00:22 +01:00
2020-12-30 13:55:30 +01:00
2020-12-30 13:55:16 +01:00
2017-11-09 17:00:35 +01:00
2017-11-09 17:00:36 +01:00

HashRU Pics

This is the development repository for the HashRU photo website. The CMS and its modules originate in Kabuki CMS, but have been extended and are maintained separately in this repository.

Requirements

The Kabuki codebase requires the following PHP extensions to be enabled for full operation:

  • exif
  • imagick (PECL)
  • mysqli

Setup

Copy config.php.dist to config.php and set-up the constants contained in the file.

Running

For development purposes, simply run the server script provided in the root of this repository. This will start a PHP development server on hashru.local:8080.

For a production environment, please set up a proper PHP-FPM environment instead.

Contributing

Pull requests are welcome over at the HashRU Gitea.

License

The HashRU Pics repository is licensed with a BSD 3-clause license, as is Kabuki CMS.

Description
Album software van pics.hashru.nl
Readme 1.6 MiB
Languages
PHP 86%
JavaScript 9.6%
CSS 4.4%