Remove unused and backup ASP files
Cleanup: - 41 backup/broken files (.backup*, .broken, .bak) - 3 duplicate PC listing files (listpcs.asp, pclist.asp, pcs.asp) - 6 unused utility files: - aspJSON.asp (test stub) - printerlookup.asp (unused, had SQL injection) - bulkupdatenotificationtypes.asp - cleanupduplicateprintersexecute.asp - checkprintermachinescount.asp - checkduplicateprinters.asp - backup/ directory with old v2 design assets - Include backup files (.production, .produciton typo) Total: 69 files removed
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
<!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