[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / exec / charger_plugin.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2014 *
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/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');
21
22 // http://doc.spip.org/@exec_admin_plugin_dist
23 function exec_charger_plugin_dist($retour='') {
24
25 if (!autoriser('configurer', 'plugins')) {
26 include_spip('inc/minipres');
27 echo minipres();
28 } else {
29
30 $commencer_page = charger_fonction('commencer_page', 'inc');
31 echo $commencer_page(_T('icone_admin_plugin'), "configuration", "plugin");
32 echo "<br />\n";
33 echo "<br />\n";
34
35 echo gros_titre(_T('icone_admin_plugin'),'',false);
36 echo barre_onglets("plugins", "charger_plugin");
37
38 echo debut_gauche('plugin',true);
39 echo debut_boite_info(true);
40 $s = "";
41 $s .= _T('info_gauche_admin_tech');
42 echo $s;
43 echo fin_boite_info(true);
44
45 echo pipeline('affiche_gauche',
46 array(
47 'args'=>array('exec'=>'charger_plugin'),
48 'data'=>''
49 )
50 );
51
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);
55
56 echo "<div class='liste-plugins formulaire_spip'>";
57 include_spip('inc/charger_plugin');
58 echo formulaire_charger_plugin($retour);
59 echo "</div>";
60
61 echo pipeline('affiche_milieu',
62 array(
63 'args'=>array('exec'=>'charger_plugin'),
64 'data'=>''
65 )
66 );
67
68 echo fin_gauche(), fin_page();
69 }
70 }
71
72 ?>