1 | <?php |
---|
2 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
3 | |
---|
4 | include_spip('inc/presentation'); |
---|
5 | |
---|
6 | function exec_charger_plugin_dist($retour=''){ |
---|
7 | |
---|
8 | // si pas autorise : message d'erreur |
---|
9 | if (!autoriser('configurer', 'plugins')) { |
---|
10 | include_spip('inc/minipres'); |
---|
11 | echo minipres(); |
---|
12 | } |
---|
13 | else { |
---|
14 | |
---|
15 | // pipeline d'initialisation |
---|
16 | pipeline('exec_init', array('args'=>array('exec'=>'charger_plugin'),'data'=>'')); |
---|
17 | |
---|
18 | // entetes |
---|
19 | $commencer_page = charger_fonction('commencer_page', 'inc'); |
---|
20 | echo $commencer_page(_T('icone_admin_plugin'), "configuration", "plugin"); |
---|
21 | echo "<br />\n"; |
---|
22 | echo "<br />\n"; |
---|
23 | |
---|
24 | // titre |
---|
25 | echo gros_titre(_T('icone_admin_plugin'),'',false); |
---|
26 | |
---|
27 | // barre d'onglets |
---|
28 | echo barre_onglets('plugins', 'charger_plugin'); |
---|
29 | |
---|
30 | // colonne gauche |
---|
31 | echo debut_gauche('plugin',true); |
---|
32 | // -- Boite d'infos |
---|
33 | $boite = _T('svp:info_boite_charger_plugin'); |
---|
34 | if ($boite) |
---|
35 | echo debut_boite_info(true) . $boite . fin_boite_info(true); |
---|
36 | echo pipeline('affiche_gauche', array('args'=>array('exec'=>'charger_plugin'),'data'=>'')); |
---|
37 | |
---|
38 | // colonne droite |
---|
39 | echo creer_colonne_droite('', true); |
---|
40 | echo pipeline('affiche_droite', array('args'=>array('exec'=>'charger_plugin'),'data'=>'')); |
---|
41 | |
---|
42 | // centre |
---|
43 | echo debut_droite('plugin', true); |
---|
44 | |
---|
45 | // contenu |
---|
46 | // -- On essaye de creer le repertoire auto/ sans rien demander |
---|
47 | sous_repertoire(_DIR_PLUGINS_AUTO, '', true, true); |
---|
48 | echo recuperer_fond('prive/contenu/charger_plugin', array()); |
---|
49 | |
---|
50 | // fin contenu |
---|
51 | echo pipeline('affiche_milieu', array('args'=>array('exec'=>'depots_gerer', 'retour'=>$retour),'data'=>'')); |
---|
52 | |
---|
53 | echo fin_gauche(), fin_page(); |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | ?> |
---|