a71b8c97171df49c7cd47671d245ae711014213b
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>
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%