Add support page, admin features, and auth hardening.

Rename public affiliate route to /support with localized nav labels, and include affiliate/social/wallpaper admin, 2FA login, and related site updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Atakan Doğan Özban
2026-07-29 20:25:55 +02:00
co-authored by Cursor
parent 202dc16a52
commit fc45c35dbe
149 changed files with 3496 additions and 11263 deletions
+25 -1
View File
@@ -1,16 +1,40 @@
using System.Web.Mvc;
using System.Linq;
using System.Web.Mvc;
using atakanozbancom;
using atakanozbancom.Models.classes;
namespace atakanozbancom.Controllers
{
public class MainController : languageController
{
private readonly Context db = new Context();
[HttpGet]
public ActionResult Index()
{
return View();
}
public PartialViewResult socialicons()
{
var icons = db.SocialIcons
.OrderBy(x => x.sort_order)
.ThenBy(x => x.id)
.ToList();
return PartialView(icons);
}
public PartialViewResult wallpaper()
{
var setting = db.SiteSettings.FirstOrDefault();
ViewBag.WallpaperUrl = !string.IsNullOrWhiteSpace(setting?.wallpaper)
? setting.wallpaper
: "/web_atakanozbancom/assets/img/wp.jpg";
return PartialView();
}
[HttpGet]
public ActionResult ChangeLanguage(string lang, string returnUrl)
{