-
Notifications
You must be signed in to change notification settings - Fork 51
/
check.php
319 lines (285 loc) · 8.69 KB
/
check.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<?php
session_start();
/* ========================================================================
* Open eClass 3.0
* E-learning and Course Management System
* ========================================================================
* Copyright 2003-2011 Greek Universities Network - GUnet
* A full copyright notice can be read in "/info/copyright.txt".
* For a full list of contributors, see "credits.txt".
*
* Open eClass is an open platform distributed in the hope that it will
* be useful (without any warranty), under the terms of the GNU (General
* Public License) as published by the Free Software Foundation.
* The full license can be read in "/info/license/license_gpl.txt".
*
* Contact address: GUnet Asynchronous eLearning Group,
* Network Operations Center, University of Athens,
* Panepistimiopolis Ilissia, 15784, Athens, Greece
* e-mail: [email protected]
* ======================================================================== */
define('HIDE_TOOL_TITLE', 1);
require_once 'include/baseTheme.php';
$pageName = $langCheckTools;
load_js('check.js');
$head_content .= <<<hContent
<style type="text/css">
ul.menu {
list-style-type: none;
padding: 0;
margin-top: 10px;
margin-left: 10px;
text-align: left;
font-size: 9pt;
}
li.mie {
height: 20px;
background-image: url(template/classic/img/check/ie.png);
background-repeat: no-repeat;
background-position: 0 .1em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 0px;
margin-bottom: 4px;
margin-top: 0px;
}
li.mfir {
height: 20px;
background-image: url(template/classic/img/check/firefox.png);
background-repeat: no-repeat;
background-position: 0 .1em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 0px;
margin-bottom: 4px;
margin-top: 0px;
}
li.msaf {
height: 20px;
background-image: url(template/classic/img/check/safari.png);
background-repeat: no-repeat;
background-position: 0 .06em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 0px;
margin-bottom: 4px;
margin-top: 0px;
}
li.mchr {
height: 20px;
background-image: url(template/classic/img/check/chrome.png);
background-repeat: no-repeat;
background-position: 0 .05em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 0px;
margin-bottom: 4px;
margin-top: 0px;
}
li.moper {
height: 20px;
background-image: url(template/classic/img/check/opera.png);
background-repeat: no-repeat;
background-position: 0 .09em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 0px;
margin-bottom: 8px;
margin-top: 0px;
}
.divmenu {
margin-left: 0px;
}
ul.fmenu {
list-style-type: none;
padding: 0;
margin: 0;
text-align: left;
font-size: 9pt;
margin-top: 5px;
}
li.mflash {
height: 20px;
background-image: url(template/classic/img/check/FlashPlayer.png);
background-repeat: no-repeat;
background-position: 0 .1em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 10px;
margin-bottom: 8px;
margin-top: 5px;
height: 20px;
}
ul.smenu {
list-style-type: none;
padding: 0;
margin: 0;
text-align: left;
font-size: 9pt;
margin-top: 5px;
}
li.sflash {
height: 20px;
background-image: url(template/classic/img/check/Shockwave.png);
background-repeat: no-repeat;
background-position: 0 .1em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 10px;
margin-bottom: 8px;
margin-top: 5px;
height: 20px;
}
div.divpdfmenu {
margin-top: 5px;
}
ul.pdfmenu {
list-style-type: none;
padding: 0;
margin: 0;
text-align: left;
font-size: 9pt;
}
li.mpdf {
height: 20px;
background-image: url(template/classic/img/check/acrobat_reader.png);
background-repeat: no-repeat;
background-position: 0 .1em;
padding: 0px 0px 0px 20px;
margin: 1em 0;
margin-left: 10px;
margin-bottom: 8px;
margin-top: 0px;
}
#divmenu {
margin-top: 5px;
}
#divfmenu {
margin-top: 5px;
}
</style>
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready(function() {
check();
});
/* ]]> */
</script>
hContent;
$tool_content .= <<<tContent
<div id="checkcontainer">
<div style="font-size: 10pt; text-align: justify; margin-left: 20px; margin-right: 20px;">
<p style="font-size: 10pt; font-weight: bold;">$langCheckTools</p><br/>
<p>$langCheckIntro</p><br/>
<p>$langCheckIntro2</p>
<br />
<table class="tbl_alt">
<tbody>
<tr>
<th width="50%"><strong>$langSoftware</strong></th>
<th width="50%"><strong>$langCheck</strong></th>
</tr>
<tr class="even">
<td><strong><span style="font-size: 9pt;">$langBrowser:</span></strong>
<div class="divmenu">
<ul class="menu">
<li class="mie">$langIE</li>
<li class="mfir">$langFirefox</li>
<li class="msaf">$langSafari</li>
<li class="mchr">$langChrome</li>
<li class="moper">$langOpera</li>
</ul>
</div></td>
<td>
<p id="browsersupported" style="display: none; color: green; font-size: 11px;">
<img src="template/classic/img/tick_1.png" border="0" alt="browser supported"/> $langBrowserSupported
</p>
<p id="browsernotsupported" style="display: none; color: red; font-size: 11px;">
<img src="template/classic/img/error.png" border="0" alt="browser not supported"/> $langBrowserNotSupported:<br /> <br />
<a href="http://www.microsoft.com/windows/internet-explorer/worldwide-sites.aspx" target="_blank">Internet Explorer</a><br />
<a href="http://www.mozilla.org" target="_blank">Mozilla Firefox</a><br />
<a href="http://www.apple.com/safari/" target="_blank">Safari</a><br />
<a href="http://www.google.com/chrome/eula.html" target="_blank">Chrome</a>
</p>
</td>
</tr>
<tr class="odd">
<td><strong><span style="font-size: 9pt;">PDF Reader:</span></strong>
<div class="divpdfmenu">
<ul class="pdfmenu">
<li class="mpdf">$langAcrobatReader</li>
</ul>
</div>
</td>
<td>
<p id="acrobatreaderinstalled" style="display: none; color: green; font-size: 11px;">
<img src="template/classic/img/tick_1.png" border="0" alt="acrobat reader installed"/> $langAcrobatReaderInstalled
</p>
<p id="acrobatreadernotinstalled" style="display: none; color: red; font-size: 11px;">
<img src="template/classic/img/error.png" border="0" alt="acrobat reader not installed"/> $langAcrobatReaderNotInstalled
<a href="http://get.adobe.com/reader/" target="_blank">$langHere</a>.
$langAgreeAndInstall
</p>
</td>
</tr>
<tr class="even">
<td><strong><span style="font-size: 9pt;">Video player:</span></strong>
<div class="divfmenu">
<ul class="fmenu">
<li class="mflash">$langFlashPlayer</li>
</ul>
</div></td>
<td>
<p id="flashplayerinstalled" style="display: none; color: green; font-size: 11px;">
<img src="template/classic/img/tick_1.png" border="0" alt="flash player installed"/> $langFlashPlayer
</p>
<p id="flashplayernotinstalled" style="display: none; color: red; font-size: 11px;">
<img src="template/classic/img/error.png" border="0" alt="flash player not installed"/> $langFlashPlayerNotInstalled
<a href="http://get.adobe.com/flashplayer/" target="_blank">$langHere</a>.
$langAgreeAndInstall
</p>
</td>
</tr>
<tr class="odd">
<td><strong><span style="font-size: 9pt;">Multimedia player:</span></strong>
<div class="divfmenu">
<ul class="smenu">
<li class="sflash">Adobe Shockwave Player</li>
</ul>
</div></td>
<td>
<p id="shockinstalled" style="display: none; color: green; font-size: 11px;">
<img src="template/classic/img/tick_1.png" border="0" alt="shockwave installed"/> $langShockInstalled
</p>
<p id="shocknotinstalled" style="display: none; color: red; font-size: 11px;">
<img src="template/classic/img/error.png" border="0" alt="shockwave not installed"/> $langShockNotInstalled
<a href="http://get.adobe.com/shockwave/" target="_blank">$langHere</a>.
$langAgreeAndInstall
</p>
</td>
</tr>
</tbody>
</table>
<br /> <br />
<div id="notOK" style="text-align: justify;">
<div style="text-align: justify;">
<strong>$langCheckNotOk1</strong>
</div>
<div style="text-align: justify;">
<ol>
<li class="myLi">$langCheckNotOk2</li>
<li class="myLi">$langCheckNotOk3</li>
<li class="myLi">$langCheckNotOk4 <a href="check.php">$langHere</a>.
$langCheckNotOk5
</li>
</ol>
</div>
</div>
<p id="OK" style="display: none; text-align: justify;">
<strong>$langCheckOk</strong>
</p>
<br />
</div>
</div>
tContent;
draw($tool_content, 0, null, $head_content);