if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); if (!defined('ALLOWED_ADMIN')) { die(_('Non autorisé')); } \Noalyss\Dbg::echo_file(__FILE__); /** * @file * @brief Install new plugin */ $package_repository=new Package_Repository(); $xml=$package_repository->getContent(); /* * If xml is null , it means it was not possible to get the file , could be * a network problem or a misconfiguration */ if ( $xml == NULL) { echo '
'; echo _("Recherche").HtmlInput::filter_table("tab_plugin",'0,1,2,3',1); echo '
'; ?>| = _("Nom") ?> | = _("Description") ?> | = _("Auteur") ?> | = _("Code") ?> | Installé ou mettre à jour ??? |
|---|---|---|---|---|
| = $a_plugin[$i]->name; ?> | = $a_plugin[$i]->description; ?> | = $a_plugin[$i]->author; ?> | = $a_plugin[$i]->code; ?> version [= $a_plugin[$i]->version; ?>] |
root)."/plugin.xml"))
{
// plugin is installed take the version and compare with remote one
$xml_plugin=$package_repository->read_package_xml(NOALYSS_PLUGIN."/".trim($a_plugin[$i]->root)."/plugin.xml");
if (count($xml_plugin->plugin)>1)
{
echo _("MultiModule");
}
// Compute js to install or upgrade
$js=sprintf("onclick=\"upgradePlugin('%s')\"", trim($a_plugin[$i]->code));
// Check if new version is available
if (floatval(trim($xml_plugin->plugin->version)) |