source: trunk/spip/esqueleto-redcta/plugins/magusine/exec/about.php @ 305

Last change on this file since 305 was 80, checked in by guille, 16 years ago

el plugin completo

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1<?php
2
3include_spip('inc/xml-parser');
4
5if (!defined("_ECRIRE_INC_VERSION")) return;
6include_spip('inc/presentation');
7
8include_spip('inc/arty_selecteur');
9include_spip('inc/user_session');
10
11function exec_about() {
12
13global $connect_statut;
14  if ($connect_statut != "0minirezo" ) {
15         echo "<p><b>"._T('magusine:acces_a_la_page')."</b></p>";
16         fin_page();
17         exit;
18  }
19
20  echo debut_page();
21  echo barre_onglets("arty", "about");
22  echo debut_gauche();
23  echo debut_cadre_relief(_DIR_PLUGIN_ARTY.'/images/aide.png', true, "", _T('arty:info'));
24  echo _T("arty:sideinfo_about");
25 
26        if (file_exists(_DIR_PLUGIN_ARTY.'plugin.xml')) {
27        $p =& new xmlParser();
28        $p->parse(_DIR_PLUGIN_ARTY.'plugin.xml');
29        foreach($p->output[0]['child'] as $prop) {
30      if ($prop['name'] == "VERSION")
31        $version = $prop['content']; 
32    }
33  }
34 
35  if (isset($version)) {
36    echo "<p>"._T("arty:version_actuelle").": ".$version."</p>";
37  }
38 
39  echo fin_cadre_relief(true);
40 
41  echo debut_droite();
42 gros_titre(_T("arty:a_propos"));
43echo "<br />";
44 // choix de l'edito
45  echo debut_cadre_trait_couleur(_DIR_PLUGIN_ARTY."images/network-wireless.png", true, "", _T('arty:dernieres_infos'));
46  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>";
47  echo fin_cadre_trait_couleur(); 
48 
49  echo fin_gauche();
50
51echo fin_page();
52
53}
54
55?>
Note: See TracBrowser for help on using the repository browser.