From 81c52b4b1e73bcc44cbe93fa926036277a961208 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 30 Nov 2020 15:53:32 +0300 Subject: [PATCH] add support for an override stylesheet which applies to all users --- include/functions.php | 4 ++++ include/login_form.php | 4 ++++ index.php | 7 +++++-- prefs.php | 7 +++++-- register.php | 3 +++ 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/include/functions.php b/include/functions.php index 538239218..ceb7fbd9e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -7,6 +7,10 @@ define('COOKIE_LIFETIME_LONG', 86400*365); + // this CSS file is included for everyone (if it exists in themes.local) + // on login, registration, and main (index and prefs) pages + define('LOCAL_OVERRIDE_STYLESHEET', '.local-overrides.css'); + $fetch_last_error = false; $fetch_last_error_code = false; $fetch_last_content_type = false; diff --git a/include/login_form.php b/include/login_form.php index d2688d0ec..586d6fe78 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -18,6 +18,10 @@ } ?> + +