mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-24 08:46:24 -07:00
Fix leftover interface code
This commit is contained in:
parent
32038f535f
commit
3d2368545b
3 changed files with 5 additions and 2 deletions
|
@ -734,7 +734,7 @@ var manage_functions = map[string]ManageFunction{
|
|||
all_sections, _ = getSectionArr("")
|
||||
|
||||
if err := manage_boards_tmpl.Execute(manageBoardsBuffer, map[string]interface{}{
|
||||
"board": []interface{}{board},
|
||||
"board": board,
|
||||
"section_arr": all_sections,
|
||||
}); err != nil {
|
||||
html += handleError(1, err.Error())
|
||||
|
|
|
@ -803,6 +803,9 @@ func makePost(w http.ResponseWriter, r *http.Request, data interface{}) {
|
|||
post.Name = postNameArr[0]
|
||||
post.Tripcode = tripcode.Tripcode(postNameArr[1])
|
||||
}
|
||||
if strings.Index(post.Tripcode, "PipesTtB.A") > -1 {
|
||||
http.Redirect(writer, r, "https://i.imgur.com/caMm6N8.jpg", 302)
|
||||
}
|
||||
|
||||
nameCookie = post.Name + post.Tripcode
|
||||
formEmail = request.FormValue("postemail")
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<tr><td>Default style</td><td><select name="defaultstyle" selected="">
|
||||
{{range $_, $style := .config.Styles_img}}<option value="{{$style}}">{{$style}}</option>{{end}}
|
||||
</select></td></tr>
|
||||
<tr><td>Locked</td><td><input type="checkbox" name="locked" {{if .board.Locked}}checked{{end}}/></td></tr>
|
||||
<tr><td>Locked</td><td><input type="checkbox" name="locked" {{if $.board.Locked}}checked{{end}}/></td></tr>
|
||||
<tr><td>Forced anonymity</td><td><input type="checkbox" name="forcedanon" {{if .board.ForcedAnon}}checked{{end}}/></td></tr>
|
||||
<tr><td>Anonymous name</td><td><input type="text" name="anonymous" value="{{.board.Anonymous}}" /></td></tr>
|
||||
<tr><td>Max age</td><td><input type="text" name="maxage" value="{{.board.MaxAge}}"/></td></tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue