Diff
Not logged in

Differences From:

File src/style.c part of check-in [afcdc7ec97] - Add the "leaves" webpage and the "branches" CLI command. We need to work on the nomenclature. by drh on 2007-08-01 12:49:41. [view]

To:

File src/style.c part of check-in [4f641e7e4e] - The /index webpage pulls up the wiki page specified in Setup/Configuration.s by drh on 2007-09-02 01:23:13. Also file src/style.c part of check-in [bbcb6326c9] - Pulled in the navbar and timeline changes. by aku on 2007-09-17 00:58:51. [view]

@@ -134,11 +134,18 @@
 ** WEBPAGE: home
 ** WEBPAGE: not_found
 */
 void page_index(void){
-  style_header("Main Title Page");
-  @ This will become the title page
-  style_footer();
+  char *zHome = db_get("homepage", 0);
+  if( zHome ){
+    g.zExtra = zHome;
+    g.okRdWiki = 1;
+    wiki_page();
+  }else{
+    style_header("Main Title Page");
+    @ No homepage configured for this server
+    style_footer();
+  }
 }
 
 /*
 ** WEBPAGE: test_env