[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / ecrire / install / etape_4.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2016 *
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 if (!defined('_ECRIRE_INC_VERSION')) return;
14
15 include_spip('inc/headers');
16
17 // http://doc.spip.org/@install_etape_4_dist
18 function install_etape_4_dist()
19 {
20
21 // creer le repertoire cache, qui sert partout !
22 if(!@file_exists(_DIR_CACHE)) {
23 $rep = preg_replace(','._DIR_TMP.',', '', _DIR_CACHE);
24 $rep = sous_repertoire(_DIR_TMP, $rep, true,true);
25 }
26
27
28 echo install_debut_html('AUTO', ' onload="document.getElementById(\'suivant\').focus();return false;"');
29 echo info_progression_etape(4,'etape_','install/');
30
31 echo "<div class='success'><b>"
32 . _T('info_derniere_etape')
33 . "</b><p>"
34 . _T('info_utilisation_spip')
35 . "</p></div>";
36
37
38 echo "<p>"
39 ._T('plugin_info_plugins_dist_1', array('plugins_dist' => "<tt>".joli_repertoire(_DIR_PLUGINS_DIST)."</tt>"))
40 ."</p>";
41
42 // installer les extensions
43 include_spip('inc/plugin');
44 $afficher = charger_fonction("afficher_liste",'plugins');
45 echo $afficher(self(), liste_plugin_files(_DIR_PLUGINS_DIST),array(), array(), _DIR_PLUGINS_DIST,'afficher_nom_plugin');
46
47 plugin_installes_meta();
48
49 // mettre a jour si necessaire l'adresse du site
50 // securite si on arrive plus a se loger
51 include_spip('inc/config');
52 appliquer_adresse_site('');
53
54 // aller a la derniere etape qui clos l'install et redirige
55 $suite = "\n<input type='hidden' name='etape' value='fin' />"
56 . bouton_suivant(_T('login_espace_prive'));
57
58 echo generer_form_ecrire('install', $suite); echo install_fin_html();
59 }
60
61 ?>