mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 22:01:00 +00:00
Some important fixes PHP 8.1
Some important fixes PHP 8.1
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user