Some important fixes PHP 8.1

Some important fixes PHP 8.1
This commit is contained in:
novgorodschi catalin
2026-08-11 09:19:32 +03:00
parent ac262db66f
commit 8c5a5b94ea
13 changed files with 77 additions and 28 deletions
+6 -1
View File
@@ -43,7 +43,12 @@ include_once($autoprefix.'GameEngine/config.php');
use App\Utils\AccessLogger;
AccessLogger::logRequest();
switch($_GET['f']) {
/**
* ajax.php poate fi cerut si fara parametrul "f" (boti, prefetch de browser,
* un link vechi). Fara isset() iesea "Undefined array key f" la fiecare
* astfel de cerere; acum pica linistit pe default.
*/
switch(isset($_GET['f']) ? $_GET['f'] : '') {
case 'k7':
header('Content-Type: application/json');
$x = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['x']);