Bonjour $login (niveau "; $intlevel=getintlevel(); switch ($intlevel) { case 1: echo gettext("Débutant"); break; case 2: echo gettext("Intermédiaire"); break; case 3: echo gettext("Confirmé"); break; case 4: echo gettext("Expérimental"); break; } echo ")"; // On se reconnecte à ocsweb dbconnect(); // update checking /*$resUpd = @mysql_query("SELECT tvalue FROM config WHERE name='GUI_VERSION'", $_SESSION["readServer"]) or die(mysql_error($_SESSION["readServer"])); $valUpd = @mysql_fetch_array($resUpd); if( !$valUpd || $valUpd["tvalue"]$val) { unset($_SESSION[$key]); } //} */ if( isset($_GET["first"] )) { unset( $_SESSION["lareq"] ); unset( $_SESSION["lareqpages"] ); } ?> OCS Inventory "; /* se3 if( !isset($_GET["popup"] )) { ?>
Ver.     passwd != md5( $_POST["pass"])) and ($row->passwd != $_POST["pass"])) { $err = "

".$l->g(216)."
"; unset($_SESSION["loggeduser"],$_SESSION["lvluser"]); } else { */ // $_SESSION["loggeduser"]=$row->id; // $_SESSION["lvluser"]=$row->accesslvl; $_SESSION["loggeduser"]="$login"; $_SESSION["lvluser"]=1; /*se3 } } else { $err = "
".$l->g(180)."
"; unset($_SESSION["loggeduser"],$_SESSION["lvluser"]); } } if ( !isset($_SESSION["loggeduser"]) && $dir = @opendir("languages")) { while($filename = readdir($dir)) { if( strstr ( $filename, ".txt") === false) continue; $langue = basename ( $filename,".txt"); echo " "; } closedir($dir); } if( isset($err) ) echo $err; if(isset($_SESSION["loggeduser"]) && !isset($_GET["popup"])) echo "   ".$l->g(251)."   ".$l->g(236).""; echo ""; if(!isset($_SESSION["loggeduser"])) { echo "
".$l->g(24).":
".$l->g(217).":
 
"; include ("footer.php"); die(); } $limitedAccess = array(2,3,4,5,6,7,8,9,14,13,22,23,24,27,20,21,26); if( in_array($_GET["multi"],$limitedAccess) && $_SESSION["lvluser"]!=1) { echo "

ACCESS DENIED

"; unset($_GET["multi"]); die(); } */ } ?>