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:
+6
-6
@@ -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 + """\">
|
||||
|
||||
Reference in New Issue
Block a user