Commit graph

8 commits

Author SHA1 Message Date
Peter Goodhall
5a44ef4b4e Per-install encryption key and session checks
Replace hardcoded encryption key in installer with a %encryption_key% placeholder and generate a unique per-install key during installation (uses random_bytes, falls back to openssl_random_pseudo_bytes or sha1(uniqid)). Inject the generated key into config.php. Also tighten User_Model::validate_session(): return early if no user_id, clear session if user_hash is missing, re-read the user from the database to verify user_type before authenticating, and refresh or clear the session accordingly. These changes improve security by using a unique encryption key per install and by validating session state against persisted user data.
2026-06-06 10:25:45 +01:00
Luca IU2FRL
a61bf66fe3 Deleting extra lines 2023-08-15 21:59:56 +02:00
Andreas
99379ec213 PHP8 fix and folder not found fix 2021-10-09 15:25:10 +02:00
Peter Goodhall
270eacb65e [Install] Hopefully fixes a bug 2021-07-25 22:42:26 +01:00
Peter Goodhall
431122d22e [Install] Check if directory exists if not exit install process 2021-07-20 20:31:48 +01:00
Peter Goodhall
db137bbd61 Revert "[Install] Filter Directory name"
This reverts commit e424ddbfda.
2021-07-20 19:22:39 +01:00
Peter Goodhall
e424ddbfda [Install] Filter Directory name 2021-07-20 18:53:53 +01:00
Peter Goodhall
bc7bc4ff58 Includes install system just go to /install in the browser and follow the on screen instructions 2011-12-20 15:38:43 +00:00