various minor fixes for issues found by community member awsome

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-08-25 21:02:54 +02:00
parent 402dc8cf42
commit 5525b927c1
7 changed files with 34 additions and 8 deletions

View File

@@ -95,12 +95,13 @@ if (!empty($errid)) {
// finally remove error from fs
@unlink($err_file);
Response::redirectTo($filename);
Response::standardSuccess('sent_error_report', '', ['filename' => 'index.php']);
}
// show a nice summary of the error-report
// before actually sending anything
UI::view('user/error_report.html.twig', [
'mail_html' => $mail_body
'mail_html' => $mail_body,
'errorid' => $errid
]);
} else {
Response::redirectTo($filename);

View File

@@ -60,8 +60,10 @@ return [
'resources' => 'Ressourcen',
'customer' => 'Kunde',
'customers' => 'Kunden',
'customers_list_desc' => 'Kundenverwaltung',
'customer_add' => 'Kunden anlegen',
'customer_edit' => 'Kunden bearbeiten',
'username_default_msg' => 'Leer lassen für automatische Benutzername-Vergabe',
'domains' => 'Domains',
'domain_add' => 'Domain anlegen',
'domain_edit' => 'Domain bearbeiten',
@@ -74,6 +76,7 @@ return [
'domains_see_all' => 'Kann alle Domains sehen?',
'change_serversettings' => 'Kann Servereinstellungen bearbeiten?',
'serversettings' => 'Einstellungen',
'serversettings_desc' => 'Verwalte dein froxlor System',
'rebuildconf' => 'Configs neu schreiben',
'stdsubdomain' => 'Standardsubdomain',
'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".',
'finishnote' => 'Parameter Datei erfolgreich erstellt. Folgende Befehle müssen als root ausgeführt werden:',
'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',
'recommendednote' => 'Empfohlene/benötigte Dienste anhand der aktuellen Systemeinstellungen',
'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.',
],
'cronsettings' => 'Cronjob-Einstellungen',
'integritycheck' => 'Datenbankpr&uuml;fung',
'integritycheck' => 'Datenbankprüfung',
'integrityname' => 'Name',
'integrityresult' => 'Ergebnis',
'integrityfix' => 'Probleme automatisch beheben',
@@ -2039,6 +2043,7 @@ Vielen Dank, Ihr Administrator',
'dns_record_deleted' => 'Eintrag erfolgreich entfernt',
'testmailsent' => 'Test E-Mail erfolgreich gesendet',
'settingsimported' => 'Einstellungnen erfolgreich importiert',
'sent_error_report' => 'Fehlerbericht erfolgreich gesendet. Danke für die Unterstützung.',
],
'tasks' => [
'outstanding_tasks' => 'Ausstehende Cron-Aufgaben',

View File

@@ -60,8 +60,10 @@ return [
'resources' => 'Resources',
'customer' => 'Customer',
'customers' => 'Customers',
'customers_list_desc' => 'Manage your customers',
'customer_add' => 'Create customer',
'customer_edit' => 'Edit customer',
'username_default_msg' => 'Leave empty for autogenerated value',
'domains' => 'Domains',
'domain_add' => 'Create domain',
'domain_edit' => 'Edit domain',
@@ -75,6 +77,7 @@ return [
'change_serversettings' => 'Can change server settings?',
'server' => 'System',
'serversettings' => 'Settings',
'serversettings_desc' => 'Manage your froxlor system',
'rebuildconf' => 'Rebuild config files',
'stdsubdomain' => 'Standard subdomain',
'stdsubdomain_add' => 'Create standard subdomain',
@@ -107,6 +110,7 @@ return [
'importexport' => 'Import/Export',
'finishnote' => 'Parameter file generated successfully. Now run the following command as root:',
'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',
'recommendednote' => 'Recommended/required services based on current system settings',
'selectrecommended' => 'Select recommended',
@@ -2423,6 +2427,7 @@ Yours sincerely, your administrator',
'dns_record_deleted' => 'Record deleted successfully',
'testmailsent' => 'Test mail sent successfully',
'settingsimported' => 'Settings imported successfully',
'sent_error_report' => 'Succesfully sent error report. Thank you for your contribution.',
],
'tasks' => [
'outstanding_tasks' => 'Outstanding cron-tasks',

View File

@@ -17,6 +17,11 @@
{% endblock %}
{% 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">
{% block settings %}
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-4 g-3">
@@ -104,9 +109,11 @@
{{ lng('admin.configfiles.recommendednote') }}
</div>
<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="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>
</div>
</div>
@@ -119,8 +126,7 @@
<h5 class="modal-title" id="configTplShowLabel"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ lng('panel.modalclose') }}"></button>
</div>
<div class="modal-body text-start">
</div>
<div class="modal-body text-start"></div>
<div class="modal-footer">
<button class="btn btn-primary" data-bs-dismiss="modal">{{ lng('panel.modalclose') }}</button>
</div>

View File

@@ -7,7 +7,7 @@
{% if fields._group is defined %}&nbsp;&raquo;&nbsp;{{ fields._group.title }}
{% endif %}
</h5>
<span class="text-muted">Manage your Froxlor system</span>
<span class="text-muted">{{ lng('admin.serversettings_desc') }}</span>
{% endblock %}
{% block actions %}

View File

@@ -0,0 +1,8 @@
$(function () {
$('#historyback').on('click', function (e) {
e.preventDefault();
history.back(1);
})
});

View File

@@ -12,6 +12,7 @@ $(function () {
});
// Load components
require('./components/global')
require('./components/search')
require('./components/newsfeed')
require('./components/updatecheck')