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:
cproudlock
2025-12-10 20:40:05 -05:00
parent 6162db9fcf
commit 249bfbba8c
88 changed files with 683 additions and 595 deletions

32
printerlookup.asp Normal file
View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<!--#include file="./includes/sql.asp"-->
</head>
<body>
<%
' Lookup printer by IP address and redirect to displayprinter.asp
Dim ipaddress, strSQL, rs
ipaddress = Request.QueryString("ip")
If ipaddress <> "" Then
strSQL = "SELECT printerid FROM printers WHERE ipaddress = '" & Replace(ipaddress, "'", "''") & "' AND isactive = 1"
Set rs = objConn.Execute(strSQL)
If Not rs.EOF Then
Response.Redirect("displayprinter.asp?printerid=" & rs("printerid"))
Else
Response.Write("Printer not found with IP: " & Server.HTMLEncode(ipaddress))
End If
rs.Close
Set rs = Nothing
Else
Response.Write("No IP address provided")
End If
objConn.Close
%>
</body>
</html>