forked from volpino/Manypedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
234 lines (227 loc) · 13.9 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<?php
if (isset($_GET["_escaped_fragment_"])) {
$vars = explode("|", htmlspecialchars(urldecode($_GET["_escaped_fragment_"])));
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://manypedia.com/".$vars[1]."/".$vars[2]."/".$vars[3]);
die();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php include("db_functions.php"); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
<?php
if (isset($_GET["lang1"]) && isset($_GET["lang1"]) && isset($_GET["page"])) {
echo 'Manypedia - Comparing page "'. htmlspecialchars($_GET["page"]).'" ('.htmlspecialchars($_GET["lang1"]).'|'.htmlspecialchars($_GET["lang2"]).')';
}
else {
echo "Manypedia - Comparing Linguistic Points Of View (LPOV) of different language Wikipedias!";
}
?>
</title>
<meta name="generator" content="vim" />
<meta name="author" content="fox"/>
<meta name="description" content="Manypedia is a tool to compare different Linguistic Points Of View (LPOV) across different language Wikipedias" />
<meta name="keywords" content="manypedia,lpov,compare,wikipedia,languages,language,cross-cultural,analysis,jquery,toolserver,statistics,tag" />
<!--
<meta property="og:image" content="http://manypedia.com/img/manypedia_logo.png" />
<meta property="og:description" content="Manypedia is a tool to compare different Linguistic point of view across different language Wikipedias" />
-->
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="style_wiki.css" rel="stylesheet" type="text/css" />
<script src="https://www.google.com/jsapi?key=ABQIAAAAMzzSSWDhjeTnoqeE_IchWhS76WXARIgmns88qvycGcR5BzD59xRgACa5fDWFCZAqwafrsKvxGW_Tlw" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.history.js"></script>
<link rel="stylesheet" href="jquery.autocomplete.css" type="text/css" />
<script type="text/javascript" src="jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="jquery.dimensions.js"></script>
<script type="text/javascript" src="jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="jquery.safeEnter.js"></script>
<script type="text/javascript" src="jquery.cookies.js"></script>
<script type="text/javascript" src="jquery.dynacloud.js"></script>
<script type="text/javascript" src="stopwords.js"></script>
<script type="text/javascript" src="jquery.tableofcontents.min.js"></script>
<link href="facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="facebox/facebox.js" type="text/javascript"></script>
<script src="jquery.toptips.js" type="text/javascript"></script>
<script type="text/javascript" src="script.js"></script>
<?php
if (isset($_GET["lang1"]) && isset($_GET["lang1"]) && isset($_GET["page"])) {
echo '<script type="text/javascript">';
echo '$.History.go("|'. htmlspecialchars($_GET["lang1"]).'|'.htmlspecialchars($_GET["page"]).'|'.htmlspecialchars($_GET["lang2"]).'");';
echo '</script>';
}
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-56174-20']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-56174-22']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var uvOptions = {};
(function() {
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/5oeCTpBp8sGFZv6Ow6gx8A.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
})();
</script>
</head>
<body>
<noscript>
<div class="noscript">
Please enable Javascript in order to use this wep app!
</div>
</noscript>
<div class="noscript" id="warnIE">
<b>Warning:</b> You're visiting Manypedia using the browser "Internet explorer". Manypedia is much faster and better if you use <a href=\"www.getfirefox.net/\">Mozilla Firefox</a> or <a href=\"http://www.google.com/chrome\">Google Chrome</a>. Please download <a href=\"www.getfirefox.net/\">Firefox</a> or <a href=\"http://www.google.com/chrome\">Chrome</a>, if Manypedia is slow (which is likely).
</div>
<div id="main">
<div id="header">
<div id="search_div">
<label for="search"><img src="img/magnifier.png" alt="magnifier" />Search</label>
<input type="text" name="search" id="search" />
<label for="main_select">in the </label>
<select id="main_select" name="main_select">
<option value="en">English Wikipedia</option>
<option value="fr">French Wikipedia</option>
<option value="es">Spanish Wikipedia</option>
<option value="it">Italian Wikipedia</option>
<option value="de">German Wikipedia</option>
<option value="zh">Chinese Wikipedia</option>
<option value="ar">Arabic Wikipedia</option>
<option value="da">Danish Wikipedia</option>
<option value="nl">Dutch Wikipedia</option>
<option value="af">Afrikaans Wikipedia</option>
<option value="sq">Albanian Wikipedia</option>
<option value="be">Belarusian Wikipedia</option>
<option value="bg">Bulgarian Wikipedia</option>
<option value="ca">Catalan Wikipedia</option>
<option value="hr">Croatian Wikipedia</option>
<option value="cs">Czech Wikipedia</option>
<option value="et">Estonian Wikipedia</option>
<option value="tl">Filipino Wikipedia</option>
<option value="fi">Finnish Wikipedia</option>
<option value="gl">Galician Wikipedia</option>
<option value="el">Greek Wikipedia</option>
<option value="ht">Haitian Creole Wikipedia</option>
<option value="he">Hebrew Wikipedia</option>
<option value="hi">Hindi Wikipedia</option>
<option value="hu">Hungarian Wikipedia</option>
<option value="is">Icelandic Wikipedia</option>
<option value="id">Indonesian Wikipedia</option>
<option value="ga">Irish Wikipedia</option>
<option value="ja">Japanese Wikipedia</option>
<option value="ko">Korean Wikipedia</option>
<option value="lv">Latvian Wikipedia</option>
<option value="lt">Lithuanian Wikipedia</option>
<option value="mk">Macedonian Wikipedia</option>
<option value="ms">Malay Wikipedia</option>
<option value="mt">Maltese Wikipedia</option>
<option value="no">Norwegian Wikipedia</option>
<option value="fa">Persian Wikipedia</option>
<option value="pl">Polish Wikipedia</option>
<option value="pt">Portuguese Wikipedia</option>
<option value="ro">Romanian Wikipedia</option>
<option value="ru">Russian Wikipedia</option>
<option value="sr">Serbian Wikipedia</option>
<option value="sk">Slovak Wikipedia</option>
<option value="sl">Slovenian Wikipedia</option>
<option value="sw">Swahili Wikipedia</option>
<option value="sv">Swedish Wikipedia</option>
<option value="tl">Tagalog Wikipedia</option>
<option value="th">Thai Wikipedia</option>
<option value="tr">Turkish Wikipedia</option>
<option value="uk">Ukrainian Wikipedia</option>
<option value="vi">Vietnamese Wikipedia</option>
<option value="cy">Welsh Wikipedia</option>
<option value="yi">Yiddish Wikipedia</option>
</select>
<input type="submit" value="Go" id="go" /><br/>
<label for="lang_select">Compare with the </label>
<select id="lang_select" name="lang_select">
<option value="">Choose language Wikipedia to be compared</option>
</select>
</div>
<div id="most_searched">
<table>
<tr>
<td><b>Popular</b></td>
<td><b>Latest</b></td>
<td><b>Featured</b></td>
</tr>
<tr>
<td><?php echo most_searched(); ?></td>
<td><?php echo last_searched(); ?></td>
<td><?php echo get_featured(); ?></td>
</tr>
</table>
</div>
<div id="magnifier">
<span class="tagline_left"><img style="width:15px;" src="img/arrow.gif" alt="search" /> Move here to search another page to compare</span><span class="tagline">Manypedia! - <em>"Comparing Linguistic Points Of View (LPOV) of different language Wikipedias!"</em></span><span class="tagline_right">
<iframe src="http://www.facebook.com/plugins/like.php?app_id=238278506201020&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FManypedia%2F202808583098332&send=false&layout=button_count&width=30&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:22px;"></iframe>
<a href="#" onclick="help();">Help</a> | <a href="#about" onclick="get_about()" rel="facebox">About/FAQ</a></span>
</div>
</div>
<div id="title_div">
</div>
<div id="container">
<div id="comparison_index"></div>
<div id="page1_container">
<div id="page1_header">
<h3 id="page1_title"></h3>
<div id="page1_info">
<div id="img1"></div>
<div id="stats1"></div>
<div id="tag_cloud1"></div>
</div>
</div>
<div id="page1">
</div>
<div id="source1"></div>
</div>
<div id="page2_container">
<div id="page2_header">
<h3 id="page2_title"></h3>
<div id="page2_info">
<div id="img2"></div>
<div id="stats2"></div>
<div id="tag_cloud2"></div>
</div>
</div>
<div id="page2">
</div>
<div id="source2"></div>
</div>
</div>
<div id="site_footer">
<p>Manypedia is a project of <a href="http://www.gnuband.org">Paolo Massa</a> and <a href="http://autistici.org/fox/">Federico "fox" Scrinzi</a> of <a href="http://sonet.fbk.eu">SoNet group at FBK</a>. We love but are not affiliated with Wikipedia. <a href="https://github.com/SoNetFBK/Manypedia">Manypedia is free software</a> under Affero GPL. Manypedia content is released under <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike License</a>.<img alt="CC" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" /> <a href="#about" rel="facebox" onclick="get_about();">Read more</a>.</p>
</div>
</div>
<div id="about" style="display:none;">
<p>Loading...Please wait <img src='img/indicator.gif' alt='loading...' /></p>
</div>
<div id="loading" style="display:none;"><p>Loading user stats...Please wait <img src='img/indicator.gif' alt='loading...' /></p></div>
</body>
</html>
<?php
session_start();
?>