Diff
Not logged in

Differences From:

File src/style.c part of check-in [f08599e87b] - Fix a privilege problem in the default page header. by drh on 2008-03-03 16:50:12. Also file src/style.c part of check-in [f4aa6d09d3] - Merge to f08599e87b. by aku on 2008-03-05 03:44:12. [view]

To:

File src/style.c part of check-in [c7c81df138] - Add the "Index Page" setup option to allow each site to configure a page to appear when no URL is specified or when the "Home" menu option is selected. by drh on 2008-05-16 13:31:51. [view]

@@ -82,8 +82,9 @@
   /* Generate the header up through the main menu */
   Th_Store("project_name", db_get("project-name","Unnamed Fossil Project"));
   Th_Store("title", zTitle);
   Th_Store("baseurl", g.zBaseURL);
+  Th_Store("index_page", db_get("index-page","/home"));
   Th_Store("manifest_version", MANIFEST_VERSION);
   Th_Store("manifest_date", MANIFEST_DATE);
   if( g.zLogin ){
     Th_Store("login", g.zLogin);
@@ -156,9 +157,9 @@
 @      }
 @   </th1></nobr></div>
 @ </div>
 @ <div class="mainmenu"><th1>
-@ html "<a href='$baseurl/home'>Home</a>"
+@ html "<a href='$baseurl$index_page'>Home</a>"
 @ if {[hascap h]} {
 @   html "<a href='$baseurl/dir'>Files</a>"
 @ }
 @ if {[hascap o]} {