예제 #1
0
파일: whmcs.go 프로젝트: nhocconan/lobster
func MakeWHMCS(app *lobster.Lobster, ip string, secret string) *WHMCS {
	this := new(WHMCS)
	this.ip = ip
	this.secret = secret
	app.RegisterHttpHandler("/whmcs_connector", app.GetDatabase().WrapHandler(this.handleConnector), true)
	app.RegisterHttpHandler("/whmcs_token", app.GetDatabase().WrapHandler(lobster.SessionWrap(this.handleToken)), false)
	return this
}
예제 #2
0
func MakeWHMCS(ip string, secret string) *WHMCS {
	this := new(WHMCS)
	this.ip = ip
	this.secret = secret
	lobster.RegisterHttpHandler("/whmcs_connector", this.handleConnector, true)
	lobster.RegisterHttpHandler("/whmcs_token", lobster.SessionWrap(this.handleToken), false)
	return this
}