diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 72101c69..5ddea837 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -1,1050 +1,153 @@ -get_full_path($activeLink); - $fullPath = explode("\ ", $fullPath); - - $activeLevel1 = $activeLink; - $activeLevel2 = sizeof($fullPath)>1?$fullPath[1]:''; - $activeLevel3 =sizeof($fullPath)>2?$fullPath[2]:''; - $activeLevel4 = sizeof($fullPath)>3?$fullPath[3]:''; - $activeLevel5 = sizeof($fullPath)>4?$fullPath[4]:''; - - $_SESSION['firstLevelMenu']=$activeLink; - - const MAX_COMPANY_NAME_LENGTH = 20; - +get_full_path($activeLink); +$fullPath = explode('\ ', $fullPath); + +$activeLevel1 = $activeLink; +$activeLevel2 = sizeof($fullPath) > 1 ? $fullPath[1] : ''; +$activeLevel3 = sizeof($fullPath) > 2 ? $fullPath[2] : ''; +$activeLevel4 = sizeof($fullPath) > 3 ? $fullPath[3] : ''; +$activeLevel5 = sizeof($fullPath) > 4 ? $fullPath[4] : ''; + +$_SESSION['firstLevelMenu'] = $activeLink; + +/* ── Constantes ── */ +defined('MAX_COMPANY_NAME_LENGTH') || define('MAX_COMPANY_NAME_LENGTH', 20); +defined('APP_VERSION') || define('APP_VERSION', date('YmdHi')); + +/* ── Variables de présentation ── */ +$companyDisplayName = htmlspecialchars($_SESSION['nomSociete'] ?? '', ENT_QUOTES); +$modeDev = $_SESSION['modeDev_C']; +$imgData = $_SESSION['photoAssureCrypte']; + +/* ── Infos de la vue ── */ +$infovue = $gabary->getInfosVue($_SESSION['vue']); +$_SESSION['descriptionVue'] = est_anglophone() ? $infovue['DescriptionEng'] : $infovue['Description']; +$_SESSION['titreRetour'] = est_anglophone() ? $infovue['titreRetourEng'] : $infovue['titreRetour']; +$_SESSION['retourVue'] = $infovue['lienRetour']; +$descriptionVue = $_SESSION['descriptionVue']; ?> - - -
- - - - -