Exemple #1
0
// Home HTTP handler function
func HttpHome(w http.ResponseWriter, req *http.Request, webHost string, webPort int, kismetHost string, kismetPort int, ssids []string) {
	header.Display(w, "Home", "home")

	iNames := getInterfaces()

	home.Execute(w, templateData{true, ssids, iNames})
}
//func HttpKismet(w http.ResponseWriter, req *http.Request, dbfile string, ssids []string) {
func HttpKismet(w http.ResponseWriter, req *http.Request, ssids []string) {
	header.Display(w, "Kismet", "kismet")
	httpTemplate.Execute(w, kismetData{ssids})
}