From c69ef20b177d23980bf4d10c333c8dd80ac4c983 Mon Sep 17 00:00:00 2001 From: Daniel Schmitz Date: Wed, 23 Jun 2021 10:58:52 +0800 Subject: [PATCH 1/9] wip --- .gitignore | 1 + lib/init.php | 5 ++++- templates/Sparkle/2fa/entercode.tpl | 2 +- templates/Sparkle/login/fpwd.tpl | 2 +- templates/Sparkle/login/login.tpl | 2 +- templates/Sparkle/login/login_ftp.tpl | 2 +- templates/Sparkle/login/rpwd.tpl | 2 +- 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 3d547882..42d3b189 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ logs/* !templates/Sparkle/ !templates/misc/ templates/Froxlor/assets/img/logo_custom.png +templates/Froxlor/assets/img/logo_custom_login.png vendor/ diff --git a/lib/init.php b/lib/init.php index a0a8a431..7a9e9de5 100644 --- a/lib/init.php +++ b/lib/init.php @@ -380,11 +380,14 @@ if (! array_key_exists('variants', $_themeoptions) || ! array_key_exists($themev // check for custom header-graphic $hl_path = 'templates/' . $theme . '/assets/img'; -$header_logo = $hl_path . '/logo.png'; +$header_logo = $header_logo_login = $hl_path . '/logo.png'; if (file_exists($hl_path . '/logo_custom.png')) { $header_logo = $hl_path . '/logo_custom.png'; } +if (file_exists($hl_path . '/logo_custom_login.png')) { + $header_logo_login = $hl_path . '/logo_custom_login.png'; +} /** * Redirects to index.php (login page) if no session exists diff --git a/templates/Sparkle/2fa/entercode.tpl b/templates/Sparkle/2fa/entercode.tpl index 2f2d84f6..b79090e6 100644 --- a/templates/Sparkle/2fa/entercode.tpl +++ b/templates/Sparkle/2fa/entercode.tpl @@ -1,7 +1,7 @@ $header
- Froxlor Server Management Panel + Froxlor Server Management Panel
diff --git a/templates/Sparkle/login/fpwd.tpl b/templates/Sparkle/login/fpwd.tpl index 1764e47d..fa8c7d2e 100644 --- a/templates/Sparkle/login/fpwd.tpl +++ b/templates/Sparkle/login/fpwd.tpl @@ -1,7 +1,7 @@ $header