Remove unused PHP files related to Hyper-V and Storage dashboards
- Deleted `cluster-detail2.php`, `constants.inc copy.php`, `D.php`, and `Dashboard2.php`. These files were no longer in use and contributed to unnecessary clutter in the codebase. - Cleaned up references to removed files.
This commit is contained in:
50
index.php
50
index.php
@@ -25,8 +25,7 @@
|
||||
</head>
|
||||
|
||||
<body class="bg-light text-dark">
|
||||
<?php include $_SERVER['DOCUMENT_ROOT']."/include/db_connect.php" ; ?> <!-- Database connexion -->
|
||||
<?php //include $_SERVER['DOCUMENT_ROOT']."/include/functions.inc.php" ; ?> <!-- Functions -->
|
||||
<?php include $_SERVER['DOCUMENT_ROOT']."/../../include/db_connect.php" ; ?> <!-- Database connexion -->
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
<!-- Left NAVBAR -->
|
||||
@@ -40,7 +39,7 @@
|
||||
|
||||
<!-- Main content -->
|
||||
<?php
|
||||
DB_ENTRY02();
|
||||
$conn = DB_ENTRY02();
|
||||
$sql = $conn->query("SELECT count(*) as w2k3 FROM globalcrossover where os like '%2003%' and dpt = 'INFRA'"); $w2k3 = mysqli_fetch_array($sql)['w2k3'];
|
||||
$sql = $conn->query("SELECT count(*) as w2k8 FROM globalcrossover where os like '%2008%' and dpt = 'INFRA'"); $w2k8 = mysqli_fetch_array($sql)['w2k8'];
|
||||
$sql = $conn->query("SELECT count(*) as w2k12 FROM globalcrossover where os like '%2012%' and dpt = 'INFRA'"); $w2k12 = mysqli_fetch_array($sql)['w2k12'];
|
||||
@@ -79,7 +78,7 @@
|
||||
$result = $conn->query("SELECT count(*) as nbADinactive FROM adcomputers WHERE enabled = 'False'");
|
||||
$nbADinactive = mysqli_fetch_array($result)['nbADinactive'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\AD-Detail.php"><?php echo $nbADactive; ?></b> Devices <small>(<?php echo $nbADinactive; ?> inactifs)</small></a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/AD-Detail.php""><?php echo $nbADactive; ?></b> Devices <small>(<?php echo $nbADinactive; ?> inactifs)</small></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,12 +88,12 @@
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> GLPI</h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
DB_GLPI();
|
||||
$conn = DB_GLPI();
|
||||
$result = $conn->query("SELECT count(name) as nbglpi FROM glpi_computers WHERE entities_id = 6 AND is_deleted = 0 AND states_ID = 2 AND computertypes_id in(7,19) and name <> ''");
|
||||
$nbglpi = mysqli_fetch_array($result)['nbglpi'];
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\GLPI-detail.php"><?php echo $nbglpi; ?></b> Devices</a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/GLPI-Detail.php"><?php echo $nbglpi; ?></b> Devices</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,12 +103,12 @@
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> SCCM</h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
DB_SCCM();
|
||||
$conn = DB_SCCM();
|
||||
$sql = 'SELECT count(*) as nbsccm FROM dbo.v_GS_COMPUTER_SYSTEM';
|
||||
$rs=odbc_exec($conn,$sql);
|
||||
$nbsccm = odbc_result($rs,"nbsccm");
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\SCCM-detail.php"><?php echo $nbsccm; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/SCCM-Detail.php"><?php echo $nbsccm; ?></b> Agents</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -119,11 +118,11 @@
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> NESSUS</h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
DB_ENTRY02();
|
||||
$conn = DB_ENTRY02();
|
||||
$result = $conn->query("SELECT count(*) as nbnessus FROM GlobalCrossover where epo like '%.%'");
|
||||
$nbnessus = mysqli_fetch_array($result)['nbnessus'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\Nessus-detail.php"><?php echo $nbnessus; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/Nessus-Detail.php"><?php echo $nbnessus; ?></b> Agents</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -136,7 +135,7 @@
|
||||
$result = $conn->query("SELECT count(*) as nbS1 FROM GlobalCrossover where S1 like '%.%'");
|
||||
$nbS1 = mysqli_fetch_array($result)['nbS1'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\S1-detail.php"><?php echo $nbS1; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/S1-Detail.php"><?php echo $nbS1; ?></b> Agents</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -146,12 +145,12 @@
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> NetBackup</h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
DB_ENTRY01();
|
||||
$conn = DB_ENTRY01();
|
||||
$result = $conn->query("SELECT count(distinct server) as nbnbu FROM nb_jobs_full");
|
||||
$nbnbu = mysqli_fetch_array($result)['nbnbu'];
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="\dashboard\NBU-detail.php"><?php echo $nbnbu; ?></b> Clients</a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/NBU-Detail.php"><?php echo $nbnbu; ?></b> Clients</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -197,14 +196,13 @@
|
||||
<!-- End of main content -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/switch.js"></script>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
var dataSV = document.getElementById("dataSVI").innerHTML.split(",");
|
||||
var labelsSV = ['2008','2012','2016','2019','2022'];
|
||||
new Chart("ChartServer", {
|
||||
let dataSV = document.getElementById("dataSVI").innerHTML.split(",");
|
||||
let labelsSV = ['2008', '2012', '2016', '2019', '2022'];
|
||||
new Chart("ChartServer", {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: labelsSV,
|
||||
@@ -215,9 +213,9 @@ new Chart("ChartServer", {
|
||||
}
|
||||
});
|
||||
|
||||
var dataSVA = document.getElementById("dataSVA").innerHTML.split(",");
|
||||
var labelsSVA = ['2008','2012','2016','2019','2022'];
|
||||
new Chart("ChartServerA", {
|
||||
let dataSVA = document.getElementById("dataSVA").innerHTML.split(",");
|
||||
let labelsSVA = ['2008', '2012', '2016', '2019', '2022'];
|
||||
new Chart("ChartServerA", {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: labelsSVA,
|
||||
@@ -228,9 +226,9 @@ new Chart("ChartServerA", {
|
||||
}
|
||||
});
|
||||
|
||||
var dataLI = document.getElementById("dataLI").innerHTML.split(",");
|
||||
var labelsLI = ['Linux','AIX'];
|
||||
new Chart("ChartLinux", {
|
||||
let dataLI = document.getElementById("dataLI").innerHTML.split(",");
|
||||
let labelsLI = ['Linux', 'AIX'];
|
||||
new Chart("ChartLinux", {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: labelsLI,
|
||||
@@ -241,9 +239,9 @@ new Chart("ChartLinux", {
|
||||
}
|
||||
});
|
||||
|
||||
var dataType = document.getElementById("dataType").innerHTML.split(",");
|
||||
var labelsType = ['Physical','Virtual'];
|
||||
new Chart("ChartType", {
|
||||
let dataType = document.getElementById("dataType").innerHTML.split(",");
|
||||
let labelsType = ['Physical', 'Virtual'];
|
||||
new Chart("ChartType", {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: labelsType,
|
||||
|
||||
Reference in New Issue
Block a user