rename sections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user