';
// Debug
if (isset($debug[1]) && $debug[1] == '1') $debugMsg .= monDebug(1, ['theIdPage' => $theIdPage, 'theIdItem' =>$theIdItem, 'numeroMenuPrpal' =>$numeroMenuPrpal],'pagesPreview.php');
if ($theIdPage!='') {
include ("./agencement/blocDroit/pages/page/reqPage/pageReqSelect.php");
include ("./agencement/blocDroit/pages/items/reqItem/itemReqListeSelect.php"); // pour voir si il en existe au moins 1
}
// -----------------------------------------------------
// Select
// -----------------------------------------------------
$title="Les contenus selectionnés sont encadrés en orange";
echo '
Sélectionnez un contenu de la page : ';
// echo '';
echo '';
for ($i=0; $i < count($tabIdItem); $i++) {
if ($theIdItem==$tabIdItem[$i]) {
echo '' .$tabNomItem[$i]. ' ';
// echo '' .$tabNomItem[$i]. ' (' .$tabIdItem[$i]. ')'.' ';
}
else {
echo '' .$tabNomItem[$i]. ' (' .$tabIdItem[$i]. ')'.' ';
}
}
echo ' ';
$nbI=count($tabIdItem);
echo ' ';
echo ' Il y a ' .$nbI. ' contenu(s) dans la page';
echo '
';
// -----------------------------------------------------
// Page preview
// -----------------------------------------------------
echo '
';
// include ("../blocDroit/pages/page/reqPage/pageReqSelect.php");
$theChemin=".";
$theFinalFic = $theChemin .$theEmplacement .$theFicPage;
// Debug
if (isset($debug[1]) && $debug[1] == '1' ) {
$debugMsg .= monDebug (1, ['theIdPage= ' => $theIdPage, 'theChemin' =>$theChemin, 'theEmplacement' =>$theEmplacement, 'theFicPage' => $theFicPage, 'theFinalFic' =>$theFinalFic ],'');
}
if (file_exists( $theFinalFic )) {
if (file_get_contents($theFinalFic) === false) {
if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .= monDebug (1, ['recup du fichier non possible (file_get_contents)' =>$theFinalFic ],'');
}
else {
// include($theFinalFic);
$lire = file_get_contents($theFinalFic);
$lire = str_replace('$nomFicAppelant = basename(__FILE__)', '', $lire);
$lire = str_replace('', '', $lire);
$lire = str_replace('echo ', '', $lire);
$lire = str_replace(';' , '', $lire);
$lire = str_replace('\'', '', $lire);
$lire = str_replace('./', '../', $lire);
if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .= ' | Lire= ' .$lire;
}
}
else {
if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .= monDebug (1, ['Attention ! emplacement invalide' =>$theFinalFic],'');
$admMsg .= 'Attention ! emplacement invalide : '.$theFinalFic;
}
if (!empty($lire)) echo $lire;
echo '
';
echo '
';
echo '';
?>