Standardize ASP filenames: remove underscores
Renamed 45 ASP files to follow lowercase concatenated naming convention: - Direct handlers: save_machine_direct.asp -> savemachinedirect.asp - USB files: checkin_usb.asp -> checkinusb.asp - API files: api_usb.asp -> apiusb.asp - Map files: network_map.asp -> networkmap.asp - Printer files: printer_lookup.asp -> printerlookup.asp Also: - Updated 84+ internal references across all ASP and JS files - Deleted 6 test/duplicate files (editmacine.asp, test_*.asp) - Updated production migration guide with filename changes - Added rename scripts for Linux (bash) and Windows (PowerShell)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
' Validate inputs
|
||||
If deviceType = "" Or deviceId = "" Or Not IsNumeric(deviceId) Or CLng(deviceId) < 1 Then
|
||||
Response.Redirect("network_devices.asp")
|
||||
Response.Redirect("networkdevices.asp")
|
||||
Response.End
|
||||
End If
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
tableName = "idfs"
|
||||
idField = "idfid"
|
||||
editUrl = "deviceidf.asp?id=" & deviceId
|
||||
listUrl = "network_devices.asp?filter=IDF"
|
||||
listUrl = "networkdevices.asp?filter=IDF"
|
||||
strSQL = "SELECT i.idfid, i.idfname, i.description, i.maptop, i.mapleft, i.isactive, " & _
|
||||
"NULL AS vendor, NULL AS modelnumber, NULL AS serialnumber, NULL AS ipaddress, NULL AS macaddress, 'IDF' AS devicetype " & _
|
||||
"FROM idfs i WHERE i.idfid = " & CLng(deviceId)
|
||||
@@ -40,7 +40,7 @@
|
||||
tableName = "servers"
|
||||
idField = "serverid"
|
||||
editUrl = "deviceserver.asp?id=" & deviceId
|
||||
listUrl = "network_devices.asp?filter=Server"
|
||||
listUrl = "networkdevices.asp?filter=Server"
|
||||
strSQL = "SELECT s.*, v.vendor, m.modelnumber, s.serialnumber, s.ipaddress, NULL AS macaddress, NULL AS idfname, 'Server' AS devicetype, " & _
|
||||
"s.servername AS devicename " & _
|
||||
"FROM servers s " & _
|
||||
@@ -51,7 +51,7 @@
|
||||
tableName = "switches"
|
||||
idField = "switchid"
|
||||
editUrl = "deviceswitch.asp?id=" & deviceId
|
||||
listUrl = "network_devices.asp?filter=Switch"
|
||||
listUrl = "networkdevices.asp?filter=Switch"
|
||||
strSQL = "SELECT s.*, v.vendor, m.modelnumber, s.serialnumber, s.ipaddress, NULL AS macaddress, NULL AS idfname, 'Switch' AS devicetype, " & _
|
||||
"s.switchname AS devicename " & _
|
||||
"FROM switches s " & _
|
||||
@@ -62,7 +62,7 @@
|
||||
tableName = "cameras"
|
||||
idField = "cameraid"
|
||||
editUrl = "devicecamera.asp?id=" & deviceId
|
||||
listUrl = "network_devices.asp?filter=Camera"
|
||||
listUrl = "networkdevices.asp?filter=Camera"
|
||||
strSQL = "SELECT c.*, v.vendor, m.modelnumber, c.serialnumber, c.ipaddress, c.macaddress, i.idfname, 'Camera' AS devicetype, " & _
|
||||
"c.cameraname AS devicename " & _
|
||||
"FROM cameras c " & _
|
||||
@@ -74,7 +74,7 @@
|
||||
tableName = "accesspoints"
|
||||
idField = "apid"
|
||||
editUrl = "deviceaccesspoint.asp?id=" & deviceId
|
||||
listUrl = "network_devices.asp?filter=Access Point"
|
||||
listUrl = "networkdevices.asp?filter=Access Point"
|
||||
strSQL = "SELECT ap.apid, ap.apname AS devicename, ap.modelid, ap.serialnumber, ap.ipaddress, ap.description, ap.maptop, ap.mapleft, ap.isactive, " & _
|
||||
"v.vendor, m.modelnumber, NULL AS macaddress, NULL AS idfname, NULL AS idfid, 'Access Point' AS devicetype " & _
|
||||
"FROM accesspoints ap " & _
|
||||
@@ -82,7 +82,7 @@
|
||||
"LEFT JOIN vendors v ON m.vendorid = v.vendorid " & _
|
||||
"WHERE ap.apid = " & CLng(deviceId)
|
||||
Case Else
|
||||
Response.Redirect("network_devices.asp")
|
||||
Response.Redirect("networkdevices.asp")
|
||||
Response.End
|
||||
End Select
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
If rs.EOF Then
|
||||
rs.Close
|
||||
Set rs = Nothing
|
||||
Response.Redirect("network_devices.asp")
|
||||
Response.Redirect("networkdevices.asp")
|
||||
Response.End
|
||||
End If
|
||||
|
||||
@@ -431,7 +431,7 @@ $(document).ready(function() {
|
||||
e.preventDefault();
|
||||
var deviceId = $(this).data('deviceid');
|
||||
var deviceType = $(this).data('devicetype');
|
||||
window.open('network_map.asp', '_blank');
|
||||
window.open('networkmap.asp', '_blank');
|
||||
});
|
||||
|
||||
$popup.on('mouseenter', function() {});
|
||||
|
||||
Reference in New Issue
Block a user