protected void Page_Load(object sender, EventArgs e) { if (SessionObjects.checkUserSession()) { string GUId = SessionObjects.SessionUserRegId.ToLower(); string GameGUId = (Utils._GET("gid") ?? "").ToLower(); //f457c545a9ded88f18ecee47145a72c0 string[] Action = (Utils._GET("act") ?? "").Split(','); if (GameGUId.Length == 32 && Action.Count() > 0) { _classJSON = new classJSON(); for (int key = 0; key < Action.Count(); key++) { switch (Action[key]) { case "BlockSites": _classJSON.metrics.Add("BlockSites", jsonBlockSites(SessionObjects.SessionUserId, GameGUId)); break; case "BlockBannerSites": _classJSON.metrics.Add("BlockSites", jsonBlockBannerSites(SessionObjects.SessionUserId, GameGUId)); break; case "BannerConfig": _classJSON.metrics.Add("BannerConfig", jsonBannerConfig(SessionObjects.SessionUserId, GameGUId)); break; case "BannerFilter": _classJSON.metrics.Add("BannerFilter", jsonBannerFilter(SessionObjects.SessionUserId, GameGUId)); break; case "SharedGames": break; } } Response.Write(Utils.json_encode(_classJSON)); } else { Response.Write("false"); } } else { Response.Write("false"); } }
protected void Page_Load(object sender, EventArgs e) { if (SessionObjects.checkUserSession()) { string GUId = SessionObjects.SessionUserRegId.ToLower(); string GameGUId = (Utils._GET("gid") ?? "").ToLower(); //f457c545a9ded88f18ecee47145a72c0 string[] Action = (Utils._GET("act") ?? "").Split(','); string[] DateInterval = (Utils._GET("dat") ?? "").Split(','); int page = Utils.safeInt((Utils._GET("pag") ?? "")); if ((GameGUId == "all" || GameGUId.Length == 32) && Action.Count() > 0 && Utils.safeInt(DateInterval[0]) > 0 && Utils.safeInt(DateInterval[1]) > 0) { _classJSON = new classJSON(); for (int key = 0; key < Action.Count(); key++) { switch (Action[key]) { case "GameIncomesTotal": _classJSON.metrics.Add("GameIncomesTotal", jsonMonetizeGameIncomesTotal(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]))); break; case "GameIncomes": _classJSON.metrics.Add("GameIncomes", jsonMonetizeGameIncomes(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; } } Response.Write(Utils.json_encode(_classJSON)); } else { Response.Write("false"); } } else { Response.Write("false"); } }
protected void Page_Load(object sender, EventArgs e) { if (SessionObjects.checkUserSession()) { string GUId = SessionObjects.SessionUserRegId.ToLower(); string GameGUId = (Utils._GET("gid") ?? "").ToLower(); //f457c545a9ded88f18ecee47145a72c0 string[] Action = (Utils._GET("act") ?? "").Split(','); string[] DateInterval = (Utils._GET("dat") ?? "").Split(','); int page = Utils.safeInt((Utils._GET("pag") ?? "")); if (GameGUId.Length == 32 && Action.Count() > 0 && Utils.safeInt(DateInterval[0]) > 0 && Utils.safeInt(DateInterval[1]) > 0) { _classJSON = new classJSON(); for (int key = 0; key < Action.Count(); key++) { switch (Action[key]) { case "Summary": jsonSummary(Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1])); break; case "Overview": jsonOverview(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1])); break; case "Total": jsonTotalUsers(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1])); break; case "TotalWithDomain": jsonTotalUsersWithDomain(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("dom") ?? ""))); break; case "TotalWithBrowser": jsonTotalUsersWithBrowser(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("bro") ?? ""))); break; case "TotalWithOS": jsonTotalUsersWithOS(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("os") ?? ""))); break; case "City": _classJSON.metrics.Add("City", jsonCities(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]))); break; case "Country": _classJSON.metrics.Add("Country", jsonCountries(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; case "WebRefer": _classJSON.metrics.Add("WebRefer", jsonWebRefer(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("dom") ?? "")), page)); break; case "WebReferDomain": _classJSON.metrics.Add("WebReferDomain", jsonWebReferDomain(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; case "BrowserName": _classJSON.metrics.Add("BrowserName", jsonBrowserName(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; case "Browser": _classJSON.metrics.Add("Browser", jsonBrowser(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("bro") ?? "")), page)); break; case "Device": _classJSON.metrics.Add("Device", jsonDevice(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; case "OSName": _classJSON.metrics.Add("OSName", jsonOSName(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), page)); break; case "OS": _classJSON.metrics.Add("OS", jsonOS(GameGUId, Utils.safeInt(DateInterval[0]), Utils.safeInt(DateInterval[1]), Utils.safeStr((Utils._GET("os") ?? "")), page)); break; } } Response.Write(Utils.json_encode(_classJSON)); } else { Response.Write("false"); } } else { Response.Write("false"); } }
protected void Page_Load(object sender, EventArgs e) { if (SessionObjects.checkUserSession()) { string GUId = SessionObjects.SessionUserRegId.ToLower(); if (Utils.safeStr(Utils._GET("rid")).Length == 36) { GUId = Utils._GET("rid"); } string GameGUId = (Utils._GET("gid") ?? "").ToLower(); //f457c545a9ded88f18ecee47145a72c0 string[] Action = (Utils._GET("act") ?? "").Split(','); if ((GameGUId.Length == 32 || GameGUId == "whole") && Action.Count() > 0 && GameGUId != "") { classJSON _classJSON = new classJSON(); if (GameGUId == "whole") { for (int key = 0; key < Action.Count(); key++) { switch (Action[key]) { case "Whole": _classJSON.metrics.Add("Games", jsonWholeGames(GUId)); break; case "Country": _classJSON.metrics.Add("Country", jsonWholeCountries(GUId)); break; case "WebRefer": _classJSON.metrics.Add("WebRefer", jsonWholeWebRefer(GUId)); break; case "VisitState": _classJSON.metrics.Add("VisitState", jsonWholeVisitState(GUId)); break; case "TotalOnline": _classJSON.metrics.Add("TotalOnline", jsonTotalOnlineCount(GUId)); break; } } } //Whole else { for (int key = 0; key < Action.Count(); key++) { switch (Action[key]) { case "City": _classJSON.metrics.Add("City", jsonCities(GUId, GameGUId)); break; case "Country": _classJSON.metrics.Add("Country", jsonCountries(GUId, GameGUId)); break; case "WebRefer": _classJSON.metrics.Add("WebRefer", jsonWebRefer(GUId, GameGUId)); break; case "VisitState": _classJSON.metrics.Add("VisitState", jsonVisitState(GUId, GameGUId)); break; case "GameOnline": _classJSON.metrics.Add("GameOnline", jsonGameOnlineCount(GUId, GameGUId)); break; case "TotalOnline": _classJSON.metrics.Add("TotalOnline", jsonTotalOnlineCount(GUId)); break; } } } Response.Write(Utils.json_encode(_classJSON)); } else { Response.Redirect("/analytics/"); } } else { Response.Redirect("/analytics/"); } }