This commit is contained in:
Yasder5 2026-03-03 23:29:33 +01:00
parent ef21c4b33d
commit da33d61b69
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
/templates_c/ /templates_c/
/templates_c/** /templates_c/**
.env .env
.htaccess

View file

@ -5,8 +5,8 @@
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__); $dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad(); $dotenv->safeLoad();
$strCtrl = $_GET['ctrl'] ?? 'project'; $strCtrl = preg_replace('/[^a-zA-Z]/', '', $_GET['ctrl'] ?? 'project');
$strMethod = $_GET['action'] ?? 'home'; $strMethod = preg_replace('/[^a-zA-Z_]/', '', $_GET['action'] ?? 'home');
$strClassName = "Controllers\\" . ucfirst($strCtrl) . "Ctrl"; $strClassName = "Controllers\\" . ucfirst($strCtrl) . "Ctrl";