21if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
41 if (file_exists(NOALYSS_PLUGIN.
'/'.$dir_plugin.
'/plugin.xml')) {
44 for (
$i=0;
$i<count($extension);
$i++)
57$a_profile=
$cn->get_array(
'select p_id,p_name from profile where p_id > 0 order by p_name');
64 $plugin=
$http->post(
'plugin',
"string",array());
75 $count =
$cn->get_value(
"select count(*) from menu_ref where me_code=$1", array(
$code));
83 catch (Exception $exc)
85 record_log($exc->getMessage().
" trace:".$exc->getTraceAsString());
86 $profile_name=
$cn->get_value(
'select profile.p_name from profile where p_id=$1'
88 echo
'<p class="notice">';
89 echo
"code $code",
" profile $profile_name ",$exc->getMessage();
107 <?php echo _(
'Nombre de plugins trouvés').
" ".
$nb_plugin; ?>
110 <
table id=
"plugin_install_tb" class=
"result">
112 <
th><?php echo _(
'Extension')?></
th>
113 <
th><?php echo _(
'Menu')?></
th>
114 <
th><?php echo _(
'Description')?></
th>
115 <
th><?php echo _(
'Chemin')?></
th>
116 <
th><?php echo _(
'Disponible')?></
th>
122 (select count(*) from profile_menu as a where a.p_id=b.p_id and me_code=$1 )+
123 (select count(*) from menu_ref as c join profile_menu as d on (d.me_code=c.me_code) where d.p_id=b.p_id and me_file=$2 ) as cnt
130 <
tr class=
"<?php echo $class?>">
141 printf(_(
"Installé par défaut dans %s"),
$a_plugin[
$e]->depend);
th($p_string, $p_extra='', $raw='')
span($p_string, $p_extra='')
tr($p_string, $p_extra='')
record_log($p_message)
Record an error message into the log file of the server.
td($p_string='', $p_extra='')
surround the string with td
h( $row[ 'oa_description'])
foreach($array as $idx=> $m) $w
$a_profile
available profiles
for($e=0;$e< $nb_dirscan;$e++) $nb_plugin
static read_definition($p_file)
Parse a XML file to complete an array of extension objects, in the plugin.xml file ,...