Log and redirect after refresh

This commit is contained in:
Jamie Cameron
2009-03-06 20:38:06 +00:00
parent 6af5599e54
commit 76376cca90
2 changed files with 4 additions and 1 deletions

View File

@@ -260,6 +260,7 @@ log_tmpl_create=Created email template $1
log_tmpl_modify=Modified email template $1
log_tmpl_delete=Deleted email template $1
log_tmpl_deletes=Deleted $1 email templates
log_refresh=Refreshed monitor statuses
acl_edit=Can edit and create monitors?
acl_sched=Can change scheduled monitoring?

View File

@@ -8,8 +8,10 @@ require './status-lib.pl';
print $text{'refresh_doing'},"<br>\n";
&foreign_require("cron", "cron-lib.pl");
&cron::create_wrapper($cron_cmd, $module_name, "monitor.pl");
system("$cron_cmd --force >/dev/null 2>&1 </dev/null");
&system_logged("$cron_cmd --force >/dev/null 2>&1 </dev/null");
&webmin_log("refresh");
print $text{'refresh_done'},"<p>\n";
print &js_redirect("/");
&ui_print_footer("", $text{'index_return'});