|
|
|
@ -1111,11 +1111,6 @@ func saveuser(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
} else {
|
|
|
|
|
options.SkinnyCSS = false
|
|
|
|
|
}
|
|
|
|
|
if r.FormValue("avahex") == "avahex" {
|
|
|
|
|
options.Avahex = true
|
|
|
|
|
} else {
|
|
|
|
|
options.Avahex = false
|
|
|
|
|
}
|
|
|
|
|
if r.FormValue("omitimages") == "omitimages" {
|
|
|
|
|
options.OmitImages = true
|
|
|
|
|
} else {
|
|
|
|
@ -2108,8 +2103,7 @@ func avatate(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
loadAvatarColors()
|
|
|
|
|
}
|
|
|
|
|
n := r.FormValue("a")
|
|
|
|
|
hex := r.FormValue("hex") == "1"
|
|
|
|
|
a := genAvatar(n, hex)
|
|
|
|
|
a := genAvatar(n)
|
|
|
|
|
if !develMode {
|
|
|
|
|
w.Header().Set("Cache-Control", "max-age="+somedays())
|
|
|
|
|
}
|
|
|
|
|