ui_hr
authorJoe Cooper <joe@virtualmin.com>
Sat, 10 May 2008 03:07:43 +0000 (03:07 +0000)
committerJoe Cooper <joe@virtualmin.com>
Sat, 10 May 2008 03:07:43 +0000 (03:07 +0000)
22 files changed:
grub/index.cgi
heartbeat/index.cgi
hpuxexports/index.cgi
htaccess-htpasswd/index.cgi
inetd/index.cgi
init/edit_hostconfig.cgi
init/index.cgi
inittab/index.cgi
ipfilter/index.cgi
ipfw/index.cgi
ipsec/index.cgi
jabber/index.cgi
ldap-client/index.cgi
ldap-server/edit_slapd.cgi
ldap-server/index.cgi
ldap-useradmin/index.cgi
lilo/index.cgi
logrotate/index.cgi
lpadmin/index.cgi
lvm/edit_lv.cgi
nis/edit_tables.cgi
openslp/index.cgi

index aee0049..5fe1080 100755 (executable)
@@ -40,7 +40,7 @@ else {
        print "<b>$text{'index_none'}</b><p>\n";
        }
 print &ui_links_row(\@crlinks);
-print "<hr>\n";
+print &ui_hr();
 
 print &ui_buttons_start();
 
index 8e27b42..51094cf 100755 (executable)
@@ -77,7 +77,7 @@ if (!-r $config{'req_resource_cmd'}) {
 @icons = map { "images/${_}.gif" } @opts;
 &icons_table(\@links, \@titles, \@icons);
 
-print "<hr>\n";
+print &ui_hr();
 print "<table width=100%><tr>\n";
 
 # Show status
index f459687..cc84fc6 100755 (executable)
@@ -60,7 +60,7 @@ else {
        }
 print "<a href=\"edit_export.cgi?new=1\">$text{'index_add'}</a> <p>\n";
 
-print "<hr>\n";
+print &ui_hr();
 print "<table width=100%> <tr>\n";
 print "<td><form action=restart_mountd.cgi>\n";
 print "<input type=submit value=\"$text{'index_apply'}\">\n";
index 8517a74..3306e55 100755 (executable)
@@ -153,7 +153,7 @@ else {
 
 # Form to find existing .htaccess files
 if ($can_create) {
-       print "<hr>\n";
+       print &ui_hr();
        print &ui_form_start("search.cgi");
        print &ui_submit($text{'index_search'}),"\n";
        print &ui_textbox("search", $accessdirs[0] eq "/" ? "" : $accessdirs[0],
index 9310e0a..d617e08 100755 (executable)
@@ -72,7 +72,7 @@ if (!$config{'show_empty'}) {
        }
 print "</tr></table></form>\n";
 
-print "<hr>\n";
+print &ui_hr();
 print "<a href=\"edit_rpc.cgi?new=1\">$text{'index_newrpc'}</a>. <br>\n";
 print "<table border width=100%>\n";
 print "<tr $tb> <td><b>$text{'index_rpc'}</b></td> </tr>\n";
@@ -107,7 +107,7 @@ foreach $r (@rlist) {
 print "</table></td></tr></table>\n";
 print "<a href=\"edit_rpc.cgi?new=1\">$text{'index_newrpc'}</a>. <p>\n";
 
-print "<hr>\n";
+print &ui_hr();
 print "<form action=restart_inetd.cgi>\n";
 print "<table width=100%> <tr>\n";
 print "<td><input type=submit value=\"$text{'index_apply'}\"></td>\n";
index 7a6d3da..25ac523 100755 (executable)
@@ -40,7 +40,7 @@ if ($ty == 0) {
        
        #create the edit file forms
        if ($startscript ne "") {
-               print "<hr>\n";
+               print &ui_hr();
                print &text('edit_hostconfig_startup',
                        "<tt>$startscript</tt>"),"<br>\n";
                #       }
@@ -54,7 +54,7 @@ if ($ty == 0) {
                print "<input type=submit value='$text{'save'}'></form>\n";
                }
        if ($plistedit ne "") {
-               print "<hr>\n";
+               print &ui_hr();
                print &text('edit_hostconfig_plist',
                        "<tt>$plistedit</tt>"),"<br>\n";
                #       }
@@ -148,7 +148,7 @@ if ($ty == 2) {
        close(LOCAL);
        print "</textarea><br>\n";
        print "<input type=submit value='$text{'save'}'></form>\n";
-       print "<hr>\n";
+       print &ui_hr();
 
        #add reboot and shutdown messages to this page as well...
        print "<table cellpadding=5 width=100%>\n";
index 69caf62..e421651 100755 (executable)
@@ -259,7 +259,7 @@ elsif ($init_mode eq "win32" && $access{'bootup'}) {
                             [ "addboot_start", $text{'index_addboot_start'} ],
                             [ "delboot_stop", $text{'index_delboot_stop'} ],
                            ]);
-       print "<hr>\n";
+       print &ui_hr();
        }
 elsif ($init_mode eq "rc" && $access{'bootup'}) {
        # Show FreeBSD scripts
@@ -296,7 +296,7 @@ elsif ($init_mode eq "rc" && $access{'bootup'}) {
        }
 
 # reboot/shutdown buttons
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 if ($init_mode eq 'init' && $access{'bootup'} == 1) {
        print &ui_buttons_row("change_rl.cgi", $text{'index_rlchange'},
index 9ab39a9..7393328 100755 (executable)
@@ -38,7 +38,7 @@ print &ui_columns_end();
 print &ui_links_row(\@links);
 print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
 
-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{'inittab_apply'}'></td>\n";
index 34e8ab1..857dbfb 100755 (executable)
@@ -131,7 +131,7 @@ elsif (@$rules && !$in{'reset'}) {
        print &ui_form_end();
 
        # Show NAT rules
-       print "<hr>\n";
+       print &ui_hr();
        $natrules = &get_ipnat_config();
        print &ui_form_start("edit_nat.cgi");
        if (@$natrules) {
@@ -207,7 +207,7 @@ elsif (@$rules && !$in{'reset'}) {
        print &ui_form_end();
 
        # Show buttons to apply configuration and start at boot
-       print "<hr>\n";
+       print &ui_hr();
 
        print &ui_buttons_start();
        if (&foreign_check("servers")) {
index ced7cea..8225294 100755 (executable)
@@ -140,7 +140,7 @@ elsif (@$rules && !$in{'reset'}) {
        print &ui_form_end();
 
        # Show buttons to apply configuration and start at boot
-       print "<hr>\n";
+       print &ui_hr();
 
        $atboot = &check_boot();
        print &ui_buttons_start();
index ed15078..572cfce 100755 (executable)
@@ -76,7 +76,7 @@ else {
                        print "<p>\n";
 
                        # Show icons for various options
-                       print "<hr>\n";
+                       print &ui_hr();
                        print &ui_subheading($text{'index_header2'});
                        @links = ( "edit_config.cgi", "showkey.cgi",
                                   "list_secrets.cgi" );
@@ -101,7 +101,7 @@ else {
                                        "$gconfig{'webprefix'}/config.cgi?$module_name"),"</b><p>\n";
                                }
 
-                       print "<hr>\n";
+                       print &ui_hr();
                        print "<table width=100%>\n";
 
                        # Start connection button
index 30a89b4..ee83150 100755 (executable)
@@ -65,7 +65,7 @@ if (@needs) {
        print &text(@needs == 2 ? 'index_emodules' : 'index_emodule', @needs,
            "/cpan/download.cgi?source=3&cpan=$needs&mode=2&return=/$module_name/&returndesc=".&urlize($text{'index_return'})),"<p>\n";
        print "$text{'index_expat'}<p>\n";
-       print "<hr>\n";
+       print &ui_hr();
        &ui_print_footer("/", $text{"index"});
        exit;
        }
@@ -74,7 +74,7 @@ if (@needs) {
 $conf = &get_jabber_config();
 if (!ref($conf)) {
        print &text('index_eparse', "<tt>XML::Parser</tt>", $conf),"<p>\n";
-       print "<hr>\n";
+       print &ui_hr();
        &ui_print_footer("/", $text{"index"});
        exit;
        }
@@ -97,7 +97,7 @@ print "<b>",&text('index_comments',
          "<tt>$config{'jabber_config'}</tt>"),"</b><p>\n" if ($has_comment);
 
 # Check if jabber is running and show the correct buttons
-print "<hr>\n";
+print &ui_hr();
 print "<table width=100%>\n";
 if (&check_pid_file(&jabber_pid_file())) {
        # Running .. offer to restart and stop
index 3c55ee6..e4bd08c 100755 (executable)
@@ -34,7 +34,7 @@ if ($config{'pam_ldap'} && -r $config{'pam_ldap'} && !$config{'nofixpam'} &&
 &icons_table(\@links, \@titles, \@icons, 5);
 
 # Validate button
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 print &ui_buttons_row("check.cgi", $text{'index_check'},
                      $text{'index_checkdesc'});
index bea7054..c9c113a 100644 (file)
@@ -102,7 +102,7 @@ print &ui_hidden_table_end("ssl");
 print &ui_form_end([ [ undef, $text{'save'} ] ]);
 
 # SSL setup button
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 print &ui_buttons_row("gencert_form.cgi", $text{'slapd_gencert'},
                      $text{'slapd_gencertdesc'}.
index fad1dbd..68e99e9 100644 (file)
@@ -51,7 +51,7 @@ if (!$p) {
                                       "<tt>$config{'ldap_user'}</tt>"),"<p>\n";
        print &ui_form_end([ [ undef, $text{'index_perms'} ] ]);
        print "</center>\n";
-       print "<hr>\n";
+       print &ui_hr();
        }
 
 # Check if need to init new install, by creating the root DN
@@ -71,7 +71,7 @@ if ($p && ref($ldap) && $access{'browser'}) {
                print &text('index_setupdesc', "<tt>$base</tt>"),"<p>\n";
                print &ui_form_end([ [ undef, $text{'index_setup'} ] ]);
                print "</center>\n";
-               print "<hr>\n";
+               print &ui_hr();
                }
        }
 
@@ -92,7 +92,7 @@ else {
 
 if ($local == 1) {
        # Show stop/restart buttons
-       print "<hr>\n";
+       print &ui_hr();
        print &ui_buttons_start();
        if (&is_ldap_server_running()) {
                if ($access{'apply'}) {
index fedb068..152f472 100755 (executable)
@@ -193,7 +193,7 @@ else {
 
 # Show groups header
 if ($gcount || $access{'gcreate'}) {
-       print "<hr>\n";
+       print &ui_hr();
        print "<a name=groups></a>\n";
        print "<table width=100% cellpadding=0 cellspacing=0><tr>\n";
        print "<td>".&ui_subheading($text{'index_groups'})."</td>\n";
index 595cd27..b0c17ca 100755 (executable)
@@ -51,7 +51,7 @@ print "<a href='edit_other.cgi?new=1'>$text{'index_addp'}</a><br>\n";
 &icons_table(\@links, \@titles, \@icons, 4);
 print "<a href='edit_image.cgi?new=1'>$text{'index_addk'}</a> &nbsp;\n";
 print "<a href='edit_other.cgi?new=1'>$text{'index_addp'}</a><p>\n";
-print "<hr>\n";
+print &ui_hr();
 
 print "<table width=100%>\n";
 print "<form action=edit_global.cgi>\n";
index aeb15e5..2a95f7c 100755 (executable)
@@ -89,7 +89,7 @@ else {
        }
 
 # Show buttons for editing global config and scheduling
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 print &ui_buttons_row("edit_log.cgi", $text{'index_global'},
                      $text{'index_globaldesc'},
index 8e3dda3..437acc1 100755 (executable)
@@ -184,7 +184,7 @@ else {
        }
 
 # display button to start or stop the scheduler (lpd, lpsched, etc..)
-print "<hr>\n";
+print &ui_hr();
 print &ui_buttons_start();
 $pid = &sched_running();
 if ($pid < 0 || !$access{'stop'}) {
index 6f34236..6695c46 100755 (executable)
@@ -159,7 +159,7 @@ else {
 
 if ($in{'lv'} && !$stat[2] && !$lv->{'is_snap'}) {
        # Show button for creating filesystems
-       print "<hr>\n";
+       print &ui_hr();
        print &ui_buttons_start();
 
        $fstype = $stat[1] || "ext3";
index 458cb3a..92ea41b 100755 (executable)
@@ -128,7 +128,7 @@ else {
        }
 
 if ($config{'manual_build'}) {
-       print "<hr>\n";
+       print &ui_hr();
        print "<table width=100%><tr>\n";
        print "<form action=build.cgi>\n";
        print "<input type=hidden name=table value='$in{'table'}'>\n";
index 6e53377..6b8ef33 100755 (executable)
@@ -46,7 +46,7 @@ if (!-r $config{'slpd_conf'}) {
            "images/dacfg.gif", "images/log.gif" );
 &icons_table(\@links, \@titles, \@icons);
 
-print "<hr>\n";
+print &ui_hr();
 if (&slpd_is_running()) {
   print "<form action=stop.cgi>\n";
   print "<table width=100%><tr><td>\n";