Fix menu standards: Replace plain dashes with Unicode separators
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.
This commit is contained in:
@@ -66,7 +66,7 @@ print_section() {
|
|||||||
local title="$1"
|
local title="$1"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${BOLD}$title${NC}"
|
echo -e "${BOLD}$title${NC}"
|
||||||
echo "-------------------------------------------------------------------------------"
|
echo "───────────────────────────────────────────────────────────────────────────────"
|
||||||
}
|
}
|
||||||
|
|
||||||
print_info() {
|
print_info() {
|
||||||
|
|||||||
+4
-4
@@ -429,7 +429,7 @@ select_user_interactive() {
|
|||||||
print_section "$prompt"
|
print_section "$prompt"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Found $total_users user(s) on this server"
|
echo "Found $total_users user(s) on this server"
|
||||||
echo "-------------------------------------------------------------------------------"
|
echo "───────────────────────────────────────────────────────────────────────────────"
|
||||||
|
|
||||||
# Auto-show list if 10 or fewer users
|
# Auto-show list if 10 or fewer users
|
||||||
if [ "${total_users:-0}" -le 10 ]; then
|
if [ "${total_users:-0}" -le 10 ]; then
|
||||||
@@ -440,7 +440,7 @@ select_user_interactive() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-------------------------------------------------------------------------------"
|
echo "───────────────────────────────────────────────────────────────────────────────"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
if [ "${total_users:-0}" -gt 10 ]; then
|
if [ "${total_users:-0}" -gt 10 ]; then
|
||||||
@@ -531,11 +531,11 @@ select_user_interactive() {
|
|||||||
{
|
{
|
||||||
echo ""
|
echo ""
|
||||||
echo "Complete user list ($total_users users):"
|
echo "Complete user list ($total_users users):"
|
||||||
echo "-------------------------------------------------------------------------------"
|
echo "───────────────────────────────────────────────────────────────────────────────"
|
||||||
for user in "${users[@]}"; do
|
for user in "${users[@]}"; do
|
||||||
echo -e " ${GREEN}$user${NC} - ${user_primary_domain[$user]} (${user_domain_count[$user]} domains)"
|
echo -e " ${GREEN}$user${NC} - ${user_primary_domain[$user]} (${user_domain_count[$user]} domains)"
|
||||||
done
|
done
|
||||||
echo "-------------------------------------------------------------------------------"
|
echo "───────────────────────────────────────────────────────────────────────────────"
|
||||||
echo ""
|
echo ""
|
||||||
} >&2
|
} >&2
|
||||||
# Ask again after showing list
|
# Ask again after showing list
|
||||||
|
|||||||
@@ -1501,7 +1501,7 @@ check_server_memory_capacity() {
|
|||||||
local header
|
local header
|
||||||
header=$(echo "$recommendations" | head -1)
|
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 "$header" | awk -F'|' '{printf "%-15s %8s %10s %12s %12s %15s %20s\n", $1, $2, $3, $4, $5, $6, $7}'
|
||||||
echo "--------------------------------------------------------------------------------------------------------"
|
echo "────────────────────────────────────────────────────────────────────────────────────────────────────────"
|
||||||
|
|
||||||
# Display recommendations
|
# Display recommendations
|
||||||
echo "$recommendations" | tail -n +2 | while IFS='|' read -r user current_max avg_mb traffic_rpm recommended_max allocated_mb reason; do
|
echo "$recommendations" | tail -n +2 | while IFS='|' read -r user current_max avg_mb traffic_rpm recommended_max allocated_mb reason; do
|
||||||
|
|||||||
@@ -854,7 +854,7 @@ done
|
|||||||
|
|
||||||
# Consolidated Scanner Results Table
|
# Consolidated Scanner Results Table
|
||||||
echo "SCANNER RESULTS SUMMARY:"
|
echo "SCANNER RESULTS SUMMARY:"
|
||||||
echo "----------------------------------------"
|
echo "────────────────────────────────────────"
|
||||||
|
|
||||||
# ImunifyAV results
|
# ImunifyAV results
|
||||||
if echo "${AVAILABLE_SCANNERS[*]}" | grep -q "imunify"; then
|
if echo "${AVAILABLE_SCANNERS[*]}" | grep -q "imunify"; then
|
||||||
@@ -879,7 +879,7 @@ done
|
|||||||
printf "%-20s %s\n" "Rootkit Hunter:" "$RKH_COUNT warnings"
|
printf "%-20s %s\n" "Rootkit Hunter:" "$RKH_COUNT warnings"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "----------------------------------------"
|
echo "────────────────────────────────────────"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ -f "$INFECTED_LIST" ] && [ -s "$INFECTED_LIST" ]; then
|
if [ -f "$INFECTED_LIST" ] && [ -s "$INFECTED_LIST" ]; then
|
||||||
@@ -891,9 +891,9 @@ done
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# IP Reputation Integration: Flag IPs that uploaded malware
|
# IP Reputation Integration: Flag IPs that uploaded malware
|
||||||
echo "----------------------------------------"
|
echo "────────────────────────────────────────"
|
||||||
echo "Analyzing upload sources..."
|
echo "Analyzing upload sources..."
|
||||||
echo "----------------------------------------"
|
echo "────────────────────────────────────────"
|
||||||
|
|
||||||
# Correlate infected files with Apache logs to find uploading IPs
|
# Correlate infected files with Apache logs to find uploading IPs
|
||||||
local flagged_ips=0
|
local flagged_ips=0
|
||||||
|
|||||||
Reference in New Issue
Block a user