svn commit: r50730 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: wosch
Date: Sun Aug 27 17:38:37 2017
New Revision: 50730
URL: https://svnweb.freebsd.org/changeset/doc/50730

Log:
  disable index section and intro links on homepage

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 03:10:37 2017	(r50729)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:38:37 2017	(r50730)
@@ -929,6 +929,10 @@ $want_to_link_to_this_page = 1;
 $enable_include_links = 0;
 $enable_mailto_links  = 0;
 
+my $enable_section_indexes = 0;
+my $enable_intro = 0;
+
+
 #
 # end of config
 #######################################################################################
@@ -1657,19 +1661,23 @@ sub indexpage {
     local ($m) = ( $manpath ? $manpath : $manPathDefault );
     $m = &encode_url($m);
 
+    if ($enable_section_indexes) {
     print "<b><i>Section Indexes</i></b>:\n";
     foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9', 'n' ) {
         print qq{&#164; } if $_ ne '1';
         print
 qq{<a href="$BASE?query=($_)&amp;sektion=&amp;apropos=1&amp;manpath=$m&amp;title=Section%20$_Index">$_</a>\n};
     }
+    }
 
+    if ($enable_intro) {
     print "<br /><b><i>Explanations of Man Sections:</i></b>\n";
     foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9' ) {
         print qq{&#164; } if $_ ne '1';
         print
 qq{<a href="$BASE?query=intro&amp;sektion=$_&amp;apropos=0&amp;manpath=$m&amp;title=Introduction%20Section%20$_">intro($_)</a>\n};
     }
+    }
 
     if (0) {
         print "<br />\n<b><i>Quick Reference Categories:</i></b>\n";
@@ -1689,7 +1697,9 @@ qq{&#164; <a href="$BASE?query=$_&amp;sektion=&amp;apr
 URL:  <a href="$BASE" target="_parent">$www{'home'}$BASE</a><br />
 ETX
 
-    print "<br />\n";
+    if ($enable_section_indexes || $enable_intro) {
+        print "<br />\n";
+    }
     &html_footer( 'no_home_link' => 1 );
 }
 
@@ -1773,9 +1783,10 @@ ETX
 Output format
 </form>
 
+<br/>
 <a href="$BASE?manpath=$m">home</a> |
 <a href="$BASE/help.html">help</a> 
-<hr />
+<hr/>
 ETX
     0;
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.