Recherche '; } $sConnectedUser = $bConnected?'Connecté : '.getHtml(ucwords($_SESSION['firstName'].' '.$_SESSION['lastName']), 'strong'):'Non connecté'; $asInfoDisplay['connectedUser'] = getHtml($sConnectedUser, 'p', 'connectedUser rounded'); $asGeneralDisplay['info'] = getHtml(getHtml(getHtml($asInfoDisplay, 'td', 'blank', 'padding:0;width:33%;'), 'tr'), 'table', 'maxWidth', 'border-spacing:0;'); //display browser warning if(getBrowser() == 'msie') { $asGeneralDisplay['main']['browser'] = getWarning(array('Le navigateur Internet Explorer est déconseillé pour cette application', 'Nous vous conseillons un navigateur optimisé (et gratuit) tel que Firefox')); } /** * Get included file * Available variables within file: * $bNoTemplate Boolean Display the application template * $oConnection Object Database connection handle * $iUserId Integer User Id (===false is not connected) * $bAdmin Boolean Is the current user an admin * $sPage String Page displayed * $sScriptStartTime String  Time at which the script started to be executed */ $bNoTemplate = false; ob_start(); require_once($sPagePath); $asGeneralDisplay['main']['file'] = ob_get_clean(); //display message $asGeneralDisplay['message'] = getCleanMessage(); if($bAdmin && $sPage==DEFAULT_LOGGED_PAGE) { $asGeneralDisplay['message'] .= getCleanPublication($iUserId); } //display included file if($bNoTemplate) { echo $asGeneralDisplay['main']['file']; die(); } //display Menu $asGeneralDisplay['menu'] = getMenu($sPage, $bAdmin); //display footer $sLogLink = 'Version '.CURRENT_VERSION; $asGeneralDisplay['rss'] = ''; if($bAdmin) { $sLogLink = getA('?page=version', $sLogLink, 'changelog et téléchargement'); $asGeneralDisplay['rss'] = getHtml(getA('?page=rss', getImage('images/feedIcon.png', 'flux rss'), 'flux rss'), 'p'); } $asGeneralDisplay['version'] = $sLogLink; //close SQL connection if($oConnection) { mysqli_close($oConnection); } //combine main part $asGeneralDisplay['main'] = $asGeneralDisplay['message']."\n".implode("\n", $asGeneralDisplay['main']); ?> QCM - <?php echo $sPageDesc; ?> preloaded image preloaded image