dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 40df073650c293305e5a32d6c5e5b1959b10c374
parent deb5ec3eb2de5527c310ba147f89559526bf98b4
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 14 Dec 2023 05:18:55 -0500

for fun

Diffstat:
Mpkg/template/templates.go | 4+++-
Apkg/web/public/img/login_bg_poker.jpg | 0
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/template/templates.go b/pkg/template/templates.go @@ -101,7 +101,9 @@ func (t *Templates) Render(w io.Writer, name string, data any, c echo.Context) e d.WallpaperImg = "/public/img/login_bg.jpg" year, month, day := time.Now().UTC().Date() d.IsAprilFool2023 = year == 2023 && month == time.April && day == 1 - if month == time.December { + if strings.HasPrefix(c.QueryParam("redirect"), "/poker") { + d.WallpaperImg = "/public/img/login_bg_poker.jpg" + } else if month == time.December { d.WallpaperImg = "/public/img/login_bg_1.jpg" } else if d.IsAprilFool2023 { d.WallpaperImg = "/public/img/login_bg_2.jpg" diff --git a/pkg/web/public/img/login_bg_poker.jpg b/pkg/web/public/img/login_bg_poker.jpg Binary files differ.