';
//Menu / Module /plugin in this profile
- echo "
"._("Menu")."";
$profile_menu = new Profile_Menu($cn);
$profile_menu->p_id=$p_id;
$profile_menu->display_profile_menu_detail();
@@ -122,7 +121,7 @@ if ($profile->p_id > 0)
echo $add_impression;
echo '
';
echo '
';
- echo "
".('Groupe gestion')."
";
+
$profile_menu->available_profile();
echo '
';
echo '
';
diff --git a/include/class/extension.class.php b/include/class/extension.class.php
index 5fad200ec..1b321fe60 100644
--- a/include/class/extension.class.php
+++ b/include/class/extension.class.php
@@ -251,6 +251,12 @@ class Extension extends Menu_Ref_sql
}
}
+ /**
+ * compare the version of the plugin and the last version , propose to update it if a new version exists
+ * @todo add a mechanism to check once a day
+ * @global User $g_user
+ * @global number $version_plugin
+ */
static function check_plugin_version()
{
global $g_user, $version_plugin;
diff --git a/include/param_sec.inc.php b/include/param_sec.inc.php
index 244769209..d40d08472 100644
--- a/include/param_sec.inc.php
+++ b/include/param_sec.inc.php
@@ -51,6 +51,7 @@ require_once NOALYSS_INCLUDE.'/lib/user_menu.php';
if ( ! isset($_REQUEST['action']))
{
$base_url=$_SERVER['PHP_SELF']."?ac=".$_REQUEST['ac']."&".dossier::get();
+ $base_url=NOALYSS_URL."/do.php?".http_build_query(array("ac"=>$http->request("ac"),"gDossier"=>dossier::id()));
echo '
';
$header=new Sort_Table();
@@ -59,7 +60,7 @@ if ( ! isset($_REQUEST['action']))
$header->add(_("Type d'utilisateur"),$base_url,"order by use_admin asc,use_login asc","order by use_admin desc,use_login desc",'ta','td');
- $order=(isset($_REQUEST['ord']))?$_REQUEST['ord']:'la';
+ $order=$http->request("ord","string","la");
$ord_sql=$header->get_sql_order($order);
@@ -73,12 +74,13 @@ if ( ! isset($_REQUEST['action']))
use_admin
from ac_users left join jnt_use_dos using (use_id)
where use_login != $2 and use_active=1
- and (dos_id=$1 or (dos_id is null and use_admin=1))" . $ord_sql, array($gDossier,NOALYSS_ADMINISTRATOR));
+ and (dos_id=$1 or (dos_id is null and use_admin=1))" . $ord_sql,
+ array($gDossier,NOALYSS_ADMINISTRATOR));
$MaxUser = Database::num_row($user_sql);
- echo '
';
+ echo '
';
echo "
";
echo '
'.$header->get_header(0).'
';
echo '
'.$header->get_header(1).'
';
@@ -98,24 +100,28 @@ if ( ! isset($_REQUEST['action']))
if ( $l_line['use_admin'] == 1 )
$str=_('Administrateur');
- // get profile
- $profile=$cn->get_value("select p_name from profile
- join profile_user using(p_id) where user_name=$1",array($l_line['use_login']));
+ // get profile
+ $profile=$cn->get_value("select p_name from profile
+ join profile_user using(p_id) where user_name=$1",array($l_line['use_login']));
- $url=$base_url."&action=view&user_id=".$l_line['use_id'];
- echo "