Files
afup/htdocs/pages/administration/message.php
2020-04-21 15:15:42 +02:00

23 lines
679 B
PHP

<?php
// Impossible to access the file itself
/** @var \AppBundle\Controller\LegacyController $this */
if (!defined('PAGE_LOADED_USING_INDEX')) {
trigger_error("Direct access forbidden.", E_USER_ERROR);
exit;
}
// On supprime ce qui a déjà été écrit dans le buffer de sortie
// car on va afficher une page "indépendente"
ob_clean();
// On affiche la page du message
$smarty->assign('message', stripslashes($_GET['message']));
$smarty->assign('url' , $_GET['url']);
$smarty->assign('erreur' , $_GET['erreur']);
$smarty->display('message.html');
// On s'arrête là pour ne pas afficher le pied de page
exit;
?>