-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.php
165 lines (149 loc) · 5.31 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?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-3.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 == "en") echo "id=\"selected-lang\""?> class="drapeau" href="?language=en">en</a>
<a <?php if ($lang == "de") echo "id=\"selected-lang\""?> class="drapeau" href="?language=de">de</a>
<a <?php if ($lang == "es") echo "id=\"selected-lang\""?> class="drapeau" href="?language=es">es</a>
<a <?php if ($lang == "fr") echo "id=\"selected-lang\""?> class="drapeau" href="?language=fr">fr</a>
<a <?php if ($lang == "zh-cn") echo "id=\"selected-lang\""?> class="drapeau" href="?language=zh-cn">zh-cn</a>
<a <?php if ($lang == "ru") echo "id=\"selected-lang\""?> class="drapeau" href="?language=ru">ru</a>
<a <?php if ($lang == "pt-br") echo "id=\"selected-lang\""?> class="drapeau" href="?language=pt-br">pt-br</a>
<?php if($lang == "en")
echo "Select your language:";
else if($lang == "de")
echo "Wählen Sie Ihre Sprache:";
else if($lang == "es")
echo "Seleccione su idioma:";
else if($lang == "fr")
echo "Sélectionnez votre langue:";
else if($lang == "zh-cn")
echo "选择你的语言:";
else if($lang == "ru")
echo "Выберите язык:";
else if($lang == "pt-br")
echo "Selecione seu idioma:";
?>
</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: <span class="e-mail" data-user="sserp" data-website="gro.tcejorpteneerf"></span>
If you've found a problem with this site please let us know: <span class="e-mail" data-user="troppus" data-website="gro.tcejorpteneerf"></span>
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 woopraReady(tracker){
tracker.addVisitorProperty("lang", "<?php echo $lang?>");
tracker.setDomain("freenetproject.org");
tracker.setDomain('yourdomain.com');
tracker.setIdleTimeout(300000);
tracker.track();
return false;
}
(function(){
var wsc=document.createElement('script');
wsc.type='text/javascript';
wsc.src=document.location.protocol+'//static.woopra.com/js/woopra.js';
wsc.async=true;
var ssc = document.getElementsByTagName('script')[0];
ssc.parentNode.insertBefore(wsc, ssc);
})();
</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>