check(9); include dirname(__FILE__).'/inc/connexion.php'; $plugins_root = dirname(__FILE__).'/tools/'; $plugins = new plugins($plugins_root); $plugins->getPlugins(true); $plugins_list = $plugins->getPluginsList(); $PLUGIN_HEAD = ''; $PLUGIN_BODY = ''; if ((!empty($_REQUEST['p']) && !empty($plugins_list[$_REQUEST['p']]) && $plugins_list[$_REQUEST['p']]['active'])) { $p = $_REQUEST['p']; $plugins->loadl10n($p); buffer::init(); include $plugins_root.$p.'/index.php'; $PLUGIN_BODY = buffer::getContent(); buffer::clean(); $mySubMenu->addItem(__('Back to tools'),'tools.php', 'images/ico_retour.png',false); } openPage(__('Tools'),$PLUGIN_HEAD); if ($PLUGIN_BODY != '') { echo $PLUGIN_BODY; } else { echo '
Aucun outil n\'est disponible ou actif
'; } else { # Traduction des plugins foreach ($plugins_list as $k => $v) { $plugins->loadl10n($k); $plugins_list[$k]['label'] = __($v['label']); $plugins_list[$k]['desc'] = __($v['desc']); } # Tri des plugins par leur nom uasort($plugins_list,create_function('$a,$b','return strcmp($a["label"],$b["label"]);')); # Liste des plugins echo '