source: trunk/spip/2.1/extensions/magusine-portage2.1/exec/about.php @ 756

Last change on this file since 756 was 756, checked in by guillermoacedo@…, 14 years ago

se agrego la correccion de magusine para 2.1 basica

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1<?php
2/***************************************************************************\
3 Plugin   : magusine
4 Licence  : GPL
5 Auteurs  : Stéphane Noël, Philippe Vanderlinden
6 Infos    : http://www.spip-contrib.net/Le-plugin-Magusine
7            http://www.magunews.net/spip.php?rubrique645
8
9 $LastChangedRevision: 12345 $
10 $LastChangedBy: bubu $
11 $LastChangedDate: 2008-03-21 15:50:47 +0100 (ven, 21 mar 2008) $
12 \***************************************************************************/
13
14include_spip('inc/xml-parser');
15
16if (!defined("_ECRIRE_INC_VERSION")) return;
17include_spip('inc/presentation');
18
19include_spip('inc/arty_selecteur');
20include_spip('inc/user_session');
21
22function exec_about() {
23
24        global $connect_statut;
25        if ($connect_statut != "0minirezo" ) {
26         echo "<p><b>"._T('magusine:acces_a_la_page')."</b></p>";
27         fin_page();
28         exit;
29        }
30
31        $commencer_page = charger_fonction('commencer_page', 'inc');
32        echo $commencer_page('&laquo; '._T('sideinfo_about').' &raquo;', 'configuration', 'magusine');
33        echo barre_onglets("arty", "about");
34        echo debut_gauche("", true);
35        echo debut_cadre_relief(_DIR_PLUGIN_ARTY.'/images/aide.png', true, "", _T('arty:info'));
36        echo _T("arty:sideinfo_about");
37
38        if (file_exists(_DIR_PLUGIN_ARTY.'plugin.xml')) {
39                $p =& new xmlParser();
40                $p->parse(_DIR_PLUGIN_ARTY.'plugin.xml');
41                foreach($p->output[0]['child'] as $prop) {
42                        if ($prop['name'] == "VERSION")
43                        $version = $prop['content'];
44                }
45        }
46
47        if (isset($version)) {
48                echo "<p>"._T("arty:version_actuelle").": ".$version."</p>";
49        }
50
51        echo fin_cadre_relief(true);
52
53        echo debut_droite("", true);
54        echo gros_titre(_T("arty:a_propos"), "", false);
55        echo "<br />";
56        // choix de l'edito
57        echo debut_cadre_trait_couleur(_DIR_PLUGIN_ARTY."images/network-wireless.png", true, "", _T('arty:dernieres_infos'));
58        echo "<iframe src='http://www.magunews.net/spip.php?fond=about&lang=".$GLOBALS['meta']['langue_site'].(isset($version) ? "&version=".urlencode($version) : '')."' width='100%' height='450px' frameborder='0'></iframe>";
59        echo fin_cadre_trait_couleur(true);
60
61        echo fin_gauche();
62
63        echo fin_page();
64
65}
66
67?>
Note: See TracBrowser for help on using the repository browser.