diff --git a/aiScanner/templates/aiScanner/scanner.html b/aiScanner/templates/aiScanner/scanner.html index 1711cca07..3a9289277 100644 --- a/aiScanner/templates/aiScanner/scanner.html +++ b/aiScanner/templates/aiScanner/scanner.html @@ -32,7 +32,7 @@ AI Security Scanner - CyberPanel {% endif %} - {% if not is_payment_configured and not vps_info.is_vps %} + {% if not is_payment_configured and not vps_info.is_vps|default:False|default:False %}
@@ -70,31 +70,31 @@ AI Security Scanner - CyberPanel {% endif %} - {% if vps_info.is_vps and vps_info.has_free_scans %} + {% if vps_info.is_vps|default:False|default:False and vps_info.has_free_scans|default:False|default:False %}

VPS Free Scans Available

-

Great news! Your CyberPanel VPS hosting includes {{ vps_info.free_scans_available }} free AI security scans this month ({{ vps_info.scans_used_this_month }}/{{ vps_info.free_scans_per_month }} used).

+

Great news! Your CyberPanel VPS hosting includes {{ vps_info.free_scans_available|default:0 }} free AI security scans this month ({{ vps_info.scans_used_this_month|default:0 }}/{{ vps_info.free_scans_per_month|default:0 }} used).

{% if not is_payment_configured %}

You can still add a payment method below for additional scans beyond your free allowance.

{% endif %}
- {% elif vps_info.is_vps and not vps_info.has_free_scans %} + {% elif vps_info.is_vps|default:False|default:False and not vps_info.has_free_scans|default:False|default:True %}

Free Scans Exhausted

-

You've used all {{ vps_info.free_scans_per_month }} free AI security scans for this month. Setup payment to continue scanning.

+

You've used all {{ vps_info.free_scans_per_month|default:0 }} free AI security scans for this month. Setup payment to continue scanning.

{% endif %} - {% if is_payment_configured or vps_info.is_vps %} + {% if is_payment_configured or vps_info.is_vps|default:False|default:False %}
@@ -104,8 +104,8 @@ AI Security Scanner - CyberPanel
- {% if vps_info.is_vps and vps_info.has_free_scans %} -

{{ vps_info.free_scans_available }}

+ {% if vps_info.is_vps|default:False|default:False and vps_info.has_free_scans|default:False|default:False %} +

{{ vps_info.free_scans_available|default:0 }}

Free Scans Available

{% if is_payment_configured %} Plus ${{ current_balance|floatformat:4 }} credit @@ -161,7 +161,7 @@ AI Security Scanner - CyberPanel

Payment Methods - {% if not vps_info.is_vps or is_payment_configured %} + {% if not vps_info.is_vps|default:False or is_payment_configured %} @@ -173,10 +173,10 @@ AI Security Scanner - CyberPanel

- {% if vps_info.is_vps and not is_payment_configured %} + {% if vps_info.is_vps|default:False and not is_payment_configured %}

- Payment setup is optional for VPS users. You have {{ vps_info.free_scans_available }} free scans available. + Payment setup is optional for VPS users. You have {{ vps_info.free_scans_available|default:0 }} free scans available.

{% else %}

@@ -231,13 +231,13 @@ AI Security Scanner - CyberPanel

- {% if vps_info.is_vps and not vps_info.has_free_scans and not is_payment_configured %} + {% if vps_info.is_vps|default:False and not vps_info.has_free_scans|default:False and not is_payment_configured %} {% else %}