Scores : move Global Vars

This commit is contained in:
Michael RICOIS 2016-01-27 16:54:40 +00:00
parent 134aef7cdc
commit d711c48c3b
2 changed files with 626 additions and 666 deletions

View File

@ -606,7 +606,10 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
global $Ra, $Rap, $Rdiff;
//Définition du nom des variables
require_once realpath(dirname(__FILE__)).'/globalCommentaires.php';
$GlobalVars = include realpath(dirname(__FILE__)).'/GlobalVars.php';
foreach ($GlobalVars as $var) {
global $$var;
}
$NIVEAU = $cycleClient; // 1, 2, 3 ou 5 Niveau de version des commentaires