code cleaning and replace $_SERVER['SCRIPT_FILENAME'] by $_SERVER['PHP_SELF']

SCRIPT_FILENAME in a FPM environment is the CGI script
This commit is contained in:
sparkyx 2021-01-12 11:11:11 +01:00
parent 986e1a10b9
commit c7c518a19d
12 changed files with 1242 additions and 1092 deletions

View file

@ -68,7 +68,7 @@ class Sort_Table
{
if ($p_ind < 0 || $p_ind > $this->nb)
return 'ERREUR TRI';
$file = str_replace('extension.php', '', $_SERVER['SCRIPT_FILENAME']);
$file = str_replace('extension.php', '', $_SERVER['PHP_SELF']);
$base = $this->array[$p_ind]['url'];
$str = '';