//====================================================================================
// OCS INVENTORY REPORTS
// Copyleft Pierre LEMMET 2005
// Web: http://ocsinventory.sourceforge.net
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
//Modified on 12/13/2005
error_reporting(E_ALL & ~E_NOTICE);
set_time_limit(0);
@session_start();
include("preferences.php");
// Ajout Se3 pour l'authentification
require_once("config.inc.php");
require_once("functions.inc.php");
$login =isauth();
//aide
$_SESSION["pageaide"]="L%27inventaire#Nouvelle_version_.28.3E_1.0_ocsinventory-NG.29";
// Si pas se3_is_admin
if ((ldap_get_right("se3_is_admin",$login)=="Y") || (ldap_get_right("computers_is_admin",$login)=="Y") || (ldap_get_right("inventaire_can_read",$login)=="Y") || (ldap_get_right("parc_can_manage",$login)=="Y")) {
print "
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
incPicker(); ?>
echo "";
/* se3
if( !isset($_GET["popup"] )) {
?>
Ver. =GUI_VER?>  
}
*/
/* se3 if(isset($_POST["subLogin"])) {
$req="SELECT id, accesslvl, passwd FROM operators WHERE id='".$_POST["login"]."'";
$res=mysql_query($req,$_SESSION["readServer"]) or die(mysql_error());
if($row=@mysql_fetch_object($res))
{
// DL 25/08/2005
// Support new MD5 encrypted password or old clear password for login only
if (($row->passwd != md5( $_POST["pass"])) and
($row->passwd != $_POST["pass"])) {
$err = "