Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
da32e897
Commit
da32e897
authored
Jan 11, 2009
by
tbrehm
Browse files
Errors can be marked as closed in the monitor module.
parent
15b04e77
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/monitor/log_del.php
View file @
da32e897
<?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
interface/web/monitor/templates/syslog_list.htm
View file @
da32e897
...
...
@@ -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"
>
</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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment