#!/usr/bin/perl # index.cgi # Show all cron jobs that run on multiple servers require './cluster-cron-lib.pl'; &ui_print_header(undef, $text{'index_title'}, "", "intro", 0, 1); @links = ( &select_all_link("d"), &select_invert_link("d"), &ui_link("edit.cgi?new=1",$text{'index_add'}) ); @jobs = &list_cluster_jobs(); if (@jobs) { print &ui_form_start("delete_jobs.cgi", "post"); print &ui_links_row(\@links); print &ui_columns_start([ "", $cron::text{'index_command'}, $cron::text{'index_user'}, $cron::text{'index_active'}, $text{'index_servers'}, $text{'index_actions'}, ], 100, 0, [ "width=5" ]); foreach $j (@jobs) { local @cols; local $max = $cron::config{'max_len'} || 10000; local $cmd = $j->{'cluster_command'}; push(@cols, sprintf &ui_link("edit.cgi?id=$j->{'cluster_id'}","%s")."%s", length($cmd) > $max ? &html_escape(substr($cmd, 0, $max)) : $cmd !~ /\S/ ? "BLANK" : &html_escape($cmd), length($cmd) > $max ? " ..." : ""); push(@cols, "<tt>$j->{'cluster_user'}</tt>"); push(@cols, $j->{'active'} ? $text{'yes'} : "<font color=#ff0000>$text{'no'}</font>"); local @servers = map { $_ eq "*" ? $text{'edit_this'} : $_ =~ /^group_(.*)$/ ? &text('edit_group', "$1") : $_ } split(/\s+/, $j->{'cluster_server'}); if (@servers > 3) { push(@cols, join(", ", @servers[0 .. 1]).", ". &text('index_more', @servers-2)); } else { push(@cols, join(", ", @servers)); } push(@cols, &ui_link("exec.cgi?id=$j->{'cluster_id'}",$text{'index_run'})); print &ui_checked_columns_row( \@cols, [ "width=5", undef, undef, undef, undef, "width=10" ], "d", $j->{'cluster_id'}); } print &ui_columns_end(); print &ui_links_row(\@links); print &ui_form_end([ [ "delete", $cron::text{'index_delete'} ] ]); } else { print "<b>$text{'index_none'}</b><p>\n"; print &ui_links_row([ $links[2] ]); } &ui_print_footer("/", $text{'index'});
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
help | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
CHANGELOG | File | 109 B | 0644 |
|
cluster-cron-lib.pl | File | 4.76 KB | 0755 |
|
cron.pl | File | 658 B | 0755 |
|
delete.cgi | File | 346 B | 0755 |
|
delete_jobs.cgi | File | 409 B | 0755 |
|
edit.cgi | File | 2.25 KB | 0755 |
|
exec.cgi | File | 1.18 KB | 0755 |
|
index.cgi | File | 1.92 KB | 0755 |
|
log_parser.pl | File | 879 B | 0755 |
|
module.info | File | 250 B | 0644 |
|
module.info.af | File | 0 B | 0644 |
|
module.info.af.auto | File | 151 B | 0644 |
|
module.info.ar | File | 0 B | 0644 |
|
module.info.ar.auto | File | 212 B | 0644 |
|
module.info.be | File | 0 B | 0644 |
|
module.info.be.auto | File | 221 B | 0644 |
|
module.info.bg | File | 0 B | 0644 |
|
module.info.bg.auto | File | 216 B | 0644 |
|
module.info.ca | File | 133 B | 0644 |
|
module.info.ca.auto | File | 29 B | 0644 |
|
module.info.cs | File | 30 B | 0644 |
|
module.info.cs.auto | File | 127 B | 0644 |
|
module.info.da | File | 0 B | 0644 |
|
module.info.da.auto | File | 133 B | 0644 |
|
module.info.de | File | 130 B | 0644 |
|
module.info.de.auto | File | 29 B | 0644 |
|
module.info.el | File | 0 B | 0644 |
|
module.info.el.auto | File | 284 B | 0644 |
|
module.info.es | File | 33 B | 0644 |
|
module.info.es.auto | File | 130 B | 0644 |
|
module.info.eu | File | 0 B | 0644 |
|
module.info.eu.auto | File | 154 B | 0644 |
|
module.info.fa | File | 0 B | 0644 |
|
module.info.fa.auto | File | 200 B | 0644 |
|
module.info.fi | File | 0 B | 0644 |
|
module.info.fi.auto | File | 152 B | 0644 |
|
module.info.fr | File | 38 B | 0644 |
|
module.info.fr.auto | File | 130 B | 0644 |
|
module.info.he | File | 0 B | 0644 |
|
module.info.he.auto | File | 182 B | 0644 |
|
module.info.hr | File | 0 B | 0644 |
|
module.info.hr.auto | File | 154 B | 0644 |
|
module.info.hu | File | 40 B | 0644 |
|
module.info.hu.auto | File | 131 B | 0644 |
|
module.info.it | File | 0 B | 0644 |
|
module.info.it.auto | File | 154 B | 0644 |
|
module.info.ja | File | 0 B | 0644 |
|
module.info.ja.auto | File | 199 B | 0644 |
|
module.info.ko | File | 0 B | 0644 |
|
module.info.ko.auto | File | 174 B | 0644 |
|
module.info.lt | File | 0 B | 0644 |
|
module.info.lt.auto | File | 159 B | 0644 |
|
module.info.lv | File | 0 B | 0644 |
|
module.info.lv.auto | File | 155 B | 0644 |
|
module.info.ms | File | 112 B | 0644 |
|
module.info.ms.auto | File | 29 B | 0644 |
|
module.info.mt | File | 0 B | 0644 |
|
module.info.mt.auto | File | 150 B | 0644 |
|
module.info.nl | File | 40 B | 0644 |
|
module.info.nl.auto | File | 124 B | 0644 |
|
module.info.no | File | 29 B | 0644 |
|
module.info.no.auto | File | 109 B | 0644 |
|
module.info.pl | File | 153 B | 0644 |
|
module.info.pl.auto | File | 29 B | 0644 |
|
module.info.pt | File | 0 B | 0644 |
|
module.info.pt.auto | File | 160 B | 0644 |
|
module.info.pt_BR | File | 0 B | 0644 |
|
module.info.pt_BR.auto | File | 169 B | 0644 |
|
module.info.ro | File | 0 B | 0644 |
|
module.info.ro.auto | File | 143 B | 0644 |
|
module.info.ru | File | 0 B | 0644 |
|
module.info.ru.auto | File | 284 B | 0644 |
|
module.info.sk | File | 0 B | 0644 |
|
module.info.sk.auto | File | 164 B | 0644 |
|
module.info.sl | File | 0 B | 0644 |
|
module.info.sl.auto | File | 145 B | 0644 |
|
module.info.sv | File | 0 B | 0644 |
|
module.info.sv.auto | File | 134 B | 0644 |
|
module.info.th | File | 0 B | 0644 |
|
module.info.th.auto | File | 272 B | 0644 |
|
module.info.tr | File | 0 B | 0644 |
|
module.info.tr.auto | File | 162 B | 0644 |
|
module.info.uk | File | 0 B | 0644 |
|
module.info.uk.auto | File | 215 B | 0644 |
|
module.info.ur | File | 0 B | 0644 |
|
module.info.ur.auto | File | 211 B | 0644 |
|
module.info.vi | File | 0 B | 0644 |
|
module.info.vi.auto | File | 162 B | 0644 |
|
module.info.zh | File | 0 B | 0644 |
|
module.info.zh.auto | File | 127 B | 0644 |
|
module.info.zh_TW | File | 0 B | 0644 |
|
module.info.zh_TW.auto | File | 136 B | 0644 |
|
save.cgi | File | 1.82 KB | 0755 |
|
uninstall.pl | File | 233 B | 0755 |
|