3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
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 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
15 include_spip('inc/config');
16 include_spip('inc/plugin');
17 include_spip('inc/presentation');
18 include_spip('inc/layer');
19 include_spip('inc/actions');
20 include_spip('inc/securiser_action');
22 // http://doc.spip.org/@exec_admin_plugin_dist
23 function exec_charger_plugin_dist($retour='') {
25 if (!autoriser('configurer', 'plugins')) {
26 include_spip('inc/minipres');
30 $commencer_page = charger_fonction('commencer_page', 'inc');
31 echo $commencer_page(_T('icone_admin_plugin'), "configuration", "plugin");
35 echo gros_titre(_T('icone_admin_plugin'),'',false);
36 echo barre_onglets("plugins", "charger_plugin");
38 echo debut_gauche('plugin',true);
39 echo debut_boite_info(true);
41 $s .= _T('info_gauche_admin_tech');
43 echo fin_boite_info(true);
45 echo pipeline('affiche_gauche',
47 'args'=>array('exec'=>'charger_plugin'),
52 echo debut_droite('plugin', true);
53 // voire si on peut creer le repertoure auto/ sans rien demander
54 sous_repertoire(_DIR_PLUGINS_AUTO
, '', true, true);
56 echo "<div class='liste-plugins formulaire_spip'>";
57 include_spip('inc/charger_plugin');
58 echo formulaire_charger_plugin($retour);
61 echo pipeline('affiche_milieu',
63 'args'=>array('exec'=>'charger_plugin'),
68 echo fin_gauche(), fin_page();