forked from hyphanet/website-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
148 lines (134 loc) · 4.52 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
include 'includes/common.inc.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META name="verify-v1" content="xaEIQxVVIFnpATgCaqfqrDfmoUnHpMhig0LfSGbfIzE=">
<title>The Freenet Project - <?php echo $page ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="<?php echo $lang?>">
<meta name="robots" content="index,follow">
<meta name="description" content="The Free Network Project : A Distributed Anonymous Information Storage and Retrieval System">
<link href="/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function getStyleByElementByID(whichDivId)
{
var elem;
if( document.getElementById ) // this is the way the standards work
elem = document.getElementById( whichDivId );
else if( document.all ) // this is the way old msie versions work
elem = document.all[whichDivId];
else if( document.layers ) // this is the way nn4 works
elem = document.layers[whichDivId];
return elem.style;
}
function hideDiv( whichDivId )
{
getStyleByElementByID(whichDivId).display = 'none';
}
function showDiv( whichDivId )
{
getStyleByElementByID(whichDivId).display = 'inline';
}
</script>
<script type="text/javascript" src="/PluginDetect.js"></script>
<!--[if lt IE 7]><script defer type="text/javascript" src="/js/fixpng.js"></script><![endif]-->
</head>
<body>
<div id="backheader">
<div id="header">
<div id="logo" class="sprites">
<a href="index.html"></a>
</div>
<div id="lang">
<p>
<a <?php if ($lang == "es") echo "id=\"selected-lang\""?> class="drapeau" href="?language=es">es</a>
<a <?php if ($lang == "en") echo "id=\"selected-lang\""?> class="drapeau" href="?language=en">en</a>
<a <?php if ($lang == "fr") echo "id=\"selected-lang\""?> class="drapeau" href="?language=fr">fr</a>
<?php if($lang == "en")
echo "Select your language:";
else if($lang == "es")
echo "Seleccione su idioma:";
else if($lang == "fr")
echo "Sélectionnez votre langue:";
?>
</p>
</div>
</div>
</div>
<?php
// Include language specific menu-file
$menu = selectPage($lang_q, 'menu');
if(file_exists($menu))
{
include("$menu");
}
else
{
include("pages/en/menu.php");
}
?>
<div id="content"><?php include (escapeshellcmd($file)); ?>
</div>
<div id="backfooter">
<div id="footer">
<p>
<b>Contact</b> : Press enquiries should be directed
to <a href="mailto:[email protected]">Ian Clarke</a><br/>
If you've found a problem with this site (broken link, wrong displaying, ...), please <a href="mailto:[email protected]">let us know</a><br/>
This website is licensed under the <a href="https://www.gnu.org/licenses/fdl.html">GNU Free Documentation License</a>
</p>
</div>
</div>
<!-- Google Analytics Code Start -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-354970-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setDomainName', 'freenetproject.org']);
_gaq.push(['_setCustomVar', 'lang', '<?php echo $lang?>', 1]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Google Analytics Code End -->
<!-- Woopra Code Start -->
<script type="text/javascript">
(function(){
var wsc=document.createElement('script');
wsc.src='https://static.woopra.com/js/woopra.v2.js';
wsc.async=true;
var ssc = document.getElementsByTagName('script')[0];
ssc.parentNode.insertBefore(wsc, ssc);
})();
</script>
<script type="text/javascript">
woopraTracker.addVisitorProperty("lang", "<?php echo $lang?>");
woopraTracker.setDomain("freenetproject.org");
woopraTracker.track();
</script>
<!-- Woopra Code End -->
<!-- Uservoice feedback tab -->
<script type="text/javascript">
var uservoiceJsHost = "https://cdn.uservoice.com";
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
</script>
<script type="text/javascript">
UserVoice.Tab.show({
/* required */
key: 'freenet',
host: 'freenet.uservoice.com',
forum: '8861',
/* optional */
alignment: 'left',
background_color:'black',
text_color: 'white',
hover_color: 'blue',
lang: 'en'
})
</script>
</body>
</html>