d788391f4a2e3fcdfdfd3d75a1e7973e41dd77cb
Move the ON DUPLICATE KEY UPDATE and UPDATE...AS alias SQL rewrites out of Database::rewriteForSQLite() and into Tag::createNew() and Tag::recount() as driver-aware branches via a new Database::getDriver() method. This keeps dialect-specific SQL explicit at the call site rather than buried in fragile regex transforms. Also fix Tag::getAlbums() and Tag::getPeople() failing on SQLite when id_parent is NULL by adding an IS NULL fallback for root-level queries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Languages
PHP
86%
JavaScript
9.6%
CSS
4.4%