rename sections

This commit is contained in:
cube
2026-04-03 22:49:23 +01:00
parent 2b8ce9c4c8
commit 6ebc172aac
4 changed files with 45 additions and 7 deletions

View File

@@ -94,6 +94,18 @@ def edit(mid):
edit_location = "page_settings"
if "section_titles" in request.form:
groups_title = request.form["groups_title"]
blog_title = request.form["blog_title"]
icons_title = request.form["icons_title"]
blinkies_title = request.form["blinkies_title"]
stamps_title = request.form["stamps_title"]
db.execute("UPDATE member SET groups_title=(?), blog_title=(?), icons_title=(?), blinkies_title=(?), stamps_title=(?) WHERE id=(?)",(groups_title, blog_title, icons_title, blinkies_title, stamps_title, mid))
db.commit()
edit_location = "page_settings"
if "file" in request.files:
# here we are just saving the uploaded file to the icons folder.
# we're not going hard on security because we expect there to only be 1 admin