ui_hr
authorJoe Cooper <joe@virtualmin.com>
Sat, 10 May 2008 03:02:21 +0000 (03:02 +0000)
committerJoe Cooper <joe@virtualmin.com>
Sat, 10 May 2008 03:02:21 +0000 (03:02 +0000)
31 files changed:
samba/edit_fshare.cgi
samba/edit_pshare.cgi
samba/index.cgi
sarg/index.cgi
sentry/edit_hostsentry.cgi
sentry/edit_portsentry.cgi
servers/index.cgi
sgiexports/edit_export.cgi
sgiexports/index.cgi
shell/index.cgi
shorewall/index.cgi
shorewall/list.cgi
smf/log_viewer.cgi
smf/search_instance.cgi
software/do_install.cgi
software/index.cgi
software/install_pack.cgi
software/rpmfind.cgi
spam/edit_awl.cgi
spam/edit_white.cgi
spam/index.cgi
squid/clear.cgi
squid/edit_auth.cgi
squid/edit_icp.cgi
squid/index.cgi
sshd/index.cgi
status/index.cgi
stunnel/index.cgi
syslog-ng/index.cgi
syslog-ng/list_destinations.cgi
syslog/index.cgi

index 741463b..e9660ff 100755 (executable)
@@ -126,7 +126,7 @@ if ($s) {
                $disp++;
                }
        if ($disp) {
-               print "<hr>\n";
+               print &ui_hr();
                print &ui_subheading($text{'share_option'});
                &icons_table(\@url, \@text, \@icon);
                }
index 0627139..2a8be95 100755 (executable)
@@ -134,7 +134,7 @@ if ($s) {
         $disp++;
         }
     if ($disp) {
-        print "<hr>\n";
+        print &ui_hr();
         print &ui_subheading($text{'share_option'});
         &icons_table(\@url, \@text, \@icon);
         }
index 95d89c4..092b84e 100755 (executable)
@@ -212,7 +212,7 @@ foreach $i (0..$#gc_acl) {
        }
 
 if ($disp) {
-       print "<hr>\n";
+       print &ui_hr();
        print &ui_subheading($text{'global_title'});
        &icons_table(\@gc_progs1, \@gc_names1, \@gc_icons1, 4);
        }
@@ -253,7 +253,7 @@ if ($samba_version >= 3) {
 
 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);
        }
