%%,'tag_show'=>array(%,%,%,%,%...)) * si une erreur est rencontr�e, on retourne un code erreur * */ require_once ('require/function_files.php'); //nom de la page $name="local.php"; connexion_local_read(); mysql_select_db($db_ocs,$link_ocs); //recherche du niveau de droit de l'utilisateur $reqOp="SELECT new_accesslvl as accesslvl FROM operators WHERE id='%s'"; $argOp=array($_SESSION['OCS']["loggeduser"]); $resOp=mysql2_query_secure($reqOp,$link_ocs,$argOp); $rowOp=mysql_fetch_object($resOp); if (isset($rowOp -> accesslvl)){ $lvluser=$rowOp -> accesslvl; $ms_cfg_file=$_SESSION['OCS']['CONF_PROFILS_DIR'].$lvluser."_config.txt"; $search=array('RESTRICTION'=>'MULTI'); $res=read_configuration($ms_cfg_file,$search); if (isset($res['RESTRICTION']['GUI'])) $restriction=$res['RESTRICTION']['GUI']; else $restriction=$res; //Si l'utilisateur a des droits limit�s //on va rechercher les tags sur lesquels il a des droits if ($restriction == 'YES'){ $sql="select tag from tags where login='%s'"; $arg=array($_SESSION['OCS']["loggeduser"]); $res=mysql2_query_secure($sql, $link_ocs,$arg); while ($row=mysql_fetch_object($res)){ $list_tag[$row->tag]=$row->tag; } if (!isset($list_tag)) $ERROR=$l->g(893); }elseif (($restriction != 'NO')) $ERROR=$restriction; }else $ERROR=$l->g(894); ?>