<newsletter:master> allow including php files from content/ directory make newsletters.php the default landing page
Dominic Hopf
git-noreply at xxxxx
Fri Apr 8 16:27:03 UTC 2011
Updating branch refs/heads/master
to 090287c0679ab08f6637b4d200e75bbbbd9e8bb8 (commit)
from b385882425bc5cb3d182b90eeeb0a39f1062ae24 (commit)
commit 090287c0679ab08f6637b4d200e75bbbbd9e8bb8
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