-
Notifications
You must be signed in to change notification settings - Fork 9
/
newsletters.php
84 lines (69 loc) · 1.75 KB
/
newsletters.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
* index.php
* Website newsletter.geany.org
*
* (C) Copyright 2011 by Dominic Hopf <[email protected]>
* Version: 1.0.1
* Last Change: 2011-07-20
*/
define('CONTENTPATH','./content/');
if (isset($_GET['site']))
{
if (file_exists(CONTENTPATH . $_GET['site'] . '.html'))
{
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');
}
}
else
{
define('CONTENTFILE', CONTENTPATH . 'newsletters.php');
}
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>Geany Newsletters</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="./img/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="newsletters.php?site=newsletters">Newsletters</a>
</ul>
<hr />
<ul>
<li><a href="newsletters.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/Main/Authors">Geany Team</a>
for questions.</p>
</div>
</body>
</html>