diff --git a/aiScanner/templates/aiScanner/scanner.html b/aiScanner/templates/aiScanner/scanner.html index 7a98eb6d6..0fcecfd09 100644 --- a/aiScanner/templates/aiScanner/scanner.html +++ b/aiScanner/templates/aiScanner/scanner.html @@ -5,346 +5,731 @@ AI Security Scanner - CyberPanel {% endblock %} +{% block header_scripts %} + +{% endblock %} + {% block content %} -
-
-
-

- AI Security Scanner -

-
-
+
+
+ + +
+

+ + AI Security Scanner +

{% if error %} -
- {{ error }} +
+ +
+

{{ error }}

+
{% endif %} {% if messages %} {% for message in messages %} -
- {{ message }} +
+ +
+

{{ message }}

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

Setup Required

-

Configure your payment method to start scanning WordPress sites for malware and security vulnerabilities. Your card will be charged $10 initially to fund your scanning account.

- - {% if pricing_data.success and pricing_data.plan %} -
-
-
Current Pricing:
-
    -
  • {{ pricing_data.plan.name }}
  • -
  • Max Files: {{ pricing_data.plan.limits.max_files_per_scan|floatformat:0 }}
  • -
  • Max File Size: {{ pricing_data.plan.limits.max_file_size_mb }}MB
  • -
-
-
-
Example Costs:
-
    -
  • Small Scan: ${{ pricing_data.plan.example_costs.small_scan.estimated_cost_usd }}
  • -
  • Medium Scan: ${{ pricing_data.plan.example_costs.medium_scan.estimated_cost_usd }}
  • -
  • Large Scan: ${{ pricing_data.plan.example_costs.large_scan.estimated_cost_usd }}
  • -
-
-
- {% endif %} - - -
-
-
- {% endif %} - - - {% 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|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|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|default:0 }} free AI security scans for this month. Setup payment to continue scanning.

-
-
-
- {% endif %} - - - {% if is_payment_configured or vps_info.is_vps|default:False|default:False %} -
-
-
-
-

- Account Balance -

-
-
- {% 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 - {% endif %} - {% else %} -

${{ current_balance|floatformat:4 }}

-

Available Credit

- {% endif %} - {% if is_payment_configured %} - - {% endif %} -
-
-
- -
-
-
-

- Recent Scans -

-
-
-

{{ recent_scans|length }}

-

Last 30 Days

-
-
-
- -
-
-
-

- Issues Found -

-
-
-

- {% for scan in recent_scans %}{% if scan.status == 'completed' %}{{ scan.issues_found|add:0 }}{% endif %}{% endfor %} -

-

Total Issues

-
-
-
-
- - -
-
-
-
-

- Payment Methods - {% if not vps_info.is_vps|default:False or is_payment_configured %} - - {% else %} - - {% endif %} -

-
-
- {% 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|default:0 }} free scans available. -

- {% else %} -

- - Your account uses automatic billing. Add multiple payment methods for backup security. -

- {% endif %} -
- {% if is_payment_configured %} -

Payment methods will be managed through the platform.

- {% else %} -

No payment methods configured yet.

- {% endif %} -
-
-
-
-
- - -
-
-
-
-

- Start New Scan -

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

- Recent Scans - -

-
-
-
- - - - - - - - - - - - - - - - {% for scan in recent_scans %} - - - - - - - - - - - - {% endfor %} - -
DateDomainTypeStatusProgressFilesIssuesCostActions
{{ scan.started_at|date:"M d, Y H:i" }}{{ scan.domain }} - {{ scan.get_scan_type_display }} - - {% if scan.status == 'completed' %} - Completed - {% elif scan.status == 'running' %} - Running - {% elif scan.status == 'failed' %} - Failed - {% elif scan.status == 'pending' %} - Pending - {% endif %} - - {% if scan.status == 'running' or scan.status == 'pending' %} -
-
- 0% -
-
- {% else %} - 100% - {% endif %} -
{{ scan.files_scanned|default:"-" }} - {% if scan.issues_found > 0 %} - {{ scan.issues_found }} - {% else %} - {{ scan.issues_found }} - {% endif %} - - {% if scan.cost_usd %} - ${{ scan.cost_usd|floatformat:4 }} - {% else %} - - - {% endif %} - - -
-
-
-
-
-
- {% endif %} -
+ + + {% if not is_payment_configured and not vps_info.is_vps|default:False|default:False %} +
+
+ +
+

