[SPIP] v3.2.1-->v3.2.2
[lhc/web/www.git] / www / ecrire / install / etape_.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 /**
15 * Affichage de l'écran d'installation (étape 0 : écran d'accueil)
16 *
17 * @package SPIP\Core\Installation
18 */
19
20 if (!defined('_ECRIRE_INC_VERSION')) {
21 return;
22 }
23
24 /**
25 * Affiche l'étape 0 d'installation : écran d'accueil.
26 *
27 * @uses info_copyright()
28 **/
29 function install_etape__dist() {
30 utiliser_langue_visiteur();
31 $menu_langues = menu_langues('var_lang_ecrire');
32 if (!$menu_langues) {
33 redirige_url_ecrire('install', 'etape=chmod');
34 } else {
35 include_spip('inc/presentation'); // pour info_copyright
36
37 $res = "<div class='petit-centre'><img alt='SPIP' class='logo' src='" . chemin_image('logo-spip.png') . "' />\n" .
38 "<p class='small'>" . info_copyright() . "</p></div>\n" .
39 '<p>' . _T('install_select_langue') . '</p>' .
40 '<div>' . $menu_langues . "</div>\n" .
41 generer_form_ecrire('install', "<input type='hidden' name='etape' value='chmod' />" . bouton_suivant());
42 echo minipres('AUTO', $res);
43 }
44 }