Skip to content

Commit

Permalink
ui_hr
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed May 10, 2008
1 parent 742a1cd commit e0775a4
Show file tree
Hide file tree
Showing 31 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion samba/edit_fshare.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion samba/edit_pshare.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
8 changes: 4 additions & 4 deletions samba/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -253,23 +253,23 @@ 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);
}

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 "<td>$text{'index_startmsg'}</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";
Expand Down
2 changes: 1 addition & 1 deletion sarg/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sentry/edit_hostsentry.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sentry/edit_portsentry.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion servers/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sgiexports/edit_export.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -93,6 +93,6 @@ else {
}
print "</tr></table></form>\n";

print "<hr>\n";
print &ui_hr();
&footer("", $text{'index_return'});

6 changes: 3 additions & 3 deletions sgiexports/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -28,14 +28,14 @@ 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";
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'});

2 changes: 1 addition & 1 deletion shell/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion shorewall/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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 ($?) {
Expand Down
2 changes: 1 addition & 1 deletion shorewall/list.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion smf/log_viewer.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions smf/search_instance.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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";
print "<a href=\"instance_viewer.cgi?fmri='$fmri'\">$fmri</a>";
print "</p>\n";
}
} elsif ($got_results == 0) {
print "<hr>\n";
print &ui_hr();
print "<p>$text{'search_instance_noresults'}</p>\n";
}

Expand Down
4 changes: 2 additions & 2 deletions software/do_install.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions software/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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");
Expand All @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion software/install_pack.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion software/rpmfind.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion spam/edit_awl.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spam/edit_white.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion spam/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand Down
2 changes: 1 addition & 1 deletion squid/clear.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion squid/edit_auth.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion squid/edit_icp.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions squid/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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'}) {
Expand Down
2 changes: 1 addition & 1 deletion sshd/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion status/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ else {
}
&show_button();

print "<hr>\n";
print &ui_hr();
print &ui_buttons_start();
if ($access{'sched'}) {
# Open scheduled monitoring form
Expand Down
4 changes: 2 additions & 2 deletions stunnel/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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;
# }
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion syslog-ng/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down
2 changes: 1 addition & 1 deletion syslog-ng/list_destinations.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
"" ]);
Expand Down
2 changes: 1 addition & 1 deletion syslog/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e0775a4

Please sign in to comment.