diff --git a/info.py b/info.py index e0955e6..2fb1b82 100644 --- a/info.py +++ b/info.py @@ -5,6 +5,6 @@ author = { "email":"maloja@krateng.dev", "github": "krateng" } -version = 1,5,12 +version = 1,5,13 versionstr = ".".join(str(n) for n in version) dev = os.path.exists("./.dev") diff --git a/server.py b/server.py index 361d4cc..c2437f7 100755 --- a/server.py +++ b/server.py @@ -155,13 +155,13 @@ def static_html(name): adminmode = request.cookies.get("adminmode") == "true" and database.checkAPIkey(request.cookies.get("apikey")) is not False - # if a pyhp file exists, use this if (pyhp_file and pyhp_pref) or (pyhp_file and not html_file): from doreah.pyhp import file environ = {} #things we expose to the pyhp pages environ["adminmode"] = adminmode + if adminmode: environ["apikey"] = request.cookies.get("apikey") # maloja environ["db"] = database diff --git a/website/track.pyhp b/website/track.pyhp index 356693b..1a74a14 100644 --- a/website/track.pyhp +++ b/website/track.pyhp @@ -31,7 +31,8 @@

-

Scrobbles

+

Scrobble now Scrobbles

+