[SPIP] v3.2.1-->v3.2.2
[lhc/web/www.git] / www / ecrire / exec / 404.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2019 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 /**
14 * Gestion d'affichage de page introuvable
15 *
16 * @package SPIP\Core\Exec
17 */
18
19 if (!defined('_ECRIRE_INC_VERSION')) {
20 return;
21 }
22
23 /**
24 * Un exec d'erreur
25 */
26 function exec_404_dist() {
27
28 $exec = _request('exec');
29
30 $titre = "exec_$exec";
31 $navigation = '';
32 $extra = '';
33
34 include_spip('inc/presentation'); // alleger les inclusions avec un inc/presentation_mini
35 $commencer_page = charger_fonction('commencer_page', 'inc');
36 echo $commencer_page($titre);
37
38 echo debut_gauche("404_$exec", true);
39 echo pipeline('affiche_gauche', array('args' => array('exec' => '404', 'exec_erreur' => $exec), 'data' => ''));
40
41 echo creer_colonne_droite('404', true);
42 echo pipeline('affiche_droite', array('args' => array('exec' => '404', 'exec_erreur' => $exec), 'data' => ''));
43
44 echo debut_droite('404', true);
45 echo "<h1 class='grostitre'>" . _T('fichier_introuvable', array('fichier' => $exec)) . '</h1>';
46 echo pipeline('affiche_milieu', array('args' => array('exec' => '404', 'exec_erreur' => $exec), 'data' => ''));
47
48 echo fin_gauche(), fin_page();
49 }