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:
32
printerlookup.asp
Normal file
32
printerlookup.asp
Normal 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>
|
||||
Reference in New Issue
Block a user