From: Jeroen van Wolffelaar Date: Thu, 2 Feb 2006 11:25:40 +0000 (+0000) Subject: Introduce $SEARCH_CGI X-Git-Tag: switch-to-templates~201 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=05a0c58e9b554213e2b99c0d3f19cfb1e59880e7;p=deb%2Fpackages.git Introduce $SEARCH_CGI --- diff --git a/lib/Packages/HTML.pm b/lib/Packages/HTML.pm index 735302e..65a13f4 100644 --- a/lib/Packages/HTML.pm +++ b/lib/Packages/HTML.pm @@ -23,15 +23,17 @@ our @EXPORT = qw( header title trailer file_changed time_stamp pdeplegend pkg_list pmoreinfo ); our $HOME = "http://www.debian.org"; +our $ROOT = "http://merkel.debian.org/~jeroen/pdo"; # <-- config.sh?! our $CONTACT_MAIL = 'debian-www@lists.debian.org'; our $WEBMASTER_MAIL = 'webmaster@debian.org'; -our $SEARCH_PAGE = "http://packages.debian.org/"; -our $CGI_ROOT = "http://packages.debian.org/cgi-bin"; +our $SEARCH_PAGE = "$ROOT/"; +our $SEARCH_CGI = "$ROOT/search"; +our $CGI_ROOT = "$ROOT/cgi-bin"; our $CN_HELP_URL = "${HOME}/intro/cn"; our $CHANGELOG_URL = '/changelogs'; our $COPYRIGHT_URL = '/changelogs'; -our $SEARCH_URL = '/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords='; -our $SRC_SEARCH_URL = '/cgi-bin/search_packages.pl?searchon=sourcenames&version=all&exact=1&keywords='; +our $SEARCH_URL = "$ROOT/search/"; +our $SRC_SEARCH_URL = "$SEARCH_CGI?searchon=sourcenames&version=all&exact=1&keywords="; our $BUG_URL = 'http://bugs.debian.org/'; our $SRC_BUG_URL = 'http://bugs.debian.org/src:'; our $QA_URL = 'http://packages.qa.debian.org/'; @@ -292,7 +294,7 @@ sub header { sourcenames => "", ); $checked_searchon{$values{searchon}} = "checked=\"checked\""; $search_in_header = < +