This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
444 lines (426 loc) · 21.5 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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<?php
require('function.php');
?>
<!DOCTYPE HTML>
<html lang="fr">
<head>
<!-- Calendar -->
<link rel="stylesheet" type="text/css" href="assets/css/calendar.css">
<script type="text/javascript" src="assets/js/calendar.js"></script>
<!-- Calendar [END] -->
<!-- Calculatrice -->
<script type="text/javascript" src="assets/js/calculatrice.js"></script>
<script type="text/javascript" async="" src="assets/js/mathjs.js"></script>
<link rel="stylesheet" media="screen, print, handheld" type="text/css" href="assets/css/calculatrice.css" />
<!-- Calculatrice [END] -->
<meta charset="utf-8">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FlashSearch | IslandGAME</title>
<meta name="description"
content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps.">
<meta name="Keywords"
content="islandgame,search,gratuit,free,outil,developper,dev,french,francais,gate,portail,vie,privée,open,source,duckduckgo">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<link rel="icon" type="image/png" href="assets/img/favicon.png" />
<!-- OG -->
<meta property="og:url" content="https://islandgame.fr/search">
<meta property="og:image:alt" content="Search Logo Icon">
<meta property="og:site_name" content="FlashSearch | IslandGAME" />
<meta property="og:title" content="FlashSearch - IslandGAME" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://islandgame.fr/search/assets/img/favicon.png" />
<meta property="og:description"
content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps." />
<!-- Twitter Card -->
<meta name="twitter:url" content="https://islandgame.fr/search">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="FlashSearch | IslandGAME" />
<meta name="twitter:title" content="FlashSearch - IslandGAME" />
<meta name="twitter:description"
content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps." />
<meta name="twitter:image" content="https://islandgame.fr/search/assets/img/favicon.png" />
<meta name="theme-color" content="#0b716b">
<!-- Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="green">
<meta name="apple-mobile-web-app-title" content="FlashSearch">
<link rel="apple-touch-icon-precomposed" href="assets/img/favicon.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="assets/img/favicon.png">
<meta name="msapplication-TileColor" content="#0b716b">
<!-- End colors and to homescreen -->
<!-- Bootstrap Core-->
<link type="text/css" rel="stylesheet" href="assets/css/bootstrap.min.css" media="screen,projection" />
<!-- Fork Awesome V1 -->
<link href="assets/css/fork-awesome.min.css" rel="stylesheet">
<!-- OpenSearch -->
<link title="FlashSearch" type="application/opensearchdescription+xml" rel="search"
href="https://islandgame.fr/search/assets/opensearch.xml">
<!-- Stylesheep custom -->
<link async type="text/css" rel="stylesheet" href="assets/css/custom.css">
<link rel="stylesheet" async type="text/css" href="assets/css/add-component.min.css">
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.islandgame.fr"]);
_paq.push(["setDomains", ["*.islandgame.fr"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://islandgame.fr/analytics/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'matomo.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body onLoad="Enter()">
<div class="background d-block d-sm-none">
<div class="container">
<div class="row">
<div class="col-md-8 aligned-to-quotes">
<form action="https://www.duckduckgo.com/?q=" method="GET">
<input type="search" class="form-control card-shadow" placeholder="Recherche avec DuckDuckGo" name="q"
autofocus autocomplete="on">
</form>
</div>
<div class="col-lg-4 col-md-4 col-sm-0">
<div class="card">
<span class="color-gate-text blockquote-guillemet"><i class="fa fa-quote-right"
aria-hidden="true"></i></span>
<div class="card-body card-shadow">
<blockquote class="blockquote mb-0">
<?= randCitation("quotes.json") ?>
</blockquote>
<a class="pointer" data-toggle="modal" data-target="#Quotes"><span class="color-gate-text btn-help"><i
class="fa fa-question-circle" aria-hidden="true"></i></span></a>
<a href="quotes.php"><span class="color-gate-text blockquote-list"><i class="fa fa-list-ul"
aria-hidden="true"></i></span></a>
</div>
</div>
</div>
</div>
<div class="gate-footer">
<p>Background from Unsplash
</p>
</div>
</div>
</div>
<div class="background d-none d-md-block">
<div class="container">
<div class="row">
<div class="col-md-8 aligned-to-quotes">
<form action="https://www.duckduckgo.com/?q=" method="GET" target="_blank">
<input type="search" class="form-control card-shadow" id="BarreDeRecherche"
placeholder="Rechercher avec DuckDuckGo ou avec les réseaux sociaux ci-dessous" name="q" autofocus
autocomplete="on">
</form>
<div class="row">
<div class="col-md-12 aligned-to-quotes text-center text-shadow">
<a class="btn btn-lg reddit-color margin-to-2 card-shadow pointer" onclick="boutonReddit()"
title="Reddit"><i class="fa fa-reddit"></i></a>
<a class="btn btn-lg twitter-color margin-to-2 card-shadow pointer" onclick="boutonTwitter()"
title="Twitter"><i class="fa fa-twitter"></i></a>
<a class="btn btn-lg youtube-color margin-to-2 card-shadow pointer" onclick="boutonYoutube()"
title="YouTube"><i class="fa fa-youtube-play"></i></a>
<a class="btn btn-lg unsplash-color margin-to-2 card-shadow pointer" onclick="boutonUnsplash()"
title="Unsplash"><i class="fa fa-camera"></i></a>
<a class="btn btn-lg wikipedia-color margin-to-2 card-shadow pointer" onclick="boutonWikipedia()"
title="Wikipedia"><i class="fa fa-wikipedia-w"></i></a>
<a class="btn btn-lg soundcloud-color margin-to-2 card-shadow pointer" onclick="boutonSoundcloud()"
title="SoundCloud"><i class="fa fa-soundcloud"></i></a>
<a class="btn btn-lg lastfm-color margin-to-2 card-shadow pointer" onclick="boutonLastfm()"
title="LastFM"><i class="fa fa-lastfm"></i></a>
<a class="btn btn-lg spotify-color margin-to-2 card-shadow pointer" onclick="boutonSpotify()"
title="Spotify"><i class="fa fa-spotify"></i></a>
<a class="btn btn-lg devdocs-color margin-to-2 card-shadow pointer" onclick="boutonDevdocs()"
title="DevDocs"><i class="fa fa-code"></i></a>
<a class="btn btn-lg stackoverflow-color margin-to-2 card-shadow pointer" onclick="boutonStackoverflow()"
title="StackOverflow"><i class="fa fa-stack-overflow"></i></a>
<a class="btn btn-lg github-color margin-to-2 card-shadow pointer" onclick="boutonGithub()"
title="GitHub"><i class="fa fa-github"></i></a>
<a class="btn btn-lg google-color margin-to-2 card-shadow pointer" onclick="boutonGoogle()" title="Google"
target="_blank"><i class="fa fa-google"></i></a>
</div>
</div>
<div class="alert alert-warning alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fa fa-warning"></i>Développement</h5>
<h6>Cette page est en développement, elle va donc subir d'énorme mise à jour dans le futur !<br /> Vous
pouvez suivre le dévellopement sur <a target="_blank"
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a></h6>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-0">
<div class="card d-none d-md-block">
<div class="card-body card-shadow horloge">
<span id="date_heure"></span><br />
<h6 class="Timer-Heure"><?= $date = date("d/m/Y"); ?></h6>
<h6><noscript>Veuillez activer Javascript pour l'horloge et les boutons. </noscript></h6>
<a class="pointer" data-toggle="modal" data-target="#Time"><span class="color-gate-text btn-help"
title="Informations"><i class="fa fa-question-circle" aria-hidden="true"></i></span></a>
</div>
</div>
<div class="card">
<span class="color-gate-text blockquote-guillemet"><i class="fa fa-quote-right"
aria-hidden="true"></i></span>
<div class="card-body card-shadow">
<blockquote class="blockquote mb-0">
<?= randCitation("quotes.json") ?>
</blockquote>
<a class="pointer" data-toggle="modal" data-target="#Quotes"><span class="color-gate-text btn-help"
title="Informations"><i class="fa fa-question-circle" aria-hidden="true"></i></span></a>
<a href="quotes.php"><span class="color-gate-text blockquote-list" title="Liste des citations"><i
class="fa fa-list-ul" aria-hidden="true"></i></span></a>
</div>
</div>
<div class="card">
<div class="card-body card-shadow">
<a class="pointer" data-toggle="modal" data-target="#Calc"><span class="color-gate-text btn-calc"
title="Calculatrice"><i class="fa fa-calculator" aria-hidden="true"></i></span></a>
<!-- <a class="pointer" data-toggle="modal" data-target="#Calendar"><span style="left: 75px" class="color-gate-text btn-calendar" title="Calendrier"><i class="fa fa-calendar-o" aria-hidden="true"></i></span></a> -->
<!-- <a class="pointer" data-toggle="modal" data-target="#News"><span style="left: 45px" class="color-gate-text btn-news" title="Actualité"><i class="fa fa-newspaper-o" aria-hidden="true"></i></span></a> -->
<!-- <a class="pointer" data-toggle="modal" data-target="#Maps"><span style="left: 105px" class="color-gate-text btn-maps" title="Carte"><i class="fa fa-map-o" aria-hidden="true"></i></span></a> -->
<a class="pointer" data-toggle="modal" data-target="#Settings"><span style="right: 10px"
class="color-gate-text btn-settings"><i class="fa fa-cog" aria-hidden="true"></i></a></span>
</div>
</div>
</div>
</div>
<div class="gate-footer">
<p>Background from Unsplash | Version <?php include('VERSION'); ?></p>
</div>
</div>
</div>
<!-- Page Info [DISABLE] -->
<div class="modal fade" id="Info" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Informations</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ul>
<li>Developped by <a class="color-gate-text" href="https://thomasbnt.fr/" target="_blank">Thomas Bnt</a> &
<a class="color-gate-text" href="https://luchack.fr/" target="_blank">Luc'HACK</a>- Version <span
class="color-gate-text"><?php include('VERSION'); ?></span></li>
<li>Background recovered randomly from <a class="color-gate-text"
href="https://unsplash.com/collections/520359/paysages-background" target="_blank">Unsplash</a></li>
<li>The project is <a class="color-gate-text" href="https://github.com/thomasbnt/The-Gate" target="_blank"
rel="noopener">open source</a>, and <a class="color-gate-text"
href="https://github.com/thomasbnt/The-Gate#how-to-use-the-gate" target="_blank" rel="noopener">help is
at your fingertips</a>.</li>
<li>See all quotes <a class="color-gate-text" href="quotes.php">here</a>.</li>
<li>The CSS (stylesheet) is under <a href="https://thomasbnt.fr/cgu/" class="color-gate-text"
target="_blank" rel="noopener">TOS</a>
<li>Thanks to <a class="color-gate-text"
href="https://github.com/thomasbnt/The-Gate/graphs/contributors">all contributors</a> !</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Citation Info -->
<div class="modal fade" id="Quotes" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Citation Info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Les citations sont des phrases stockées dans un fichier.<br />
Vous pouvez en rajouter ou en supprimer grâce à <a
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a>.<br />
Vous pouvez voir la liste des citations <a href="quotes.php">ici</a>.
</div>
</div>
</div>
</div>
<!-- Calendar -->
<div class="modal fade" id="Calendar" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Calendrier</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<h5><i class="icon fa fa-warning"></i>Développement</h5>
<h6>Cette page est en développement, elle va donc subir d'énorme mise à jour dans le futur !<br /> Vous
pouvez suivre le dévellopement sur <a target="_blank"
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a></h6>
</div>
<?php include('p/calendar.php') ?>
</div>
</div>
</div>
</div>
<!-- News -->
<div class="modal fade" id="News" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Actualité</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<h5><i class="icon fa fa-warning"></i>Développement</h5>
<h6>Cette page est en développement, elle va donc subir d'énorme mise à jour dans le futur !<br /> Vous
pouvez suivre le dévellopement sur <a target="_blank"
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a></h6>
</div>
<?= include('/p/news.php') ?>
</div>
</div>
</div>
</div>
<!-- Carte -->
<div class="modal fade" id="Maps" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Carte</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<h5><i class="icon fa fa-warning"></i>Développement</h5>
<h6>Cette page est en développement, elle va donc subir d'énorme mise à jour dans le futur !<br /> Vous
pouvez suivre le dévellopement sur <a target="_blank"
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a></h6>
</div>
<?= include('p/maps.php') ?>
</div>
</div>
</div>
</div>
<!-- Calculatrice -->
<div class="modal fade" id="Calc" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Calculatrice</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<?php include('p/calc.php') ?>
</div>
</div>
</div>
</div>
<!-- Horloge Info -->
<div class="modal fade" id="Time" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Horloge Info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
L'horloge affiche l'heure et la date actuelle.
</div>
</div>
</div>
</div>
<!-- Settings Panel -->
<div class="modal fade" id="Settings" tabindex="-1" role="dialog" aria-labelledby="ModalInfo" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ModalInfo">Paramètre(s)</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-warning">
<h5><i class="icon fa fa-warning"></i>Développement</h5>
<h6>Cette page est en développement, elle va donc subir d'énorme mise à jour dans le futur !<br /> Vous
pouvez suivre le dévellopement sur <a target="_blank"
href="https://github.com/IslandGAMEgrp/search.islandgame.fr">Github</a></h6>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script defer src="assets/js/popper.min.js"></script>
<script defer src="assets/js/bootstrap.min.js"></script>
<script defer src="assets/js/cache-polyfill.js"></script>
<!----- For Stats, delete me! ----->
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.islandgame.fr"]);
_paq.push(["setDomains", ["*.islandgame.fr"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://analytics.islandgame.fr/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'matomo.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js').then(function (registration) {
console.log('Service worker registration succeeded:', registration);
}, function (error) {
console.log('Service worker registration failed:', error);
});
} else {
console.log('Service workers are not supported.');
}
</script>
<!-- Init -->
<script type="text/javascript" src="assets/js/init.js"></script>
<!-- L'heure tourne .. -->
<script type="text/javascript">
window.onload = date_heure('date_heure');
</script>
</body>
</html>