Upload via GUI (338 Dateien)
This commit is contained in:
@@ -21,6 +21,7 @@ $cronJobs = [
|
||||
'process_snoozes' => ['label' => 'Wiedervorlagen', 'file' => 'process_snoozes.php', 'fn' => 'run_process_snoozes'],
|
||||
'remind_customers' => ['label' => 'Kundenerinnerung', 'file' => 'remind_customers.php', 'fn' => 'run_remind_customers'],
|
||||
'send_csat' => ['label' => 'Zufriedenheitsabfrage', 'file' => 'send_csat.php', 'fn' => 'run_send_csat'],
|
||||
'status_checks' => ['label' => 'Statusprüfungen', 'file' => 'status_checks.php', 'fn' => 'run_status_checks'],
|
||||
'run_plugins' => ['label' => 'Plugins (Hintergrundaufgaben)', 'file' => 'run_plugins.php', 'fn' => 'run_plugins_cron'],
|
||||
];
|
||||
|
||||
@@ -40,6 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
set_setting('offline_message', $offlineMsg ?: 'Das Supportcenter ist derzeit nicht erreichbar.');
|
||||
set_setting('default_department_id', (string)$defaultDept);
|
||||
set_setting('kb_enabled', $kbEnabled);
|
||||
set_setting('minecraft_enabled', !empty($_POST['minecraft_enabled']) ? '1' : '0');
|
||||
set_setting('ticket_ratings_enabled', !empty($_POST['ticket_ratings_enabled']) ? '1' : '0');
|
||||
set_setting('auto_time_tracking_enabled', !empty($_POST['auto_time_tracking_enabled']) ? '1' : '0');
|
||||
set_setting('auto_assign_on_open', !empty($_POST['auto_assign_on_open']) ? '1' : '0');
|
||||
@@ -181,6 +183,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
elseif ($file['error'] !== UPLOAD_ERR_OK) { $errors[] = 'Upload fehlgeschlagen.'; }
|
||||
elseif ($file['size'] > 2*1024*1024) { $errors[] = 'Max. 2 MB.'; }
|
||||
elseif (!in_array($ext, $allowed, true)) { $errors[] = 'Erlaubt: PNG, JPG, GIF, SVG.'; }
|
||||
elseif (($imgErr = favicon_validate_file($file['tmp_name'], $ext)) !== null) { $errors[] = $imgErr; }
|
||||
else {
|
||||
foreach ($allowed as $e2) @unlink($branding.'/logo.'.$e2);
|
||||
$dest = $branding.'/logo.'.$ext;
|
||||
@@ -227,6 +230,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
elseif ($file['error'] !== UPLOAD_ERR_OK) { $errors[] = 'Upload fehlgeschlagen.'; }
|
||||
elseif ($file['size'] > 5*1024*1024) { $errors[] = 'Max. 5 MB.'; }
|
||||
elseif (!in_array($ext, $allowed, true)) { $errors[] = 'Erlaubt: PNG, JPG, GIF.'; }
|
||||
elseif (($imgErr = favicon_validate_file($file['tmp_name'], $ext)) !== null) { $errors[] = $imgErr; }
|
||||
else {
|
||||
foreach ($allowed as $e2) @unlink($branding.'/banner.'.$e2);
|
||||
$dest = $branding.'/banner.'.$ext;
|
||||
@@ -542,6 +546,10 @@ require __DIR__ . '/_header.php';
|
||||
<input type="checkbox" name="kb_enabled" value="1" style="width:auto" <?= $kbEnabled?'checked':'' ?>>
|
||||
Wissensdatenbank im Kundenportal anzeigen
|
||||
</label>
|
||||
<label style="display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:400;cursor:pointer">
|
||||
<input type="checkbox" name="minecraft_enabled" value="1" style="width:auto" <?= get_setting('minecraft_enabled','0')==='1'?'checked':'' ?>>
|
||||
Minecraft-Plugin auf der Apps-Seite anzeigen (Download und Einrichtung, Ausfall-Tickets für Minecraft-Server)
|
||||
</label>
|
||||
<label style="display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:400;cursor:pointer">
|
||||
<input type="checkbox" name="ticket_ratings_enabled" value="1" style="width:auto" <?= get_setting('ticket_ratings_enabled','1')==='1'?'checked':'' ?>>
|
||||
Ticket-Bewertung aktivieren (Kunden können nach Schließung 1–5 Sterne vergeben)
|
||||
@@ -1167,6 +1175,7 @@ require __DIR__ . '/_header.php';
|
||||
'remind_customers' => $cronRemind,
|
||||
'run_plugins' => $cronPlugins,
|
||||
'send_csat' => $cronCsat,
|
||||
'status_checks' => cron_last_run_label(get_setting('cron_status_checks_last_run')),
|
||||
];
|
||||
?>
|
||||
<table style="width:100%">
|
||||
|
||||
Reference in New Issue
Block a user