-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
57 lines (53 loc) · 1.61 KB
/
index.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
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$content = "";
require_once("html.php");
if (!empty($_REQUEST['page'])){
$page = $_REQUEST['page'];
switch ($page) {
case "howto" :
$content = getHowToContent();
break;
case "snippets" :
$content = getSnippetsContent();
break;
case "tools" :
$content = getToolsContent();
break;
case "imprint" :
$content = getImprintContent();
break;
}
} else {
require_once("color.php");
$content = getColoringContent($iri, $hexColor, $error);
}
$html =
'
<html>
<head>
<link rel="stylesheet" href="color.css" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="content">
<div id="links">
<a href="index.php">Home</a> |
<a href="index.php?page=howto">HowTo</a> |
<a href="index.php?page=snippets">Snippets</a> |
<a href="index.php?page=tools">Tools</a> |
<a href="index.php?page=imprint">Imprint</a>
</div>
<div style="clear:both"></div>
<h1>Color the Linked Data Web!</h1>
'.$content.'
</div>
<div id="footer">
CoLD was made for the Aprils Fools\'Day 2013 and is an extension of <a href="http://linkedopencolors.moreways.net/">Linked Open Colors</a>, which was an informal initiative for promoting Linked Data (Aprils Fools\'Day 2011).
</div>
</div>
</body>
</html>
';
echo $html;
?>