Several changes I should have committed sooner, they would be better

with seperate commits but I never got around to it
This commit is contained in:
Logan Joy-Koer
2026-08-23 21:00:22 -07:00
parent 7e9816e52d
commit 853004d433
17 changed files with 419 additions and 54 deletions
+6 -6
View File
@@ -43,13 +43,13 @@ if "p" in argumentsDict:
session_user = ""
if session_status == "success":
pfp_base = os.path.realpath(script_directory + "/webroot/Images/profileimages")
pfp_real_gif = os.path.realpath(script_directory + "/webroot/Images/profileimages/" + session_user + ".gif")
pfp_real_jpg = os.path.realpath(script_directory + "/webroot/Images/profileimages/" + session_user + ".jpg")
pfp_base = os.path.realpath(script_directory + "/userdata/profileimages")
pfp_real_gif = os.path.realpath(script_directory + "/userdata/profileimages/" + session_user + ".gif")
pfp_real_jpg = os.path.realpath(script_directory + "/userdata/profileimages/" + session_user + ".jpg")
if pfp_real_gif.startswith(pfp_base + os.sep) and os.path.exists(pfp_real_gif):
pfp_src = "/Images/profileimages/" + html.escape(session_user) + ".gif"
pfp_src = "/usercontent/?p=profileimages/" + html.escape(session_user) + ".gif"
elif pfp_real_jpg.startswith(pfp_base + os.sep) and os.path.exists(pfp_real_jpg):
pfp_src = "/Images/profileimages/" + html.escape(session_user) + ".jpg"
pfp_src = "/usercontent/?p=profileimages/" + html.escape(session_user) + ".jpg"
else:
pfp_src = "/Images/default_pfp.gif"
userbar = (
@@ -97,7 +97,7 @@ if "p" in argumentsDict:
head = "<title>" + title + """</title>
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"""" + icon + """\">
<link rel=\"icon\" type=\"image/x-icon\" href=\"""" + icon + """\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"/styles/newCommon.css\">
""" + ("<link rel=\"stylesheet\" type=\"text/css\" href=\"/styles/newCommon.css\">" if version=="new" else "") +"""
<link rel=\"stylesheet\" type=\"text/css\" href=\"""" + html.escape(style) + """\">
<meta charset=\"UTF-8\">
<meta name=\"description\" content=\"""" + description + """\">