Example #1
0
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
}
Example #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
}