Browse Source

Some more message log stuff. Almost done.

merge-requests/3/head
Mike Koch 6 years ago
parent
commit
9d2fd5f4d0
  1. 4
      admin/view_message_log.php
  2. 1
      inc/headerAdmin.inc.php
  3. 5
      internal-api/dao/message_log_dao.php

4
admin/view_message_log.php

@ -77,9 +77,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<th>Message</th>
</tr>
</thead>
<tbody>
</tbody>
<tbody></tbody>
</table>
</div>
</div>

1
inc/headerAdmin.inc.php

@ -90,6 +90,7 @@ $modsForHesk_settings = mfh_getSettings();
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/platform.js"></script>
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/bootstrap-validator.min.js"></script>
<script type="text/javascript" src="<?php echo HESK_PATH; ?>internal-api/js/core.php"></script>
<script type="text/javascript" src="<?php echo HESK_PATH; ?>internal-api/js/common.js"></script>
<?php
if (defined('EXTRA_JS')) {
echo EXTRA_JS;

5
internal-api/dao/message_log_dao.php

@ -1,6 +1,10 @@
<?php
function search_log($hesk_settings, $location, $from_date, $to_date, $severity_id) {
if (!function_exists('hesk_date')) {
return null;
}
$sql = "SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "logging` WHERE 1=1 ";
if ($location != NULL) {
@ -24,6 +28,7 @@ function search_log($hesk_settings, $location, $from_date, $to_date, $severity_i
$results = [];
while ($row = hesk_dbFetchAssoc($rs)) {
$row['timestamp'] = hesk_date($row['timestamp'], true);
$results[] = $row;
}

Loading…
Cancel
Save