<newsletter:master> add index.php

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


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

commit 5de46688ce8283c295e513eaa41995d0bfa13480
Author: Dominic Hopf <dmaphy at fedoraproject.org>
Date:   Sun Mar 13 14:09:57 2011 +0100

    add index.php

 index.php |   79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php
new file mode 100644
index 0000000..6682ad5
--- /dev/null
+++ b/index.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ *      index.php
+ * 		Website newsletter.geany.org
+ *
+ *      (C) Copyright 2011 by Dominic Hopf <dmaphy at googlemail.com>
+ *      Version: 1.0.0
+ *      Last Change: 2011-03-13
+ */
+
+define('CONTENTPATH','./content/');
+
+if (isset($_GET['site']))
+{
+	if (file_exists(CONTENTPATH . $_GET['site'] . '.html'))
+	{
+		define('CONTENTFILE', CONTENTPATH . $_GET['site'] . '.html');
+	}
+
+	else
+	{
+		define('CONTENTFILE', CONTENTPATH . '404.html');
+	}
+}
+
+else
+{
+	define('CONTENTFILE', CONTENTPATH . 'start.html');
+}
+
+print '<?xml version="1.0"?>';
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+	<title>Plugins for Geany</title>
+	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
+	<link rel="stylesheet" type="text/css" href="./stylesheets/mainstyle.css" />
+</head>
+<body>
+	<div id="header">
+		<a href="./">
+		<img src="./images/geany.png" alt="Geany Logo" style="width: 48px; height: 48px; float: left; margin-right: 5%;" /></a>
+		<h1>Geany Newsletters</h1>
+	</div>
+
+	<div id="navigation">
+		<ul>
+			<a href="index.php?site=newsletters">Newsletters</a>
+		</ul>
+
+		<hr />
+
+		<ul>
+			<li><a href="index.php?site=about">About</a></li>
+		</ul>
+
+		<hr />
+
+		<ul>
+			<li><a href="http://geany.org/">Geany</a></li>
+		</ul>
+	</div>
+
+	<div id="content">
+		<?php include_once CONTENTFILE; ?>
+	</div>
+
+	<div id="footer">
+		<p>© Dominic Hopf<br />
+		Contact <a href="http://dominichopf.de/">Dominic Hopf</a> or the
+		<a href="http://www.geany.org/Support/MailingList">Geany Team</a>
+		for questions.</p>
+	</div>
+</body>
+</html>



More information about the Newsletter-Commits mailing list