|
@@ -256,7 +256,8 @@ while true; do
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# --- SSH Banner Generation (Delay of 1 cycle for BW stats is fine) ---
|
|
# --- SSH Banner Generation (Delay of 1 cycle for BW stats is fine) ---
|
|
|
- if [[ -d "/etc/firewallfalcon/banners" ]]; then
|
|
|
|
|
|
|
+ if [[ -f "/etc/firewallfalcon/banners_enabled" ]]; then
|
|
|
|
|
+ mkdir -p "/etc/firewallfalcon/banners"
|
|
|
days_left="N/A"
|
|
days_left="N/A"
|
|
|
if [[ "$expiry" != "Never" && -n "$expiry" ]]; then
|
|
if [[ "$expiry" != "Never" && -n "$expiry" ]]; then
|
|
|
if [[ $expiry_ts -gt 0 ]]; then
|
|
if [[ $expiry_ts -gt 0 ]]; then
|
|
@@ -284,14 +285,11 @@ while true; do
|
|
|
|
|
|
|
|
# Format the output with HTML tags since clients like HTTP Custom render Server Messages using Html.fromHtml()
|
|
# Format the output with HTML tags since clients like HTTP Custom render Server Messages using Html.fromHtml()
|
|
|
# Crucial: Use echo -e instead of heredoc to prevent DOS CRLF syntax errors when moving script to Linux
|
|
# Crucial: Use echo -e instead of heredoc to prevent DOS CRLF syntax errors when moving script to Linux
|
|
|
- echo -e "<font color=\"cyan\"><b>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b></font><br>" > "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
- echo -e "<font color=\"yellow\"><b> ✨ ACCOUNT STATUS ✨ </b></font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
- echo -e "<font color=\"cyan\"><b>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b></font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
|
|
+ echo -e "<br><font color=\"yellow\"><b> ✨ ACCOUNT STATUS ✨ </b></font><br><br>" > "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
echo -e "<font color=\"white\">👤 <b>Username :</b> $user</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
echo -e "<font color=\"white\">👤 <b>Username :</b> $user</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
echo -e "<font color=\"white\">📅 <b>Expiration :</b> $expiry ($days_left)</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
echo -e "<font color=\"white\">📅 <b>Expiration :</b> $expiry ($days_left)</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
echo -e "<font color=\"white\">📊 <b>Bandwidth :</b> $bw_info</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
echo -e "<font color=\"white\">📊 <b>Bandwidth :</b> $bw_info</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
- echo -e "<font color=\"white\">🔌 <b>Sessions :</b> $online_count/$limit</font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
- echo -e "<font color=\"cyan\"><b>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b></font><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
|
|
+ echo -e "<font color=\"white\">🔌 <b>Sessions :</b> $online_count/$limit</font><br><br>" >> "/etc/firewallfalcon/banners/${user}.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
# --- Bandwidth Check ---
|
|
# --- Bandwidth Check ---
|