Hi Baba. Actually, this change might not be a good idea. There is
no problem on the main site, but we also use this code on our remote
server pdb.finkproject.org. On that site, these menu items need to
point back to fink.sourceforge.net. So unless $root is going to get
defined there *not* to mean the local root, but instead to be a URL
point back to sourceforge, this change will break the remote site.
(Just in case you aren't aware: we run the pdb on this remote site,
and it uses the same codebase as the original server.)
-- Dave
On Feb 23, 2006, at 9:48 PM, BABA Yoshihiko wrote:
Update of /cvsroot/fink/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12541
Modified Files:
header.inc
Log Message:
tidy up
Index: header.inc
===================================================================
RCS file: /cvsroot/fink/web/header.inc,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- header.inc 25 Oct 2005 01:01:48 -0000 1.95
+++ header.inc 24 Feb 2006 05:48:10 -0000 1.96
@@ -57,6 +57,7 @@
define (FINK_SECTION_FAQ, 'F.A.Q.');
define (FINK_SECTION_DOCUMENTATION, 'Documentation');
define (FINK_SECTION_MAILING_LISTS, 'Mailing Lists');
+define (FINK_SECTION_LANG_SPECIFIC, 'Language Specific');
/* The Home Subsections. Used in Menu Navigation Bar */
define (FINK_SECTION_HOME_INDEX, 'Index');
@@ -98,14 +99,17 @@
'mailing-lists' => FINK_SECTION_MAILING_LISTS
);
+// Set the default $root
+if (!$root) $root='./';
+
$section_files = array(
- 'home' => 'http://fink.sourceforge.net/index.php?phpLang='.
$lang_code,
- 'download' => 'http://fink.sourceforge.net/download/index.php?
phpLang='. $lang_code,
- 'packages' => 'http://pdb.finkproject.org/pdb/index.php?
phpLang='. $lang_code,
- 'help' => 'http://fink.sourceforge.net/help/index.php?phpLang='.
$lang_code,
- 'faq' => 'http://fink.sourceforge.net/faq/index.php?phpLang='.
$lang_code,
- 'documentation' => 'http://fink.sourceforge.net/doc/index.php?
phpLang='. $lang_code,
- 'mailing-lists' => 'http://fink.sourceforge.net/lists/index.php?
phpLang='. $lang_code
+ 'home' => $root . 'index.php',
+ 'download' => $root . 'download/index.php',
+ 'packages' => 'http://pdb.finkproject.org/pdb/index.php',
+ 'help' => $root . 'help/index.php',
+ 'faq' => $root . 'faq/index.php',
+ 'documentation' => $root . 'doc/index.php',
+ 'mailing-lists' => $root . 'lists/index.php'
);
if (!$section) $section = "home";
@@ -113,11 +117,11 @@
// main navigation box
if (!is_array($navbox) && $nonav != 1) {
$navbox = array(
- 'index.php?phpLang='. $lang_code, FINK_SECTION_HOME_INDEX,
- 'news/index.php?phpLang='. $lang_code, FINK_SECTION_HOME_NEWS,
- 'about.php?phpLang='. $lang_code, FINK_SECTION_HOME_ABOUT,
- 'people.php?phpLang='. $lang_code,
FINK_SECTION_HOME_CONTRIBUTORS,
- 'links.php?phpLang='. $lang_code, FINK_SECTION_HOME_LINKS
+ 'index.php', FINK_SECTION_HOME_INDEX,
+ 'news/index.php', FINK_SECTION_HOME_NEWS,
+ 'about.php', FINK_SECTION_HOME_ABOUT,
+ 'people.php', FINK_SECTION_HOME_CONTRIBUTORS,
+ 'links.php', FINK_SECTION_HOME_LINKS
);
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel