From 12d1031c2297f2ce586002fda74ca4a8f9d4e130 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 4 Sep 2021 15:23:58 +0200 Subject: [PATCH] add missing _send report_ and _delete logs_ buttons --- _config.php | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/_config.php b/_config.php index 342280b..9e99834 100644 --- a/_config.php +++ b/_config.php @@ -63,15 +63,23 @@ if (!empty($_POST['save'])) { $report->setSetting('requests', isset($_POST['requests']) ? $_POST['requests'] : []); $report->setSetting('blogs', isset($_POST['blogs']) ? $_POST['blogs'] : []); - if (!empty($_POST['force_report'])) { + if (!empty($_POST['send_report_now'])) { $core->activityReport->needReport(true); + + dcPage::addSuccessNotice( + __('Report successfully sent.') + ); } - if (!empty($_POST['force_delete'])) { + if (!empty($_POST['delete_report_now'])) { $core->activityReport->deleteLogs(); + + dcPage::addSuccessNotice( + __('Logs successfully deleted.') + ); } dcPage::addSuccessNotice( - __('Configuration has been successfully updated.') + __('Configuration successfully updated.') ); $core->adminurl->redirect('admin.plugins', ['module' => 'activityReport', 'conf' => 1, 'super' => $super]); } catch (Exception $e) { @@ -91,7 +99,7 @@ if (!$last_report_ts) { ); $next_report = dt::str( $core->blog->settings->system->date_format . ', ' . $core->blog->settings->system->time_format, - (integer) $report->getSetting('interval') + $next_report_ts, + (integer) $report->getSetting('interval') + $last_report_ts, $core->auth->getInfo('user_tz') ); } @@ -212,4 +220,19 @@ foreach($groups as $group_id => $group) { } echo ''; +if (1) { + echo ' +

' . __('Special') . '

+ +

+ +

+ +
'; +} + $report->unsetGlobal(); \ No newline at end of file