#!/usr/local/bin/perl # edit_push.cgi # Display a list of hosts to which configurations are copied require './cfengine-lib.pl'; &ui_print_header(undef, $text{'push_title'}, "", "push"); if (!&has_command($config{'cfrun'})) { print &text('push_ecmd', "$config{'cfrun'}", "$gconfig{'webprefix'}/config.cgi?$module_name"),"

\n"; &ui_print_footer("/", $text{'index'}); exit; } ($hosts, $opts) = &get_cfrun_hosts(); print "

\n"; print "\n"; print "\n"; print "
$text{'push_header'}
\n"; print "\n"; printf "\n", $opts->{'domain'}; print "\n"; printf "\n", join(" ", split(/,/, $opts->{'access'})), &user_chooser_button("access", 1); print "
$text{'push_domain'}
$text{'push_users'} %s
\n"; print " ", "\n"; $i = 0; foreach $h (@$hosts, [ ], [ ]) { print "\n"; printf "\n", $h->[0]; printf "\n", $h->[1]; print "\n"; $i++; } print "
$text{'push_host'}$text{'push_opts'}
\n"; print "
\n"; if (@$hosts) { print &ui_hr(); print "
\n"; print "\n"; print "\n"; print "\n"; print "
",&text('push_pushdesc', "$config{'cfrun'}"),"
\n"; } &ui_print_footer("", $text{'index_return'});