tbrehm
2009-01-11 da32e8975208430e2b1a1be04c63547203870be9
Errors can be marked as closed in the monitor module.
2 files modified
34 ■■■■ changed files
interface/web/monitor/log_del.php 21 ●●●●● patch | view | raw | blame | history
interface/web/monitor/templates/syslog_list.htm 13 ●●●● patch | view | raw | blame | history
interface/web/monitor/log_del.php
@@ -1,7 +1,7 @@
<?php
/*
Copyright (c) 2008, Till Brehm, projektfarm Gmbh
Copyright (c) 2008 - 2009, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -28,24 +28,17 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/log.list.php";
$tform_def_file = "form/log.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('monitor');
$app->uses("tform_actions");
$app->tform_actions->onDelete();
$syslog_id = intval($_GET['id']);
$app->db->query("UPDATE sys_log SET loglevel = 0 WHERE syslog_id = '$syslog_id'");
header('Location: log_list.php');
exit;
?>
interface/web/monitor/templates/syslog_list.htm
@@ -29,8 +29,17 @@
            <td class="tbl_col_loglevel">{tmpl_var name="loglevel"}</td>
            <td class="tbl_col_message">{tmpl_var name="message"}</td>
            <td class="tbl_col_buttons">
              &nbsp;
            </td>
              <tmpl_if name="loglevel" op="==" value="Error">
              <div class="buttons icons16">
                <a class="icons16 icoDelete" href="javascript: del_record('monitor/log_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a>
              </div>
              </tmpl_if>
              <tmpl_if name="loglevel" op="==" value="Warning">
              <div class="buttons icons16">
                <a class="icons16 icoDelete" href="javascript: del_record('monitor/log_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name='delete_txt'}</span></a>
              </div>
              </tmpl_if>
            </td>
          </tr>
          </tmpl_loop>
        </tbody>