enable OpenSearch plugins

This commit is contained in:
Wolfram Schneider 2008-09-22 19:13:42 +00:00
parent e53fe4dcfe
commit a64554027d
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=32943
3 changed files with 11 additions and 8 deletions

View file

@ -33,8 +33,8 @@
# BSDI Id: bsdi-man,v 1.2 1995/01/11 02:30:01 polk Exp
# Dual CGI/Plexus mode and new interface by sanders@bsdi.com 9/22/1995
#
# $Id: man.cgi,v 1.221 2008-09-21 19:07:43 wosch Exp $
# $FreeBSD: www/en/cgi/man.cgi,v 1.220 2008/08/07 08:30:32 wosch Exp $
# $Id: man.cgi,v 1.222 2008-09-22 19:13:42 wosch Exp $
# $FreeBSD: www/en/cgi/man.cgi,v 1.221 2008/09/21 19:07:43 wosch Exp $
############################################################################
# !!! man.cgi is stale perl4 code !!!
@ -519,6 +519,7 @@ sub html_header {
my $html_meta = q|
<meta name="robots" content="nofollow" />
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
<link rel="search" type="application/opensearchdescription+xml" href="http://www.freebsd.org/search/opensearch/man.xml" title="FreeBSD Manpages" />
<style type="text/css">
<!--
b { color: #996600; }
@ -1331,7 +1332,7 @@ sub faq {
}
local $id =
'$FreeBSD: www/en/cgi/man.cgi,v 1.220 2008/08/07 08:30:32 wosch Exp $';
'$FreeBSD: www/en/cgi/man.cgi,v 1.221 2008/09/21 19:07:43 wosch Exp $';
return qq{\
<pre>
Copyright (c) 1996-2008 <a href="$mailtoURL">Wolfram Schneider</a>

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl -T
#
# Copyright (c) 1996-2007 Wolfram Schneider <wosch@FreeBSD.ORG>
# Copyright (c) 1996-2008 Wolfram Schneider <wosch@FreeBSD.ORG>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -24,7 +24,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: www/en/cgi/ports.cgi,v 1.95 2007/08/02 18:28:26 wosch Exp $
# $FreeBSD: www/en/cgi/ports.cgi,v 1.96 2007/08/02 18:30:21 wosch Exp $
#
# ports.cgi - search engine for FreeBSD ports
# o search for a port by name or description
@ -36,6 +36,7 @@ require "./cgi-style.pl";
$t_style = qq`<style type="text/css">
h3 { font-size: 1.2em; border-bottom: thin solid black; }
</style>
<link rel="search" type="application/opensearchdescription+xml" href="http://www.freebsd.org/search/opensearch/ports.xml" title="FreeBSD Ports" />
`;
sub init_variables {
@ -514,10 +515,10 @@ sub footer {
print qq{
<img align="right" src="$hsty_base/gifs/powerlogo.gif" alt="Powered by FreeBSD" />
&copy; 1996-2007 by Wolfram Schneider. All rights reserved.<br />
&copy; 1996-2008 by Wolfram Schneider. All rights reserved.<br />
};
#print q{$FreeBSD: www/en/cgi/ports.cgi,v 1.95 2007/08/02 18:28:26 wosch Exp $} . "<br />\n";
#print q{$FreeBSD: www/en/cgi/ports.cgi,v 1.96 2007/08/02 18:30:21 wosch Exp $} . "<br />\n";
print qq{Please direct questions about this service to
<i><a href="$mailtoURL">$mailto</a></i><br />\n};
print qq{General questions about FreeBSD ports should be sent to }

View file

@ -26,7 +26,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.63 2007/12/17 17:46:05 shaun Exp $
# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.64 2008/01/26 15:53:55 shaun Exp $
#
#
@ -242,6 +242,7 @@ $fmt{'break'} = "<br />\n";
# From cgi-style.pl
$main::t_style = "<link href=\"${stylesheet}\" rel=\"stylesheet\" type=\"text/css\" />";
$main::t_style .= qq{\n<link rel="search" type="application/opensearchdescription+xml" href="http://www.freebsd.org/search/opensearch/query-pr.xml" title="FreeBSD Bugs" />\n};
#-----------------------------------------------------------------------