public bool creatNewVisitor() { string ipAddress = Request.Form["ipAddress"]; string country = Request.Form["country"]; string city = Request.Form["city"]; string loc = Request.Form["loc"]; string hostname = Request.Form["hostname"]; string language = Request.Form["language"]; string nowDate = KardoStaticMethods.getNowDateTimeUTC(); return(runCreatNewVisitor(ipAddress, country, city, loc, hostname, language, nowDate)); }
public string completeRegistry() { string userName = Request.Form["userName"]; string eMail = Request.Form["eMail"]; string password = Request.Form["password"]; string rName = Request.Form["rName"]; string sName = Request.Form["sName"]; string day = Request.Form["day"]; string month = Request.Form["month"]; string year = Request.Form["year"]; string nowDate = KardoStaticMethods.getNowDateTimeUTC(); string languagePreference = Request.Form["languagePreference"]; return(runCompleteRegistry(userName, eMail, password, rName, sName, day, month, year, nowDate, languagePreference)); }
//changeAccount public string changeAccount() { string UUID = Request.Form["uuid"]; if (UUID != null || UUID.Length > 0) { Dictionary <string, List <Object> > theUser = LoginModel.getUserFromUUID(UUID); if (theUser.Count == 0) { return("errorUUID"); } string userLoginKey = (string)theUser["username"][0]; string remember_me = "checked"; string session_checkbox = "unchecked"; string[] status = Request.Cookies["KardoUserInfos"]["status"].Split('_'); for (int i = 0; i < status.Length; i++) { if (status[i] == "active") { session_checkbox = "checked"; break; } } string password = userLoginKey + "_doNotControl"; string ipAddress = Request.Form["ipAddress"]; string country = Request.Form["country"]; string city = Request.Form["city"]; string loc = Request.Form["loc"]; string hostname = Request.Form["hostname"]; string nowDate = KardoStaticMethods.getNowDateTimeUTC(); runControlLogin(userLoginKey, remember_me, session_checkbox, password);//, ipAddress, country, city, loc, hostname, nowDate return("True"); } return("errorUUID"); }