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:
@@ -1,14 +1,10 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
include $_SERVER['DOCUMENT_ROOT']."/include/db_connect.inc.php" ;
|
||||
include $_SERVER['DOCUMENT_ROOT']."/../../include/db_connect.php" ;
|
||||
if (isset($_GET['term'])) {
|
||||
$term = $_GET['term'];
|
||||
$query = "SELECT hostname AS serv FROM cmdb_srvall WHERE hostname LIKE '%$term%' UNION SELECT hostname AS serv FROM x_SRVALL WHERE hostname LIKE '%$term%'";
|
||||
$user = "INFRA_dbo";
|
||||
$pwd = "Q3pUz2x9YL2r6k";
|
||||
$server = "DUN-PRD-R1MSSQL.armony.net\PRD";
|
||||
$database = "INFRA";
|
||||
$conn = odbc_connect("Driver={SQL Server};Server=$server;Database=$database;", $user, $pwd);
|
||||
$conn = DB_INFRA();
|
||||
$rs = odbc_exec($conn, $query);
|
||||
while ($row = odbc_fetch_array($rs)) {
|
||||
$servers[] = $row;
|
||||
|
||||
Reference in New Issue
Block a user