@@ -261,7 +261,7 @@ if (@utitles) {
 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";
@@ -269,7 +269,7 @@ if ($access{'apply'}) {
                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";
index 6861fd1..330e77e 100755 (executable)
@@ -45,7 +45,7 @@ $odir = &find_value("output_dir", $conf);
 $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) {
index 59a43dc..aae248c 100755 (executable)
@@ -113,7 +113,7 @@ else {
        }
 
 # Show start/stop buttons
-print "<hr>\n";
+print &ui_hr();
 print "<table width=100%>\n";
 $cmd = &hostsentry_start_cmd();
 if ($pid) {
index 9c7e43b..16f5c75 100755 (executable)
@@ -146,7 +146,7 @@ else {
        }
 
 # Show start/stop buttons
-print "<hr>\n";
+print &ui_hr();
 print "<table width=100%>\n";
 $cmd = &portsentry_start_cmd();
 if (@pids) {
index 874296d..d131dfd 100755 (executable)
@@ -100,7 +100,7 @@ if ($access{'edit'}) {
 $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
index fd9eba1..94c1cd3 100755 (executable)
@@ -13,7 +13,7 @@ else {
        $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";
@@ -93,6 +93,6 @@ else {
        }
 print "</tr></table></form>\n";
 
-print "<hr>\n";
+print &ui_hr();
 &footer("", $text{'index_return'});
 
index 0e74afc..3a2b686 100755 (executable)
@@ -5,7 +5,7 @@
 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) {
@@ -28,7 +28,7 @@ else {
        }
 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";
@@ -36,6 +36,6 @@ print "</form></td>\n";
 print "<td valign=top>$text{'index_applymsg'}</td>\n";
 print "</tr> <tr> </table>\n";
 
-print "<hr>\n";
+print &ui_hr();
 &footer("/", $text{'index'});
 
index 80a67b4..de8eb42 100755 (executable)
@@ -90,7 +90,7 @@ if ($history) {
        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";
index 803d121..8e8ee0c 100755 (executable)
@@ -36,7 +36,7 @@ else {
 
                # 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 ($?) {
index 1f12718..bf38486 100755 (executable)
@@ -112,7 +112,7 @@ if (@table) {
        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',
index bb918be..96a1e5c 100755 (executable)
@@ -41,7 +41,7 @@ print
  "<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";
index 62471e5..61ae6a4 100755 (executable)
@@ -40,7 +40,7 @@ print
 print "&nbsp;<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";
@@ -48,7 +48,7 @@ if ($got_results == 1) {
                print "</p>\n";
                }
 } elsif ($got_results == 0) {
-       print "<hr>\n";
+       print &ui_hr();
        print "<p>$text{'search_instance_noresults'}</p>\n";
        }
 
index f3e6153..c4f7046 100755 (executable)
@@ -45,7 +45,7 @@ else {
        # 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) {
@@ -93,7 +93,7 @@ if ($in{'need_unlink'}) {
                "delete_file.cgi?file=".
                &urlize($in{'file'})),"<p>\n";
        }
-print "<hr>\n";
+print &ui_hr();
 &ui_print_footer("", $text{'index_return'});
 exit;
 }
index 81ddc6f..f17fd49 100755 (executable)
@@ -21,7 +21,7 @@ print &ui_form_end();
 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";
 
@@ -51,7 +51,7 @@ print &ui_form_end();
 
 # 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");
@@ -62,7 +62,7 @@ if (!$no_package_filesearch) {
        }
 
 if ($has_update_system && defined(&update_system_form)) {
-       print "<hr>\n";
+       print &ui_hr();
        &update_system_form();
        }
 
index f4f51ba..e357753 100755 (executable)
@@ -76,7 +76,7 @@ elsif ($in{'source'} == 3) {
        @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);
                }
index b5e73d3..143c033 100755 (executable)
@@ -29,7 +29,7 @@ print &ui_form_end();
 
 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);
index de19f12..f945d43 100644 (file)
@@ -100,7 +100,7 @@ else {
 &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
index 3e9af68..3345efe 100755 (executable)
@@ -89,7 +89,7 @@ else {
 &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";
index d2d61ac..1e2a22d 100755 (executable)
@@ -142,7 +142,7 @@ else {
                # 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 ",
index 437d9d6..1bc1dc5 100755 (executable)
@@ -19,7 +19,7 @@ if (!$in{'confirm'}) {
 
        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";
index 233a930..adb0adc 100755 (executable)
@@ -38,7 +38,7 @@ print "</table></td></tr></table>\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);
index f6626f6..4604660 100755 (executable)
@@ -30,7 +30,7 @@ else {
        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";
index c7f25c5..4779fbc 100755 (executable)
@@ -78,7 +78,7 @@ if (!&check_cache($conf, \@caches)) {
        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",
@@ -146,7 +146,7 @@ for($i=0; $i<@otitles; $i++) {
 
 # 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'}) {
index 69d4876..1200b39 100755 (executable)
@@ -91,7 +91,7 @@ push(@icons, "images/manual.gif");
 
 # 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
index 37ed079..b9f3b7b 100755 (executable)
@@ -73,7 +73,7 @@ else {
        }
 &show_button();
 
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 if ($access{'sched'}) {
        # Open scheduled monitoring form
index 2b38ef4..714cd44 100755 (executable)
@@ -28,7 +28,7 @@ $ver = &get_stunnel_version(\$out);
        &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;
 #      }
@@ -120,7 +120,7 @@ else {
        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";
index d9fd4c1..7d65577 100755 (executable)
@@ -31,7 +31,7 @@ if (!-r $config{'syslogng_conf'}) {
 &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'},
index 64ebbef..b84a869 100755 (executable)
@@ -45,7 +45,7 @@ else {
 # 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'},
                                  "" ]);
index ecbc317..35c2b6d 100755 (executable)
@@ -158,7 +158,7 @@ if ($access{'any'}) {
 
 # Buttons to restart/start syslogd
 if (!$access{'noedit'}) {
-       print "<hr>\n";
+       print &ui_hr();
        $pid = &get_syslog_pid();
        print &ui_buttons_start();
        if ($pid) {