<newsletter:master> allow including php files from content/ directory make newsletters.php the default landing page

Frank Lanitz git-noreply at xxxxx
Sun Apr 3 16:45:05 UTC 2011


Updating branch refs/heads/master
         to df3cfb610f56b153e2d130c29bc4a06bced35a51 (commit)
       from 5de46688ce8283c295e513eaa41995d0bfa13480 (commit)

commit df3cfb610f56b153e2d130c29bc4a06bced35a51
Author: Dominic Hopf <dmaphy at fedoraproject.org>
Date:   Sun Mar 13 14:13:44 2011 +0100

    allow including php files from content/ directory
    make newsletters.php the default landing page

 index.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/index.php b/index.php
index 6682ad5..c2c68b5 100644
--- a/index.php
+++ b/index.php
@@ -17,6 +17,11 @@ if (isset($_GET['site']))
 		define('CONTENTFILE', CONTENTPATH . $_GET['site'] . '.html');
 	}
 
+	elseif (file_exists(CONTENTPATH . $_GET['site'] . '.php'))
+	{
+		define('CONTENTFILE', CONTENTPATH . $_GET['site'] . '.php');
+	}
+
 	else
 	{
 		define('CONTENTFILE', CONTENTPATH . '404.html');
@@ -25,7 +30,7 @@ if (isset($_GET['site']))
 
 else
 {
-	define('CONTENTFILE', CONTENTPATH . 'start.html');
+	define('CONTENTFILE', CONTENTPATH . 'newsletters.php');
 }
 
 print '<?xml version="1.0"?>';



More information about the Newsletter-Commits mailing list