Exemple #1
0
func init() {

	var err error

	privateSignedKey, err = ioutil.ReadFile(path.Join(caller.Path(), privateKeyFile))
	if err != nil {
		panic(err)
	}

	publicVerifyKey, err = ioutil.ReadFile(path.Join(caller.Path(), publicKeyFile))
	if err != nil {
		panic(err)
	}

}
Exemple #2
0
func init() {

	headCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/head.html"))
	bodyCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/body.html"))
	layoutCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/layout.html"))
	authenCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/authen.html"))

	// Messenger templates
	errorCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/errors.html"))
	infoCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/infos.html"))

}
Exemple #3
0
func init() {
	editTmpl = path.Join(caller.Path(), "edit.html")
}
Exemple #4
0
func init() {
	vioTmpl = path.Join(caller.Path(), "violate.html")
}
Exemple #5
0
func init() {
	resetpwTmpl = path.Join(caller.Path(), "resetpw.html")
}
Exemple #6
0
func init() {
	welcomeTmpl = path.Join(caller.Path(), "welcome.html")
}
Exemple #7
0
func init() {
	signInTmpl = path.Join(caller.Path(), "signin.html")
}
Exemple #8
0
func init() {
	fmt.Println("Initialization.")
	db, _ = neoism.Connect(dbUri)

	dirtyNameFile = path.Join(caller.Path(), "dirty_name.txt")
}
Exemple #9
0
func init() {
	errorTmpl = path.Join(caller.Path(), "404.html")
}
Exemple #10
0
func init() {
	passwordTmpl = path.Join(caller.Path(), "password.html")
}
Exemple #11
0
func init() {
	signUpTmpl = path.Join(caller.Path(), "signup.html")
}
Exemple #12
0
func init() {
	expiredTmpl = path.Join(caller.Path(), "expired.html")
}
Exemple #13
0
func init() {
	// Path where all language ini files are stored
	folder = path.Join(caller.Path(), "files")
}
Exemple #14
0
func init() {
	viewTmpl = path.Join(caller.Path(), "view.html")
}
Exemple #15
0
func init() {
	forgotpwTmpl = path.Join(caller.Path(), "forgotpw.html")
}