From 5ffc07373424bb70f249c29f636a061d5d6c74eb Mon Sep 17 00:00:00 2001 From: cschantz Date: Wed, 17 Dec 2025 01:35:48 -0500 Subject: [PATCH] Fix menu standards: Replace plain dashes with Unicode separators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced all plain dash separators (---) with Unicode (───) for consistency: Fixed lib/common-functions.sh (1): - print_section(): 79 dashes → 79 unicode dashes Fixed lib/user-manager.sh (4): - All occurrences: 79 dashes → 79 unicode dashes (replace_all) Fixed modules/performance/php-optimizer.sh (1): - Table separator: 104 dashes → 104 unicode dashes Fixed modules/security/malware-scanner.sh (4): - All occurrences: 40 dashes → 40 unicode dashes (replace_all) All 8/8 separator issues resolved. Menus now have consistent Unicode styling. --- lib/common-functions.sh | 2 +- lib/user-manager.sh | 8 ++++---- modules/performance/php-optimizer.sh | 2 +- modules/security/malware-scanner.sh | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/common-functions.sh b/lib/common-functions.sh index 8378d52..4cb4cda 100755 --- a/lib/common-functions.sh +++ b/lib/common-functions.sh @@ -66,7 +66,7 @@ print_section() { local title="$1" echo "" echo -e "${BOLD}$title${NC}" - echo "-------------------------------------------------------------------------------" + echo "───────────────────────────────────────────────────────────────────────────────" } print_info() { diff --git a/lib/user-manager.sh b/lib/user-manager.sh index 45b11b4..b348dcc 100755 --- a/lib/user-manager.sh +++ b/lib/user-manager.sh @@ -429,7 +429,7 @@ select_user_interactive() { print_section "$prompt" echo "" echo "Found $total_users user(s) on this server" - echo "-------------------------------------------------------------------------------" + echo "───────────────────────────────────────────────────────────────────────────────" # Auto-show list if 10 or fewer users if [ "${total_users:-0}" -le 10 ]; then @@ -440,7 +440,7 @@ select_user_interactive() { fi echo "" - echo "-------------------------------------------------------------------------------" + echo "───────────────────────────────────────────────────────────────────────────────" echo "" echo "Options:" if [ "${total_users:-0}" -gt 10 ]; then @@ -531,11 +531,11 @@ select_user_interactive() { { echo "" echo "Complete user list ($total_users users):" - echo "-------------------------------------------------------------------------------" + echo "───────────────────────────────────────────────────────────────────────────────" for user in "${users[@]}"; do echo -e " ${GREEN}$user${NC} - ${user_primary_domain[$user]} (${user_domain_count[$user]} domains)" done - echo "-------------------------------------------------------------------------------" + echo "───────────────────────────────────────────────────────────────────────────────" echo "" } >&2 # Ask again after showing list diff --git a/modules/performance/php-optimizer.sh b/modules/performance/php-optimizer.sh index 32ec4ed..51a6dca 100755 --- a/modules/performance/php-optimizer.sh +++ b/modules/performance/php-optimizer.sh @@ -1501,7 +1501,7 @@ check_server_memory_capacity() { local header header=$(echo "$recommendations" | head -1) echo "$header" | awk -F'|' '{printf "%-15s %8s %10s %12s %12s %15s %20s\n", $1, $2, $3, $4, $5, $6, $7}' - echo "--------------------------------------------------------------------------------------------------------" + echo "────────────────────────────────────────────────────────────────────────────────────────────────────────" # Display recommendations echo "$recommendations" | tail -n +2 | while IFS='|' read -r user current_max avg_mb traffic_rpm recommended_max allocated_mb reason; do diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 78bac78..e01f09d 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -854,7 +854,7 @@ done # Consolidated Scanner Results Table echo "SCANNER RESULTS SUMMARY:" - echo "----------------------------------------" + echo "────────────────────────────────────────" # ImunifyAV results if echo "${AVAILABLE_SCANNERS[*]}" | grep -q "imunify"; then @@ -879,7 +879,7 @@ done printf "%-20s %s\n" "Rootkit Hunter:" "$RKH_COUNT warnings" fi - echo "----------------------------------------" + echo "────────────────────────────────────────" echo "" if [ -f "$INFECTED_LIST" ] && [ -s "$INFECTED_LIST" ]; then @@ -891,9 +891,9 @@ done echo "" # IP Reputation Integration: Flag IPs that uploaded malware - echo "----------------------------------------" + echo "────────────────────────────────────────" echo "Analyzing upload sources..." - echo "----------------------------------------" + echo "────────────────────────────────────────" # Correlate infected files with Apache logs to find uploading IPs local flagged_ips=0