diff --git a/index.php b/index.php
index e2c810b38cc41d4fbe820e49c535c6f557c56f9f..ff7a1e3a11d4588d26c8b217961bbd6bf4a534e5 100644
--- a/index.php
+++ b/index.php
@@ -5,6 +5,7 @@
 
 page_header();
 
+eval(variable_get("site_frontpage_extra", "") .";");
 $function = variable_get("site_frontpage", "node") ."_page";
 $function();
 
diff --git a/modules/system.module b/modules/system.module
index 09d7615ed2dd474b1dadd39b3cdb9a0c434fd28e..e6c92496a363cd2a72ad91be17e82c68c06884ac 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -38,6 +38,7 @@ function system_view_options() {
   $output .= form_textfield("Password words", "account_words", variable_get("account_words", "foo,bar,guy,neo,tux,moo,sun,asm,dot,god,axe,geek,nerd,fish,hack,star,mice,warp,moon,hero,cola,girl,fish,java,perl,boss,dark,sith,jedi,drop,mojo"), 55, 256, "Words used in the creation of passwords. Comma seperated list.");
   foreach (module_list() as $name) { if (module_hook($name, "page")) $pages[$name] = $name; }
   $output .= form_select("Default front page", "site_frontpage", variable_get("site_frontpage", "node"), $pages, "The default front page.");
+  $output .= form_textfield("Extra front page settings", "site_frontpage_extra", variable_get("site_frontpage_extra", ""), 55, 128, "Lets you define additonal variables for the main page in PHP.");
   $output .= "<hr />\n";
 
   // caching:
diff --git a/modules/system/system.module b/modules/system/system.module
index 09d7615ed2dd474b1dadd39b3cdb9a0c434fd28e..e6c92496a363cd2a72ad91be17e82c68c06884ac 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -38,6 +38,7 @@ function system_view_options() {
   $output .= form_textfield("Password words", "account_words", variable_get("account_words", "foo,bar,guy,neo,tux,moo,sun,asm,dot,god,axe,geek,nerd,fish,hack,star,mice,warp,moon,hero,cola,girl,fish,java,perl,boss,dark,sith,jedi,drop,mojo"), 55, 256, "Words used in the creation of passwords. Comma seperated list.");
   foreach (module_list() as $name) { if (module_hook($name, "page")) $pages[$name] = $name; }
   $output .= form_select("Default front page", "site_frontpage", variable_get("site_frontpage", "node"), $pages, "The default front page.");
+  $output .= form_textfield("Extra front page settings", "site_frontpage_extra", variable_get("site_frontpage_extra", ""), 55, 128, "Lets you define additonal variables for the main page in PHP.");
   $output .= "<hr />\n";
 
   // caching: