5e3b61d910
You can now use the left and right keyboard keys to go to the next and previous page. Making the shell files a little friendlier. Needs testing. The main executable will always be named gosora.exe or the Linux equivalent ./Gosora Reports is now a physical forum and not a "virtual" one. Added create_forum() and delete_forum() for creating and deleting forums. Synced the installer's config.go with the main one. Forums are now stored in slices rather than maps for improved performance and concurrency. You can now set a forum as hidden when initially creating it. BBCode tag names may only be seven characters long now. This is part of a new anti-overflow measure that's much faster and simpler than the previous one. Updated the last block of code in routes.go which uses the antiquated "success = 0" error detection method. Fixed a visual bug in the Control Panel CSS. Seperated the system forums from the normal ones in the Forum Manager. You can now see if a forum is marked as Hidden in the Forum Manager. Fixed the position of the lock status indicator. IP Addresses now have a simple title attribute explaining that this long incomprehensible string is in fact an IP Address. Textareas look a little better now. Next / Previous buttons are now visible on mobile. .bat files always say what they're doing now.
37 lines
972 B
Go
37 lines
972 B
Go
package main
|
|
|
|
// Database details
|
|
var dbhost = "localhost"
|
|
var dbuser = "root"
|
|
var dbpassword = "password"
|
|
var dbname = "gosora"
|
|
var dbport = "3306" // You probably won't need to change this
|
|
|
|
// Limiters
|
|
var max_request_size = 5 * megabyte
|
|
|
|
// Misc
|
|
var default_route = route_topics
|
|
var default_group = 3 // Should be a setting
|
|
var activation_group = 5 // Should be a setting
|
|
var staff_css = " background-color: #ffeaff;"
|
|
var uncategorised_forum_visible = true
|
|
var enable_emails = false
|
|
var site_name = "Test Install" // Should be a setting
|
|
var site_email = "" // Should be a setting
|
|
var smtp_server = ""
|
|
//var noavatar = "https://api.adorable.io/avatars/{width}/{id}@{site_url}.png"
|
|
var noavatar = "https://api.adorable.io/avatars/285/{id}@" + site_url + ".png"
|
|
var items_per_page = 25
|
|
|
|
var site_url = "localhost:8080"
|
|
var server_port = "8080"
|
|
var enable_ssl = false
|
|
var ssl_privkey = ""
|
|
var ssl_fullchain = ""
|
|
|
|
// Developer flags
|
|
var debug = false
|
|
var profiling = false
|
|
|