forked from veselcraft/FrogFind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.php
More file actions
64 lines (57 loc) · 2.08 KB
/
about.php
File metadata and controls
64 lines (57 loc) · 2.08 KB
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
<?php
require_once('vendor/autoload.php');
require_once('localization.php');
// Locale things
$locale = new UILocale;
if(isset($_GET['lg'])) {
$_SESSION['lang'] = mb_strtolower($_GET['lg']);
} else if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$_SESSION['lang'] = mb_strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5));
} else {
$_SESSION['lang'] = "ru-ru";
}
$encoding = $locale->trRaw('encoding', $_SESSION['lang']);
function tr($string) {
global $locale;
global $encoding;
return mb_convert_encoding($locale->trRaw($string, $_SESSION['lang']), $encoding, 'UTF-8');
}
header('Content-Type: text/html;charset='.$encoding);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 2.0//EN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<html>
<head>
<title>FrogFind!</title>
</head>
<body>
<form action="/" method="get">
<a href="/"><font size=6 color="#008000">Frog</font><font size=6 color="#000000">Find!</font></a> Leap again: <input type="text" size="30" name="q" value="<?php echo isset($query) ? "" : urldecode($query) ?>">
<input type="submit" value="Ribbbit!">
</form>
<hr>
<br>
<center>
<h1><?= tr('about_what_is_t'); ?></h1>
<small><?= tr('about_faq_short_description'); ?></small>
</center>
<br>
<h3><?= tr('about_who_made_q'); ?></h3>
<?= tr('about_who_made_a'); ?>
<h3><?= tr('about_how_does_q'); ?></h3>
<?= tr('about_how_does_a'); ?>
<h3><?= tr('about_what_machines_do_you_test_q'); ?></h3>
<?= tr('about_what_machines_do_you_test_a'); ?>
<h3><?= tr('about_how_can_i_get_in_touch_q'); ?></h3>
<?= tr('about_how_can_i_get_in_touch_a'); ?>
<center>
<h1><?= tr('about_what_is_frogfindplus_t'); ?></h1>
</center>
<h3><?= tr('about_frogfindplus_whats_difference_q'); ?></h3>
<?= tr('about_frogfindplus_whats_difference_a'); ?>
<h3><?= tr('about_frogfindplus_who_translated_q'); ?></h3>
<?= tr('about_frogfindplus_who_translated_a'); ?>
<h3><?= tr('about_frogfindplus_does_have_source_q'); ?></h3>
<?= tr('about_frogfindplus_does_have_source_a'); ?>
</body>
</html>