Setup Required

+

Configure your payment method to start scanning WordPress sites for malware and security vulnerabilities. Your card will be charged $10 initially to fund your scanning account.

+ + {% if pricing_data.success and pricing_data.plan %} +
+
+
Current Pricing:
+
    +
  • {{ pricing_data.plan.name }}
  • +
  • Max Files: {{ pricing_data.plan.limits.max_files_per_scan|floatformat:0 }}
  • +
  • Max File Size: {{ pricing_data.plan.limits.max_file_size_mb }}MB
  • +
+
+
+
Example Costs:
+
    +
  • Small Scan: ${{ pricing_data.plan.example_costs.small_scan.estimated_cost_usd }}
  • +
  • Medium Scan: ${{ pricing_data.plan.example_costs.medium_scan.estimated_cost_usd }}
  • +
  • Large Scan: ${{ pricing_data.plan.example_costs.large_scan.estimated_cost_usd }}
  • +
+
+
+ {% endif %} + + +
+
+
+ {% endif %} + + + {% 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|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|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|default:0 }} free AI security scans for this month. Setup payment to continue scanning.

+
+
+
+ {% endif %} + + + {% if is_payment_configured or vps_info.is_vps|default:False|default:False %} +
+
+
+ +
+ {% 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 + {% endif %} + {% else %} +

${{ current_balance|floatformat:4 }}

+

Available Credit

+ {% endif %} + {% if is_payment_configured %} + + {% endif %} +
+ +
+
+ +
+

{{ recent_scans|length }}

+

Recent Scans

+ Last 30 Days +
+ +
+
+ +
+

+ {% for scan in recent_scans %}{% if scan.status == 'completed' %}{{ scan.issues_found|add:0 }}{% endif %}{% endfor %} +

+

Issues Found

+ Total Issues +
+
+ + +
+
+

+ + Payment Methods +

+ {% if not vps_info.is_vps|default:False or is_payment_configured %} + + {% else %} + + {% endif %} +
+ + {% 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|default:0 }} free scans available. +

+ {% else %} +

+ + Your account uses automatic billing. Add multiple payment methods for backup security. +

+ {% endif %} +
+ {% if is_payment_configured %} +

Payment methods will be managed through the platform.

+ {% else %} +

No payment methods configured yet.

+ {% endif %} +
+
+ + +
+

+ + Start New Scan +

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

+ + Recent Scans +

+ +
+
+ + + + + + + + + + + + + + + + {% for scan in recent_scans %} + + + + + + + + + + + + {% endfor %} + +
DateDomainTypeStatusProgressFilesIssuesCostActions
{{ scan.started_at|date:"M d, Y H:i" }}{{ scan.domain }} + {{ scan.get_scan_type_display }} + + {% if scan.status == 'completed' %} + Completed + {% elif scan.status == 'running' %} + Running + {% elif scan.status == 'failed' %} + Failed + {% elif scan.status == 'pending' %} + Pending + {% endif %} + + {% if scan.status == 'running' or scan.status == 'pending' %} +
+
+ 0% +
+
+ {% else %} + 100% + {% endif %} +
{{ scan.files_scanned|default:"-" }} + {% if scan.issues_found > 0 %} + {{ scan.issues_found }} + {% else %} + {{ scan.issues_found }} + {% endif %} + + {% if scan.cost_usd %} + ${{ scan.cost_usd|floatformat:4 }} + {% else %} + - + {% endif %} + + +
+
+
+ {% endif %} +
@@ -353,10 +738,10 @@ AI Security Scanner - CyberPanel