21if (!defined(
'ALLOWED'))
22 die(
'Appel direct ne sont pas permis');
23if (!defined(
'ALLOWED_ADMIN'))
25 die(_(
'Non autorisé'));
41 echo
'<h2 class="error">';
42 printf (_(
"Désolé , impossible de se connecter au serveur %s"),
43 NOALYSS_PACKAGE_REPOSITORY);
51echo _(
"Les extensions doivent être activées dans le dossier après installation");
53echo _(
"Recherche").HtmlInput::filter_table(
"tab_plugin",
'0,1,2,3',1);
57<
table id=
"tab_plugin" class=
"result">
63 <?= _(
"Description") ?>
72 Installé ou mettre à jour ???
94 <
td id=
"result<?=trim($a_plugin[$i]->code)?>">
98 if (is_file(NOALYSS_PLUGIN.
"/".trim(
$a_plugin[
$i]->root).
"/plugin.xml"))
102 if (count($xml_plugin->plugin)>1)
104 echo _(
"MultiModule");
107 $js=sprintf(
"onclick=\"upgradePlugin('%s')\"", trim(
$a_plugin[
$i]->code));
109 if (floatval(trim($xml_plugin->plugin->version))<floatval(trim(
$a_plugin[
$i]->version)))
111 printf (_(
"Nouvelle version disponible %s , votre version %s"),
113 trim($xml_plugin->plugin->version));
118 echo _(
"Dernière version installée");
124 $js=sprintf(
"onclick=\"upgradePlugin('%s')\"", trim(
$a_plugin[
$i]->code));
125 echo _(
"Non installée");
137 function upgradePlugin(p_code) {
138 var task_id=
"<?=uniqid()?>";
139 progress_bar_start(task_id);
145 parameters:{gDossier:0,op:
'upgradePlugin',code_plugin:p_code,
"task_id":task_id}
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
static echo_file($msg, $print=true)
display the file
connect to NOALYSS_PACKAGE and fetch the file web.xml , it displays content of this file ,...
if( $xml==NULL) $a_plugin