Upload via GUI (290 Dateien)
This commit is contained in:
@@ -18,6 +18,8 @@ $cronJobs = [
|
||||
'process_backups' => ['label' => 'Automatische Backups', 'file' => 'process_backups.php', 'fn' => 'run_process_backups'],
|
||||
'anonymize_data' => ['label' => 'Datenanonymisierung', 'file' => 'anonymize_data.php', 'fn' => 'run_anonymization'],
|
||||
'auto_close_tickets'=> ['label' => 'Automatisches Schließen', 'file' => 'auto_close_tickets.php','fn' => 'run_auto_close_tickets'],
|
||||
'process_snoozes' => ['label' => 'Wiedervorlagen', 'file' => 'process_snoozes.php', 'fn' => 'run_process_snoozes'],
|
||||
'remind_customers' => ['label' => 'Kundenerinnerung', 'file' => 'remind_customers.php', 'fn' => 'run_remind_customers'],
|
||||
];
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
@@ -46,6 +48,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
set_setting('auto_close_enabled', !empty($_POST['auto_close_enabled']) ? '1' : '0');
|
||||
$autoCloseDays = max(1, min(90, (int) ($_POST['auto_close_days'] ?? 7)));
|
||||
set_setting('auto_close_days', (string) $autoCloseDays);
|
||||
set_setting('remind_enabled', !empty($_POST['remind_enabled']) ? '1' : '0');
|
||||
set_setting('remind_after_days', (string) max(1, min(60, (int) ($_POST['remind_after_days'] ?? 3))));
|
||||
$timeout = max(5, min(480, (int)($_POST['staff_session_timeout'] ?? 30)));
|
||||
set_setting('staff_session_timeout', (string)$timeout);
|
||||
audit_log($staff['id'], "Systemeinstellungen geändert");
|
||||
@@ -460,6 +464,8 @@ $cronBackups = cron_last_run_label(get_setting('cron_process_backups_last_ru
|
||||
$cronEscalations = cron_last_run_label(get_setting('cron_check_escalations_last_run'));
|
||||
$cronAnonymize = cron_last_run_label(get_setting('cron_anonymize_data_last_run'));
|
||||
$cronAutoClose = cron_last_run_label(get_setting('cron_auto_close_tickets_last_run'));
|
||||
$cronSnoozes = cron_last_run_label(get_setting('cron_process_snoozes_last_run'));
|
||||
$cronRemind = cron_last_run_label(get_setting('cron_remind_customers_last_run'));
|
||||
|
||||
|
||||
$tab = $_GET['tab'] ?? 'allgemein';
|
||||
@@ -547,6 +553,16 @@ require __DIR__ . '/_header.php';
|
||||
<input type="number" name="auto_close_days" value="<?= (int) get_setting('auto_close_days','7') ?>" min="1" max="90" style="width:90px">
|
||||
<span class="muted" style="font-size:.82rem">Tage</span>
|
||||
</div>
|
||||
<?php $remindEnabled = customer_reminder_enabled(); ?>
|
||||
<label style="display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:400;cursor:pointer">
|
||||
<input type="checkbox" name="remind_enabled" value="1" style="width:auto" id="remind_enabled" onchange="document.getElementById('remind-days-row').style.display=this.checked?'block':'none'" <?= $remindEnabled?'checked':'' ?>>
|
||||
Kunden erinnern, wenn sie auf eine Antwort nicht reagieren (einmalig, vor dem automatischen Schließen)
|
||||
</label>
|
||||
<div id="remind-days-row" style="display:<?= $remindEnabled?'block':'none' ?>;margin-top:8px;margin-left:26px">
|
||||
<label style="font-size:.82rem">Nach wie vielen Tagen ohne Reaktion</label><br>
|
||||
<input type="number" name="remind_after_days" value="<?= customer_reminder_days() ?>" min="1" max="60" style="width:90px">
|
||||
<span class="muted" style="font-size:.82rem">Tage (am besten kürzer als die Frist zum automatischen Schließen)</span>
|
||||
</div>
|
||||
<?php $liveChatEnabled = get_setting('live_chat_enabled','0')==='1'; ?>
|
||||
<label style="display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:400;cursor:pointer">
|
||||
<input type="checkbox" name="live_chat_enabled" value="1" style="width:auto" id="live_chat_enabled" onchange="document.getElementById('live-chat-dept-row').style.display=this.checked?'block':'none'" <?= $liveChatEnabled?'checked':'' ?>>
|
||||
@@ -1120,6 +1136,8 @@ require __DIR__ . '/_header.php';
|
||||
'process_backups' => $cronBackups,
|
||||
'anonymize_data' => $cronAnonymize,
|
||||
'auto_close_tickets'=> $cronAutoClose,
|
||||
'process_snoozes' => $cronSnoozes,
|
||||
'remind_customers' => $cronRemind,
|
||||
];
|
||||
?>
|
||||
<table style="width:100%">
|
||||
|
||||
Reference in New Issue
Block a user