various minor fixes for issues found by community member awsome
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -95,12 +95,13 @@ if (!empty($errid)) {
|
|||||||
|
|
||||||
// finally remove error from fs
|
// finally remove error from fs
|
||||||
@unlink($err_file);
|
@unlink($err_file);
|
||||||
Response::redirectTo($filename);
|
Response::standardSuccess('sent_error_report', '', ['filename' => 'index.php']);
|
||||||
}
|
}
|
||||||
// show a nice summary of the error-report
|
// show a nice summary of the error-report
|
||||||
// before actually sending anything
|
// before actually sending anything
|
||||||
UI::view('user/error_report.html.twig', [
|
UI::view('user/error_report.html.twig', [
|
||||||
'mail_html' => $mail_body
|
'mail_html' => $mail_body,
|
||||||
|
'errorid' => $errid
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
Response::redirectTo($filename);
|
Response::redirectTo($filename);
|
||||||
|
|||||||
@@ -60,8 +60,10 @@ return [
|
|||||||
'resources' => 'Ressourcen',
|
'resources' => 'Ressourcen',
|
||||||
'customer' => 'Kunde',
|
'customer' => 'Kunde',
|
||||||
'customers' => 'Kunden',
|
'customers' => 'Kunden',
|
||||||
|
'customers_list_desc' => 'Kundenverwaltung',
|
||||||
'customer_add' => 'Kunden anlegen',
|
'customer_add' => 'Kunden anlegen',
|
||||||
'customer_edit' => 'Kunden bearbeiten',
|
'customer_edit' => 'Kunden bearbeiten',
|
||||||
|
'username_default_msg' => 'Leer lassen für automatische Benutzername-Vergabe',
|
||||||
'domains' => 'Domains',
|
'domains' => 'Domains',
|
||||||
'domain_add' => 'Domain anlegen',
|
'domain_add' => 'Domain anlegen',
|
||||||
'domain_edit' => 'Domain bearbeiten',
|
'domain_edit' => 'Domain bearbeiten',
|
||||||
@@ -74,6 +76,7 @@ return [
|
|||||||
'domains_see_all' => 'Kann alle Domains sehen?',
|
'domains_see_all' => 'Kann alle Domains sehen?',
|
||||||
'change_serversettings' => 'Kann Servereinstellungen bearbeiten?',
|
'change_serversettings' => 'Kann Servereinstellungen bearbeiten?',
|
||||||
'serversettings' => 'Einstellungen',
|
'serversettings' => 'Einstellungen',
|
||||||
|
'serversettings_desc' => 'Verwalte dein froxlor System',
|
||||||
'rebuildconf' => 'Configs neu schreiben',
|
'rebuildconf' => 'Configs neu schreiben',
|
||||||
'stdsubdomain' => 'Standardsubdomain',
|
'stdsubdomain' => 'Standardsubdomain',
|
||||||
'stdsubdomain_add' => 'Standardsubdomain anlegen',
|
'stdsubdomain_add' => 'Standardsubdomain anlegen',
|
||||||
@@ -105,6 +108,7 @@ return [
|
|||||||
'files' => '<span class="text-danger">Konfigurationsdateien:</span> Der Befehl direkt vor dem Textfeld sollte einen Editor mit der Zieldatei öffnen. Der Inhalt kann nun einfach kopiert und in den Editor eingefügt und die Datei gespeichert werden.<br><span class="text-danger">Bitte beachten:</span> Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt. Bitte ersetzen Sie "FROXLOR_MYSQL_PASSWORD" manuell oder nutzen Sie das folgende Formular, um es temporär auf dieser Seite zu setzen. Falls das Passwort vergessen wurde, findet es sich in der Datei "lib/userdata.inc.php".',
|
'files' => '<span class="text-danger">Konfigurationsdateien:</span> Der Befehl direkt vor dem Textfeld sollte einen Editor mit der Zieldatei öffnen. Der Inhalt kann nun einfach kopiert und in den Editor eingefügt und die Datei gespeichert werden.<br><span class="text-danger">Bitte beachten:</span> Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt. Bitte ersetzen Sie "FROXLOR_MYSQL_PASSWORD" manuell oder nutzen Sie das folgende Formular, um es temporär auf dieser Seite zu setzen. Falls das Passwort vergessen wurde, findet es sich in der Datei "lib/userdata.inc.php".',
|
||||||
'finishnote' => 'Parameter Datei erfolgreich erstellt. Folgende Befehle müssen als root ausgeführt werden:',
|
'finishnote' => 'Parameter Datei erfolgreich erstellt. Folgende Befehle müssen als root ausgeführt werden:',
|
||||||
'description' => 'System-Dienste konfigurieren',
|
'description' => 'System-Dienste konfigurieren',
|
||||||
|
'minihowto' => 'Auf dieser Seite können die verschiedenen Konfigurationsvorlagen für jeden Dienst angezeigt werden, bestimmte Dienste bei Bedarf (erneut) konfiguriert oder die aktuelle Auswahl in eine JSON-Datei exportiert werden, um sie in den CLI-Skripten oder auf einem anderen Server zu verwenden.<br><br><b>Beachte</b>, dass die hervorgehobenen Dienste nicht die auf dem Server genutzten Dienste widerspiegeln, sondern Anforderungen/Empfehlungen aus den aktuellen Einstellungswerten zeigen.',
|
||||||
'skipconfig' => 'Nicht (erneut) konfigurieren',
|
'skipconfig' => 'Nicht (erneut) konfigurieren',
|
||||||
'recommendednote' => 'Empfohlene/benötigte Dienste anhand der aktuellen Systemeinstellungen',
|
'recommendednote' => 'Empfohlene/benötigte Dienste anhand der aktuellen Systemeinstellungen',
|
||||||
'selectrecommended' => 'Empfohlene wählen',
|
'selectrecommended' => 'Empfohlene wählen',
|
||||||
@@ -381,7 +385,7 @@ return [
|
|||||||
'description' => 'Aktivieren Sie diese Option, um das offizielle Froxlor newsfeed (https://inside.froxlor.org/news/) auf deinem Dashboard anzuzeigen und verpasse keine wichtigen Informationen oder Release-Announcements.',
|
'description' => 'Aktivieren Sie diese Option, um das offizielle Froxlor newsfeed (https://inside.froxlor.org/news/) auf deinem Dashboard anzuzeigen und verpasse keine wichtigen Informationen oder Release-Announcements.',
|
||||||
],
|
],
|
||||||
'cronsettings' => 'Cronjob-Einstellungen',
|
'cronsettings' => 'Cronjob-Einstellungen',
|
||||||
'integritycheck' => 'Datenbankprüfung',
|
'integritycheck' => 'Datenbankprüfung',
|
||||||
'integrityname' => 'Name',
|
'integrityname' => 'Name',
|
||||||
'integrityresult' => 'Ergebnis',
|
'integrityresult' => 'Ergebnis',
|
||||||
'integrityfix' => 'Probleme automatisch beheben',
|
'integrityfix' => 'Probleme automatisch beheben',
|
||||||
@@ -2039,6 +2043,7 @@ Vielen Dank, Ihr Administrator',
|
|||||||
'dns_record_deleted' => 'Eintrag erfolgreich entfernt',
|
'dns_record_deleted' => 'Eintrag erfolgreich entfernt',
|
||||||
'testmailsent' => 'Test E-Mail erfolgreich gesendet',
|
'testmailsent' => 'Test E-Mail erfolgreich gesendet',
|
||||||
'settingsimported' => 'Einstellungnen erfolgreich importiert',
|
'settingsimported' => 'Einstellungnen erfolgreich importiert',
|
||||||
|
'sent_error_report' => 'Fehlerbericht erfolgreich gesendet. Danke für die Unterstützung.',
|
||||||
],
|
],
|
||||||
'tasks' => [
|
'tasks' => [
|
||||||
'outstanding_tasks' => 'Ausstehende Cron-Aufgaben',
|
'outstanding_tasks' => 'Ausstehende Cron-Aufgaben',
|
||||||
|
|||||||
@@ -60,8 +60,10 @@ return [
|
|||||||
'resources' => 'Resources',
|
'resources' => 'Resources',
|
||||||
'customer' => 'Customer',
|
'customer' => 'Customer',
|
||||||
'customers' => 'Customers',
|
'customers' => 'Customers',
|
||||||
|
'customers_list_desc' => 'Manage your customers',
|
||||||
'customer_add' => 'Create customer',
|
'customer_add' => 'Create customer',
|
||||||
'customer_edit' => 'Edit customer',
|
'customer_edit' => 'Edit customer',
|
||||||
|
'username_default_msg' => 'Leave empty for autogenerated value',
|
||||||
'domains' => 'Domains',
|
'domains' => 'Domains',
|
||||||
'domain_add' => 'Create domain',
|
'domain_add' => 'Create domain',
|
||||||
'domain_edit' => 'Edit domain',
|
'domain_edit' => 'Edit domain',
|
||||||
@@ -75,6 +77,7 @@ return [
|
|||||||
'change_serversettings' => 'Can change server settings?',
|
'change_serversettings' => 'Can change server settings?',
|
||||||
'server' => 'System',
|
'server' => 'System',
|
||||||
'serversettings' => 'Settings',
|
'serversettings' => 'Settings',
|
||||||
|
'serversettings_desc' => 'Manage your froxlor system',
|
||||||
'rebuildconf' => 'Rebuild config files',
|
'rebuildconf' => 'Rebuild config files',
|
||||||
'stdsubdomain' => 'Standard subdomain',
|
'stdsubdomain' => 'Standard subdomain',
|
||||||
'stdsubdomain_add' => 'Create standard subdomain',
|
'stdsubdomain_add' => 'Create standard subdomain',
|
||||||
@@ -107,6 +110,7 @@ return [
|
|||||||
'importexport' => 'Import/Export',
|
'importexport' => 'Import/Export',
|
||||||
'finishnote' => 'Parameter file generated successfully. Now run the following command as root:',
|
'finishnote' => 'Parameter file generated successfully. Now run the following command as root:',
|
||||||
'description' => 'Configure the system services',
|
'description' => 'Configure the system services',
|
||||||
|
'minihowto' => 'On this page you can view the different configuration templates for each service, (re-)configure specific services if needed or export the current selection to a JSON file to use in the CLI scripts or on another server.<br><br><b>Note</b> that the services highlighted do not reflect your current setup but show requirements/recommendations from your current setting values.',
|
||||||
'skipconfig' => 'Don\'t (re)configure',
|
'skipconfig' => 'Don\'t (re)configure',
|
||||||
'recommendednote' => 'Recommended/required services based on current system settings',
|
'recommendednote' => 'Recommended/required services based on current system settings',
|
||||||
'selectrecommended' => 'Select recommended',
|
'selectrecommended' => 'Select recommended',
|
||||||
@@ -2423,6 +2427,7 @@ Yours sincerely, your administrator',
|
|||||||
'dns_record_deleted' => 'Record deleted successfully',
|
'dns_record_deleted' => 'Record deleted successfully',
|
||||||
'testmailsent' => 'Test mail sent successfully',
|
'testmailsent' => 'Test mail sent successfully',
|
||||||
'settingsimported' => 'Settings imported successfully',
|
'settingsimported' => 'Settings imported successfully',
|
||||||
|
'sent_error_report' => 'Succesfully sent error report. Thank you for your contribution.',
|
||||||
],
|
],
|
||||||
'tasks' => [
|
'tasks' => [
|
||||||
'outstanding_tasks' => 'Outstanding cron-tasks',
|
'outstanding_tasks' => 'Outstanding cron-tasks',
|
||||||
|
|||||||
@@ -17,6 +17,11 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="alert alert-info fade show" role="alert">
|
||||||
|
<p>{{ lng('admin.configfiles.minihowto') }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form action="{{ action|default(filename) }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
|
<form action="{{ action|default(filename) }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
|
||||||
{% block settings %}
|
{% block settings %}
|
||||||
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-4 g-3">
|
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-4 g-3">
|
||||||
@@ -106,7 +111,9 @@
|
|||||||
<div class="col-12 col-md-6 text-end">
|
<div class="col-12 col-md-6 text-end">
|
||||||
<input type="hidden" name="dist" value="{{ distribution }}"/>
|
<input type="hidden" name="dist" value="{{ distribution }}"/>
|
||||||
<button type="button" class="btn btn-outline-secondary" id="selectRecommendedConfig">{{ lng('admin.configfiles.selectrecommended') }}</button>
|
<button type="button" class="btn btn-outline-secondary" id="selectRecommendedConfig">{{ lng('admin.configfiles.selectrecommended') }}</button>
|
||||||
<button type="button" class="btn btn-outline-secondary" id="downloadSelectionAsJson"><i class="fa-solid fa-download"></i> {{ lng('admin.configfiles.downloadselected') }}</button>
|
<button type="button" class="btn btn-outline-secondary" id="downloadSelectionAsJson">
|
||||||
|
<i class="fa-solid fa-download"></i>
|
||||||
|
{{ lng('admin.configfiles.downloadselected') }}</button>
|
||||||
<button type="submit" class="btn btn-primary">{{ lng('update.proceed') }}</button>
|
<button type="submit" class="btn btn-primary">{{ lng('update.proceed') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,8 +126,7 @@
|
|||||||
<h5 class="modal-title" id="configTplShowLabel"></h5>
|
<h5 class="modal-title" id="configTplShowLabel"></h5>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ lng('panel.modalclose') }}"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ lng('panel.modalclose') }}"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body text-start">
|
<div class="modal-body text-start"></div>
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn btn-primary" data-bs-dismiss="modal">{{ lng('panel.modalclose') }}</button>
|
<button class="btn btn-primary" data-bs-dismiss="modal">{{ lng('panel.modalclose') }}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{% if fields._group is defined %} » {{ fields._group.title }}
|
{% if fields._group is defined %} » {{ fields._group.title }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h5>
|
</h5>
|
||||||
<span class="text-muted">Manage your Froxlor system</span>
|
<span class="text-muted">{{ lng('admin.serversettings_desc') }}</span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
|
|||||||
8
templates/Froxlor/src/js/components/global.js
Normal file
8
templates/Froxlor/src/js/components/global.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
$(function () {
|
||||||
|
|
||||||
|
$('#historyback').on('click', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
history.back(1);
|
||||||
|
})
|
||||||
|
|
||||||
|
});
|
||||||
@@ -12,6 +12,7 @@ $(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Load components
|
// Load components
|
||||||
|
require('./components/global')
|
||||||
require('./components/search')
|
require('./components/search')
|
||||||
require('./components/newsfeed')
|
require('./components/newsfeed')
|
||||||
require('./components/updatecheck')
|
require('./components/updatecheck')
|
||||||
|
|||||||
Reference in New Issue
Block a user