Documentation ¶
Index ¶
- Variables
- func AllowRegistration()
- func BaseURL() string
- func CheckConfig()
- func CheckMailConfStatus() bool
- func CheckMaintenanceMode() bool
- func CheckRegistration() bool
- func CheckSession(r *http.Request, sesname string) (m bool, v string)
- func CountRows(value string, table string, condition string) int
- func CreateTable()
- func DBCheck() bool
- func DecryptConfigPasswords(pwd string) string
- func DelSession(w http.ResponseWriter, r *http.Request, sessionname string)
- func DeleteRow(table string, condition string)
- func EmailCheck(w http.ResponseWriter, r *http.Request)
- func FileExists(filename string) bool
- func ForbidRegistration()
- func GetCustomCSS() []string
- func GetCustomJS() []string
- func GetDBString() []string
- func GetDisableFonts() bool
- func GetLogDir() string
- func GetMemcachedSettings() string
- func GetRedisSettings() string
- func GetSS(lg string, param string) string
- func GetSiteSettings(param string) bool
- func GetSiteSettingsPath() []string
- func HashConfigPasswords()
- func InitCache()
- func InsertRow(table string, name []string, value []string)
- func IsEmailConfirmation() bool
- func IsSession(r *http.Request, sesname string) bool
- func LangCode() string
- func LoadConfig(conf string) []string
- func LoadContentDirectory() string
- func LoadTitle() string
- func MakeAlive()
- func OffMailConfirmation()
- func OnMailConfirmation()
- func Pad(src []byte) []byte
- func ParamMaintenance(w http.ResponseWriter, r *http.Request)
- func RandomString(l int) string
- func RegStatus(w http.ResponseWriter, r *http.Request)
- func SelectFrom(value string, table string, condition string) *sqlx.Rows
- func SendEmailNow(to string, uname string, link string, subject string, template string)
- func SetErrorLog(value string)
- func SetLog(value string)
- func SetSession(name string) string
- func SysCurl(method string, curldata [][]string)
- func ToMaintenance()
- func Unpad(src []byte) ([]byte, error)
- func UpdateMailDataFromtDB(Value string)
- func UpdateMainDataFromtDB(Value string)
- func UpdateRegDataFromtDB(Value string)
- func UpdateRow(table string, updatedData [][]string, condition string)
- func UpdateSession(w http.ResponseWriter, r *http.Request, sessionname string)
- func UserMailConf(uname string) bool
- func WriteLog(value string, p string)
- type Data
- type MailConfDB
- type Menus
- type Params
- type Request
- type SiteSettTable
Constants ¶
This section is empty.
Variables ¶
View Source
var AesKey = []byte("H4fnCsMf4vbE60nK")
Functions ¶
func AllowRegistration ¶
func AllowRegistration()
func CheckConfig ¶
func CheckConfig()
func CheckMailConfStatus ¶
func CheckMailConfStatus() bool
func CheckMaintenanceMode ¶
func CheckMaintenanceMode() bool
func CheckRegistration ¶
func CheckRegistration() bool
func CreateTable ¶
func CreateTable()
func DecryptConfigPasswords ¶
func DelSession ¶
func DelSession(w http.ResponseWriter, r *http.Request, sessionname string)
func EmailCheck ¶
func EmailCheck(w http.ResponseWriter, r *http.Request)
func FileExists ¶
fileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func ForbidRegistration ¶
func ForbidRegistration()
func GetCustomCSS ¶
func GetCustomCSS() []string
func GetCustomJS ¶
func GetCustomJS() []string
func GetDBString ¶
func GetDBString() []string
func GetDisableFonts ¶
func GetDisableFonts() bool
func GetMemcachedSettings ¶
func GetMemcachedSettings() string
func GetRedisSettings ¶
func GetRedisSettings() string
func GetSiteSettings ¶
func GetSiteSettingsPath ¶
func GetSiteSettingsPath() []string
func HashConfigPasswords ¶
func HashConfigPasswords()
func IsEmailConfirmation ¶
func IsEmailConfirmation() bool
func LoadConfig ¶
func LoadContentDirectory ¶
func LoadContentDirectory() string
func OffMailConfirmation ¶
func OffMailConfirmation()
func OnMailConfirmation ¶
func OnMailConfirmation()
func ParamMaintenance ¶
func ParamMaintenance(w http.ResponseWriter, r *http.Request)
func RandomString ¶
func SendEmailNow ¶
func SetErrorLog ¶
func SetErrorLog(value string)
func SetSession ¶
func ToMaintenance ¶
func ToMaintenance()
func UpdateMailDataFromtDB ¶
func UpdateMailDataFromtDB(Value string)
func UpdateMainDataFromtDB ¶
func UpdateMainDataFromtDB(Value string)
func UpdateRegDataFromtDB ¶
func UpdateRegDataFromtDB(Value string)
func UpdateSession ¶
func UpdateSession(w http.ResponseWriter, r *http.Request, sessionname string)
func UserMailConf ¶
Types ¶
type MailConfDB ¶
type MailConfDB struct {
Mail int `db:"mail_confirmed"`
}
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request struct
func NewRequest ¶
func (*Request) ParseTemplate ¶
type SiteSettTable ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.