[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / ecrire / install / etape_4.php
diff --git a/www/ecrire/install/etape_4.php b/www/ecrire/install/etape_4.php
new file mode 100644 (file)
index 0000000..6c20a6f
--- /dev/null
@@ -0,0 +1,61 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2014                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+include_spip('inc/headers');
+
+// http://doc.spip.org/@install_etape_4_dist
+function install_etape_4_dist()
+{
+
+       // creer le repertoire cache, qui sert partout !
+       if(!@file_exists(_DIR_CACHE)) {
+               $rep = preg_replace(','._DIR_TMP.',', '', _DIR_CACHE);
+               $rep = sous_repertoire(_DIR_TMP, $rep, true,true);
+       }
+
+
+       echo install_debut_html('AUTO', ' onload="document.getElementById(\'suivant\').focus();return false;"');
+       echo info_progression_etape(4,'etape_','install/');
+
+       echo "<div class='success'><b>"
+               . _T('info_derniere_etape')
+               . "</b><p>"
+               . _T('info_utilisation_spip')
+               . "</p></div>";
+
+
+       echo "<p>"
+                       ._T('plugin_info_plugins_dist_1', array('plugins_dist' => "<tt>".joli_repertoire(_DIR_PLUGINS_DIST)."</tt>"))
+                       ."</p>";
+
+       // installer les extensions
+       include_spip('inc/plugin');
+       $afficher = charger_fonction("afficher_liste",'plugins');
+       echo $afficher(self(), liste_plugin_files(_DIR_PLUGINS_DIST),array(), array(), _DIR_PLUGINS_DIST,'afficher_nom_plugin');
+
+       plugin_installes_meta();
+
+       // mettre a jour si necessaire l'adresse du site
+       // securite si on arrive plus a se loger
+       include_spip('inc/config');
+       appliquer_adresse_site('');
+
+       // aller a la derniere etape qui clos l'install et redirige
+       $suite =  "\n<input type='hidden' name='etape' value='fin' />"
+         . bouton_suivant(_T('login_espace_prive'));
+
+       echo generer_form_ecrire('install', $suite);    echo install_fin_html();
+}
+
+?>