history.go(-2);"; die(); } } $nbMach = getCount($_SESSION["storedRequest"]); if( $nbMach != 1 && ! isset($_GET["systemid"])) { echo ""; die(); } PrintEnTete( $l->g(518) ); echo "
<= ".$l->g(188)."
"; $resIpd = mysql_query("SELECT tvalue, ivalue FROM devices WHERE name='IPDISCOVER' AND hardware_id=$id",$_SESSION["readServer"] ); $valIpd = mysql_fetch_array( $resIpd ); $resInt = mysql_query("SELECT ipaddress FROM networks WHERE hardware_id=$id",$_SESSION["readServer"] ); while( $valInt = mysql_fetch_array( $resInt )) $lesRez[] = $valInt["ipaddress"]; $mode = 0; if( $valIpd["tvalue"] && $valIpd["ivalue"]==1 ) { echo "
".$l->g(519).": ".$valIpd["tvalue"]."
"; $mode = 1; } else if( $valIpd["ivalue"]==2 ) { echo "
".$l->g(520).": ".$valIpd["tvalue"]."
"; $mode = 3; } else if( $valIpd["ivalue"]==="0" ) { echo "
".$l->g(521)."
"; $mode = 2; } else { echo "
".$l->g(522)."
"; } ?>
g(518); ?>:
  "; } ?>
ERROR: MySql problem
".mysql_error($_SESSION["writeServer"])."
"; return false; } return true; } function resetIpdiscover( $id ) { if( ! @mysql_query( "DELETE FROM devices WHERE name='IPDISCOVER' AND hardware_id='$id'", $_SESSION["writeServer"] )) { echo "
ERROR: MySql problem
".mysql_error($_SESSION["writeServer"])."
"; return false; } return true; } function getSub( $id, $ip ) { if( ! ($res = @mysql_query( "SELECT ipsubnet FROM networks WHERE ipaddress='$ip' AND hardware_id='$id'", $_SESSION["readServer"] ))) { echo "
ERROR: MySql problem
".mysql_error($_SESSION["readServer"])."
"; } $val = mysql_fetch_array( $res ); return $val["ipsubnet"]; } ?>