mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-19 09:41:14 +02:00
809 lines
25 KiB
HTML
809 lines
25 KiB
HTML
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "LiteSpeed Status - CyberPanel" %}{% endblock %}
|
|
{% block content %}
|
|
|
|
{% load static %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
|
|
|
<style>
|
|
.modern-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
padding: 3rem 0;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 20px;
|
|
animation: fadeInDown 0.5s ease-out;
|
|
position: relative;
|
|
overflow: hidden;
|
|
color: white;
|
|
}
|
|
|
|
.page-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
right: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
|
|
animation: rotate 30s linear infinite;
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.server-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.125rem;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 20px;
|
|
font-size: 0.875rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: #4ade80;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.info-card {
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
|
border: 1px solid #e8e9ff;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
animation: fadeInUp 0.5s ease-out;
|
|
}
|
|
|
|
.info-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 20px 60px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.card-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.card-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.process-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.process-table th {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
font-size: 0.875rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
border-bottom: 2px solid #e8e9ff;
|
|
}
|
|
|
|
.process-table td {
|
|
padding: 1rem;
|
|
font-size: 0.875rem;
|
|
color: #1e293b;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.process-id {
|
|
font-family: 'Monaco', 'Consolas', monospace;
|
|
font-weight: 600;
|
|
color: #667eea;
|
|
}
|
|
|
|
.process-badge {
|
|
display: inline-flex;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-main {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.badge-worker {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.badge-lscgid {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #764ba2;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #dc2626;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #b91c1c;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
.version-info {
|
|
background: #f8f9ff;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.version-header {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.module-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.module-item {
|
|
background: white;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 6px;
|
|
border: 1px solid #e8e9ff;
|
|
font-size: 0.875rem;
|
|
color: #475569;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.module-item:hover {
|
|
background: #667eea;
|
|
color: white;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.alert {
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
.alert-icon {
|
|
font-size: 1.25rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.alert-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.alert-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.alert-message {
|
|
font-size: 0.875rem;
|
|
color: #475569;
|
|
}
|
|
|
|
.alert-success {
|
|
background: #d1fae5;
|
|
border: 1px solid #a7f3d0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.alert-error {
|
|
background: #fee2e2;
|
|
border: 1px solid #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.alert-warning {
|
|
background: #fef3c7;
|
|
border: 1px solid #fde68a;
|
|
color: #92400e;
|
|
}
|
|
|
|
.alert-info {
|
|
background: #dbeafe;
|
|
border: 1px solid #bfdbfe;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.license-panel {
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 40px rgba(0,0,0,0.08);
|
|
border: 1px solid #e8e9ff;
|
|
overflow: hidden;
|
|
animation: fadeInUp 0.5s ease-out 0.2s;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
.license-options {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.license-option {
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
border-radius: 12px;
|
|
border: 2px solid transparent;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.license-option:hover {
|
|
border-color: #667eea;
|
|
background: #f3e8ff;
|
|
}
|
|
|
|
.license-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
background: #f3e8ff;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1rem;
|
|
color: #667eea;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.license-label {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-weight: 500;
|
|
color: #475569;
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid #e8e9ff;
|
|
border-radius: 8px;
|
|
font-size: 0.875rem;
|
|
transition: all 0.3s ease;
|
|
background: #fff;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid #f3f3f3;
|
|
border-top: 2px solid #667eea;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
display: inline-block;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.console-output {
|
|
background: #1e293b;
|
|
color: #10b981;
|
|
font-family: 'Monaco', 'Consolas', monospace;
|
|
font-size: 0.875rem;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
height: 400px;
|
|
overflow-y: auto;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes fadeInDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.license-options {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.info-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div class="modern-container">
|
|
<div class="page-header">
|
|
<div class="header-content">
|
|
<h1 class="page-title">
|
|
<div class="server-icon">
|
|
<img src="{% static 'images/lsON.png' %}" style="width: 35px; filter: brightness(0) invert(1);">
|
|
</div>
|
|
{% trans "LiteSpeed Server Status" %}
|
|
</h1>
|
|
<p class="page-subtitle">
|
|
{% trans "Monitor and manage your LiteSpeed web server processes, license status, and server configuration" %}
|
|
</p>
|
|
{% if processList %}
|
|
<div class="status-indicator">
|
|
<span class="status-dot"></span>
|
|
{% trans "LiteSpeed is Running" %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- License Warnings -->
|
|
{% if message != 0 %}
|
|
{% if message == 2 %}
|
|
<div class="alert alert-warning">
|
|
<i class="fas fa-exclamation-triangle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "License Bundle Required" %}</div>
|
|
<div class="alert-message">
|
|
{% trans "Your license does not include the CyberPanel bundle." %}
|
|
<a href="https://cyberpanel.net/cyberpanel-enterprise/" style="color: inherit; font-weight: 600;">
|
|
{% trans "Click here to upgrade" %}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-error">
|
|
<i class="fas fa-times-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "License Expired" %}</div>
|
|
<div class="alert-message">{% trans "Your license has expired. Please renew your license to continue using LiteSpeed." %}</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<div class="info-grid">
|
|
<!-- Process Information -->
|
|
{% if processList %}
|
|
<div class="info-card" ng-controller="litespeedStatus">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<div class="card-icon">
|
|
<i class="fas fa-microchip"></i>
|
|
</div>
|
|
{% trans "LiteSpeed Processes" %}
|
|
</h3>
|
|
<span style="background: rgba(255,255,255,0.3); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem;">
|
|
{{ processList|length }} {% trans "Active" %}
|
|
</span>
|
|
</div>
|
|
<div class="card-content">
|
|
<table class="process-table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{% trans "Process ID" %}</th>
|
|
<th>{% trans "Type" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in processList %}
|
|
<tr>
|
|
<td>{{ forloop.counter }}</td>
|
|
<td><span class="process-id">{{ item }}</span></td>
|
|
<td>
|
|
{% if forloop.counter == 1 %}
|
|
<span class="process-badge badge-main">{% trans "Main Process" %}</span>
|
|
{% elif forloop.counter == 2 %}
|
|
<span class="process-badge badge-lscgid">{% trans "lscgid Process" %}</span>
|
|
{% else %}
|
|
<span class="process-badge badge-worker">{% trans "Worker Process" %}</span>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="action-buttons">
|
|
<button ng-click="restartLitespeed()" ng-disabled="disableReboot" class="btn btn-primary">
|
|
<i class="fas fa-sync-alt"></i>
|
|
{% trans "Restart LiteSpeed" %}
|
|
<span ng-hide="restartorStopLoading" class="loading-spinner"></span>
|
|
</button>
|
|
<button ng-click="stopLitespeed()" ng-disabled="disableStop" class="btn btn-danger">
|
|
<i class="fas fa-stop"></i>
|
|
{% trans "Stop LiteSpeed" %}
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Action Results -->
|
|
<div ng-hide="actionResult" class="alert alert-success">
|
|
<i class="fas fa-check-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-message">{% trans "Action completed successfully." %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="actionResultBad" class="alert alert-error">
|
|
<i class="fas fa-times-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-message">{% trans "Error occurred. Please check the CyberPanel main log file." %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-hide="serverStatusCouldNotConnect" class="alert alert-error">
|
|
<i class="fas fa-exclamation-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-message">{% trans "Could not connect to server." %}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Version & Modules -->
|
|
<div class="info-card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<div class="card-icon">
|
|
<i class="fas fa-info-circle"></i>
|
|
</div>
|
|
{% trans "Server Information" %}
|
|
</h3>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="version-info">
|
|
<div class="version-header">
|
|
<i class="fas fa-code-branch"></i>
|
|
{% trans "Version" %}: {{ lsversion }}
|
|
</div>
|
|
</div>
|
|
|
|
<h4 style="font-size: 0.875rem; font-weight: 600; color: #475569; margin: 1.5rem 0 1rem 0; text-transform: uppercase; letter-spacing: 0.05em;">
|
|
{{ modules }}
|
|
</h4>
|
|
<div class="module-list">
|
|
{% for item in loadedModules %}
|
|
<div class="module-item">{{ item }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if not OLS %}
|
|
<!-- License Manager for Enterprise -->
|
|
<div class="license-panel" ng-controller="litespeedStatus">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<div class="card-icon">
|
|
<i class="fas fa-key"></i>
|
|
</div>
|
|
{% trans "License Manager" %}
|
|
</h3>
|
|
<span ng-hide="cpLoading" class="loading-spinner"></span>
|
|
</div>
|
|
|
|
<div class="license-options">
|
|
<div class="license-option" ng-click="licenseStatus(1)">
|
|
<div class="license-icon">
|
|
<i class="fas fa-check-circle"></i>
|
|
</div>
|
|
<div class="license-label">{% trans "License Status" %}</div>
|
|
</div>
|
|
|
|
<div class="license-option" ng-click="showSerialBox()">
|
|
<div class="license-icon">
|
|
<i class="fas fa-exchange-alt"></i>
|
|
</div>
|
|
<div class="license-label">{% trans "Change License" %}</div>
|
|
</div>
|
|
|
|
<div class="license-option" ng-click="refreshLicense()">
|
|
<div class="license-icon">
|
|
<i class="fas fa-sync"></i>
|
|
</div>
|
|
<div class="license-label">{% trans "Refresh License" %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- License Status Display -->
|
|
<div ng-hide="fetchedData" style="padding: 0 2rem 2rem 2rem;">
|
|
<div class="alert alert-success">
|
|
<i class="fas fa-check-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{$ lsSerial $}</div>
|
|
<div class="alert-message">{$ lsexpiration $}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Change License Form -->
|
|
<div ng-hide="changeSerialBox" style="padding: 0 2rem 2rem 2rem;">
|
|
<form>
|
|
<div class="form-group">
|
|
<label class="form-label">{% trans "New License Key" %}</label>
|
|
<input type="text" class="form-control" ng-model="newKey" placeholder="{% trans 'Enter your new license key' %}" required>
|
|
</div>
|
|
<button type="button" ng-click="changeLicense()" class="btn btn-primary">
|
|
<i class="fas fa-save"></i>
|
|
{% trans "Update License Key" %}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if OLS %}
|
|
<!-- Switch to Enterprise for OLS -->
|
|
<div class="license-panel" ng-controller="lswsSwitch">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<div class="card-icon">
|
|
<i class="fas fa-rocket"></i>
|
|
</div>
|
|
{% trans "Upgrade to LiteSpeed Enterprise" %}
|
|
</h3>
|
|
<span ng-hide="cyberPanelLoading" class="loading-spinner"></span>
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
<div ng-show="installBoxGen">
|
|
<form>
|
|
<div class="form-group">
|
|
<label class="form-label">{% trans "LiteSpeed License Key (Optional for Trial)" %}</label>
|
|
<input type="text" class="form-control" ng-model="licenseKey"
|
|
placeholder="{% trans 'Enter license key or leave empty for 15-day trial' %}">
|
|
</div>
|
|
|
|
<div class="action-buttons">
|
|
<button type="button" ng-click="switchTOLSWS()" class="btn btn-primary">
|
|
<i class="fas fa-exchange-alt"></i>
|
|
{% trans "Switch to Enterprise" %}
|
|
</button>
|
|
<button type="button" ng-click="confrimtril()" class="btn btn-primary" style="background: #8b5cf6;">
|
|
<i class="fas fa-clock"></i>
|
|
{% trans "Get 15 Days Trial" %}
|
|
</button>
|
|
</div>
|
|
|
|
<div id="confrimtril" style="display: none; margin-top: 1rem;">
|
|
<div class="alert alert-info">
|
|
<i class="fas fa-question-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title">{% trans "Confirm Trial Activation" %}</div>
|
|
<div class="alert-message">{% trans "Are you sure you want to activate the 15-day trial?" %}</div>
|
|
</div>
|
|
</div>
|
|
<button type="button" ng-click="switchTOLSWS()" class="btn btn-primary">
|
|
<i class="fas fa-check"></i>
|
|
{% trans "Yes, Activate Trial" %}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<div style="margin-top: 2rem;">
|
|
<div class="alert alert-info">
|
|
<i class="fas fa-info-circle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-message">
|
|
{% trans "Note: If you select 15 days trial, there is no need to enter a license key. CyberPanel will automatically fetch a 15-day trial key for you. Make sure this server has not used a trial already." %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="alert alert-warning">
|
|
<i class="fas fa-exclamation-triangle alert-icon"></i>
|
|
<div class="alert-content">
|
|
<div class="alert-title" style="color: #dc2626;">{% trans "Important Warning" %}</div>
|
|
<div class="alert-message">
|
|
{% trans "You cannot revert back to OpenLiteSpeed if you choose not to purchase a LiteSpeed Enterprise license after the 15 day trial period. We recommend you test the Enterprise trial on a separate server." %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Installation Progress -->
|
|
<div ng-hide="installBoxGen">
|
|
<h3 style="text-align: center; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem;">
|
|
<img style="width: 50px" src="{% static 'images/litespeed-logo.png' %}">
|
|
{% trans "Installation Progress" %}
|
|
<span ng-hide="cyberPanelLoading" class="loading-spinner"></span>
|
|
</h3>
|
|
<div class="console-output" ng-bind="requestData"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block footer_scripts %}
|
|
<script src="{% static 'serverStatus/serverStatus.js' %}"></script>
|
|
{% endblock %} |