Commit da32e897 authored by tbrehm's avatar tbrehm
Browse files

Errors can be marked as closed in the monitor module.

parent 15b04e77
<?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 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
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;
?>
\ No newline at end of file
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment