Remove emojis and clarify comments in search.asp and adminclearcache.asp

- Remove emoji icons from UI text (lightbulb, wrench, warning, printer, checkmark)
- Replace AI-sounding comment phrases with specific descriptions
- Keep technical arrow notation in code comments (→) for mapping documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-22 10:23:19 -05:00
parent 2a1c434d38
commit 8a50f5c7b4
2 changed files with 12 additions and 12 deletions

View File

@@ -45,7 +45,7 @@
</head>
<body>
<div class="container">
<h2>🔧 Cache Management</h2>
<h2>Cache Management</h2>
<%
Dim confirm, cacheType, redirectPage, printerIP
@@ -62,23 +62,23 @@ If confirm = "yes" Then
Case "printer"
If printerIP <> "" Then
Call ClearPrinterCache(printerIP)
Response.Write("<div class='success'><strong>Success!</strong> Cache cleared for printer: " & Server.HTMLEncode(printerIP) & "</div>")
Response.Write("<div class='success'><strong>Success:</strong> Cache cleared for printer: " & Server.HTMLEncode(printerIP) & "</div>")
Else
Response.Write("<div class='warning'><strong>⚠️ Error:</strong> No printer IP specified.</div>")
Response.Write("<div class='warning'><strong>Error:</strong> No printer IP specified.</div>")
End If
Case "zabbix"
Call ClearAllZabbixCache()
Response.Write("<div class='success'><strong>Success!</strong> All Zabbix cache cleared (all printers).</div>")
Response.Write("<div class='success'><strong>Success:</strong> All Zabbix cache cleared (all printers).</div>")
Case "dropdown"
Call ClearDropdownCache()
Response.Write("<div class='success'><strong>Success!</strong> Dropdown cache cleared.</div>")
Response.Write("<div class='success'><strong>Success:</strong> Dropdown cache cleared.</div>")
Case "list"
Call ClearListCache()
Response.Write("<div class='success'><strong>Success!</strong> List cache cleared.</div>")
Response.Write("<div class='success'><strong>Success:</strong> List cache cleared.</div>")
Case Else
Call ClearAllZabbixCache()
Call ClearAllDataCache()
Response.Write("<div class='success'><strong>Success!</strong> All cache cleared.</div>")
Response.Write("<div class='success'><strong>Success:</strong> All cache cleared.</div>")
End Select
' Redirect if specified, otherwise show link
@@ -137,7 +137,7 @@ Else
' Add form for individual printer cache clearing
Response.Write("<div class='info' style='margin-top:30px;'>")
Response.Write("<strong>🖨️ Clear Individual Printer Cache</strong>")
Response.Write("<strong>Clear Individual Printer Cache</strong>")
Response.Write("<p>To clear cache for a specific printer, enter its IP address:</p>")
Response.Write("<form method='get' action='adminclearcache.asp'>")
Response.Write("<input type='hidden' name='confirm' value='yes'>")
@@ -151,7 +151,7 @@ Else
Response.Write("</div>")
Response.Write("<div class='warning'>")
Response.Write("<strong>⚠️ Note:</strong> Clearing cache will cause slower page loads until cache rebuilds.")
Response.Write("<strong>Note:</strong> Clearing cache will cause slower page loads until cache rebuilds.")
Response.Write("</div>")
Response.Write("<br>")
Response.Write("<a href='?confirm=yes&type=all' class='btn btn-danger'>Clear ALL Cache</a> ")

View File

@@ -95,7 +95,7 @@
'----------------------------- Search for Applications directly ----------------------------------------------------------------
' If only one application matches, redirect directly to it
' Normalize search by removing common punctuation for better matching
' Normalize search by removing hyphens and underscores
Dim normalizedSearch
normalizedSearch = search
normalizedSearch = Replace(normalizedSearch, "-", " ")
@@ -327,7 +327,7 @@ If isShared And search <> "" Then
<div style="display: flex; align-items: center;">
<i class="zmdi zmdi-info" style="font-size: 28px; margin-right: 15px; opacity: 0.9;"></i>
<div>
<strong style="font-size: 15px; display: block; margin-bottom: 5px;">💡 Self-Service Tip</strong>
<strong style="font-size: 15px; display: block; margin-bottom: 5px;">Self-Service Tip</strong>
<span style="font-size: 13px; opacity: 0.95;">This result was found by searching for "<strong><%=Server.HTMLEncode(searchDisplay)%></strong>".</span>
</div>
</div>
@@ -349,7 +349,7 @@ Dim rsApps, appResults(), appCount
appCount = 0
' Use FULLTEXT search with MATCH...AGAINST in BOOLEAN MODE (same as KB articles)
' This provides consistent scoring methodology across apps and KB articles
' Uses same FULLTEXT search as KB articles for uniform relevance ranking
' NOTE: FULLTEXT has ft_min_word_len=4, so short words like "PC", "3", "of" won't match
strSQL = "SELECT appid, appname, " & _
"MATCH (appname) AGAINST (? IN BOOLEAN MODE) AS relevance " & _