$disp++;
}
if ($disp) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_subheading($text{'share_option'});
&icons_table(\@url, \@text, \@icon);
}
$disp++;
}
if ($disp) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_subheading($text{'share_option'});
&icons_table(\@url, \@text, \@icon);
}
}
if ($disp) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_subheading($text{'global_title'});
&icons_table(\@gc_progs1, \@gc_names1, \@gc_icons1, 4);
}
if (@utitles) {
# We have some icons to show
- print "<hr>\n";
+ print &ui_hr();
print &ui_subheading($text{'global_users'});
&icons_table(\@ulinks, \@utitles, \@uicons, 3);
}
if ($access{'apply'}) {
$isrun = &is_samba_running();
if ($isrun == 0) {
- print "<hr>\n";
+ print &ui_hr();
print "<form action=start.cgi>\n";
print "<table width=100%><tr>\n";
print "<td><input type=submit value=\"$text{'index_start'}\"></td>\n";
print "</tr></table></form>\n";
}
elsif ($isrun == 1) {
- print "<hr>\n";
+ print &ui_hr();
print "<table width=100%><tr>\n";
print "<form action=restart.cgi>\n";
print "<td><input type=submit value=\"$text{'index_restart'}\"></td>\n";
$odir ||= &find_value("output_dir", $conf, 1);
$sfile = &find_value("access_log", $conf);
if ($sfile || $odir && -r "$odir/index.html") {
- print "<hr>\n";
+ print &ui_hr();
print &ui_buttons_start();
}
if ($sfile) {
}
# Show start/stop buttons
-print "<hr>\n";
+print &ui_hr();
print "<table width=100%>\n";
$cmd = &hostsentry_start_cmd();
if ($pid) {
}
# Show start/stop buttons
-print "<hr>\n";
+print &ui_hr();
print "<table width=100%>\n";
$cmd = &portsentry_start_cmd();
if (@pids) {
$myip = &get_my_address();
$myscan = &address_to_broadcast($myip, 1) if ($myip);
if ($access{'find'} || $access{'auto'}) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_buttons_start();
if ($access{'find'}) {
# Buttons to scan and broadcast for servers
$export = $exports[$in{'idx'}];
$opts = $export->{'opts'};
}
-print "<hr>\n";
+print &ui_hr();
print "<form action=save_export.cgi method=post>\n";
print "<input type=hidden name=new value='$in{'new'}'>\n";
}
print "</tr></table></form>\n";
-print "<hr>\n";
+print &ui_hr();
&footer("", $text{'index_return'});
require './sgiexports-lib.pl';
&header($text{'index_title'}, "", undef, 1, 1, 0,
&help_search_link("exports", "man"));
-print "<hr>\n";
+print &ui_hr();
@exports = &get_exports();
if (@exports) {
}
print "<a href='edit_export.cgi?new=1'>$text{'index_add'}<p>\n";
-print "<hr>\n";
+print &ui_hr();
print "<table width=100%> <tr>\n";
print "<td><form action=apply.cgi>\n";
print "<input type=submit value=\"$text{'index_apply'}\">\n";
print "<td valign=top>$text{'index_applymsg'}</td>\n";
print "</tr> <tr> </table>\n";
-print "<hr>\n";
+print &ui_hr();
&footer("/", $text{'index'});
print &ui_table_start($text{'shell_history'}, "width=100%", 2);
print &ui_table_row(undef, "<pre>$history</pre>", 2);
print &ui_table_end();
- print "<hr>\n";
+ print &ui_hr();
}
print "$text{'index_desc'}<br>\n";
# Check if shorewall is running by looking for the 'shorewall'
# chain in the filter table
- print "<hr>\n";
+ print &ui_hr();
print "<table width=100%>\n";
system("iptables -t filter -L shorewall -n >/dev/null 2>&1");
if ($?) {
print &ui_form_end([ [ "delete", $text{'list_delete'} ] ]);
}
-print "<hr>\n";
+print &ui_hr();
print &ui_buttons_start();
print &ui_buttons_row("manual_form.cgi", $text{'list_manual'},
&text('list_manualdesc',
"<input type=submit name=\"submit\" value=\"$text{'log_viewer_submit'}\">";
print "</p></form>\n";
-print "<hr>\n";
+print &ui_hr();
print "<p><pre>";
print "$data";
print " <input type=submit value=\"$text{'search_instance_go'}\">\n";
print "</form>\n";
if ($got_results == 1) {
- print "<hr>\n";
+ print &ui_hr();
for $svc_info (@svcs_info) {
$fmri = $svc_info->{'FMRI'};
print "<p>\n";
print "</p>\n";
}
} elsif ($got_results == 0) {
- print "<hr>\n";
+ print &ui_hr();
print "<p>$text{'search_instance_noresults'}</p>\n";
}
# Must install and show one by one
foreach $p (@packages) {
# attempt to install
- print "<hr>\n" if ($p ne $packages[0]);
+ print &ui_hr() if ($p ne $packages[0]);
($package, $desc) = split(/\s+/, $p, 2);
&clean_environment();
if ($show_install_progress) {
"delete_file.cgi?file=".
&urlize($in{'file'})),"<p>\n";
}
-print "<hr>\n";
+print &ui_hr();
&ui_print_footer("", $text{'index_return'});
exit;
}
print "</tr></table>\n";
# Show form to install a new package
-print "<hr>\n";
+print &ui_hr();
print &ui_subheading($text{'index_install'});
print &text('index_installmsg', &package_system()),"<p>\n";
# Show search form by file, if supported by package system
if (!$no_package_filesearch) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_subheading($text{'index_ident'});
print &text('index_identmsg', &package_system()),"<p>\n";
print &ui_form_start("file_info.cgi");
}
if ($has_update_system && defined(&update_system_form)) {
- print "<hr>\n";
+ print &ui_hr();
&update_system_form();
}
@packs = &update_system_install($in{'update'}, \%in);
&reset_environment();
- print "<hr>\n" if (@packs);
+ print &ui_hr() if (@packs);
foreach $p (@packs) {
local @pinfo = &show_package_info($p);
}
if ($in{'search'}) {
# Call the rpmfind.net website to get matches
- print "<hr>\n";
+ print &ui_hr();
$out = "";
&http_download($rpmfind_host, $rpmfind_port,
$rpmfind_page.&urlize($in{'search'}), \$out);
&close_auto_whitelist_dbm();
# Show delete buttons
-print "<hr>\n";
+print &ui_hr();
print &ui_buttons_start();
if ($in{'user'} || &supports_auto_whitelist() == 1) {
# Delete for this user
&end_form(undef, $text{'save'});
# Show whitelist import form
-print "<hr>\n";
+print &ui_hr();
print "$text{'white_importdesc'}<p>\n";
print "<form action=import.cgi method=post enctype=multipart/form-data>\n";
print "<table>\n";
# Show buttons for HUPing spamd processes (if any)
if (!$module_info{'usermin'} &&
(@pids = &get_process_pids())) {
- print "<hr>\n";
+ print &ui_hr();
print "<form action=apply.cgi>\n";
print "<table>\n";
print "<tr> <td><input type=submit ",
if (&has_command($config{'squidclient'})) {
# Show form to clear just one URL
- print "<hr>\n";
+ print &ui_hr();
print &ui_form_start("purge.cgi");
print "<b>$text{'clear_url'}</b>\n";
print &ui_textbox("url", undef, 50),"\n";
print "<input type=submit value=$text{'eauth_buttsave'}></form>\n";
if ($authfile) {
- print "<hr>\n";
+ print &ui_hr();
print $text{'eauth_msgaccess'};
print "\n<p>\n";
@users = &list_auth_users($authfile);
print &ui_links_row([ $links[2] ]);
}
-print "<hr>\n";
+print &ui_hr();
print "<form action=save_icp.cgi>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'eicp_cso'}</b></td> </tr>\n";
print "<input type=hidden name=caches value=\"",
join(" ",@caches),"\">\n";
print "</form></center>\n";
- print "<hr>\n";
+ print &ui_hr();
}
else {
&ui_print_header(undef, $text{'index_header'}, "", "intro",
# Show start/stop/apply buttons
if ($config{'restart_pos'} != 1) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_buttons_start();
if ($pid = &is_squid_running()) {
if ($access{'restart'}) {
# Check if sshd is running
$pid = &get_sshd_pid();
-print "<hr>\n";
+print &ui_hr();
print &ui_buttons_start();
if ($pid) {
# Running .. offer to apply changes and stop
}
&show_button();
-print "<hr>\n";
+print &ui_hr();
print &ui_buttons_start();
if ($access{'sched'}) {
# Open scheduled monitoring form
&text('index_version', $ver));
#if ($ver >= 4) {
# print "<p>",&text('index_eversion', $ver, 4.0),"<p>\n";
-# print "<hr>\n";
+# print &ui_hr();
# &ui_print_footer("/", $text{'index'});
# exit;
# }
print &ui_links_row([ $links[2] ]);
}
-print "<hr>\n";
+print &ui_hr();
print "<table width=100%><tr>\n";
print "<form action=apply.cgi>\n";
print "<td><input type=submit value='$text{'index_apply'}'></td>\n";
&icons_table(\@links, \@titles, \@icons, 5);
# Show start/stop buttons
-print "<hr>\n";
+print &ui_hr();
print &ui_buttons_start();
if (&is_syslog_ng_running()) {
print &ui_buttons_row("apply.cgi", $text{'index_apply'},
# Show other module's logs
@others = &get_other_module_logs();
if (@others) {
- print "<hr>\n";
+ print &ui_hr();
print &ui_columns_start([ $text{'destinations_desc'},
$text{'destinations_file'},
"" ]);
# Buttons to restart/start syslogd
if (!$access{'noedit'}) {
- print "<hr>\n";
+ print &ui_hr();
$pid = &get_syslog_pid();
print &ui_buttons_start();
if ($pid) {