forked from OpenRailwayMap/OpenRailwayMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
62 lines (58 loc) · 2 KB
/
config.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
<?php
/*
OpenRailwayMap Copyright (C) 2012 Alexander Matheisen
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
See https://wiki.openstreetmap.org/wiki/OpenRailwayMap for details.
*/
// email address to send error reports to
$mail = "[email protected]";
// base part of the server url, must end with '/'
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
$urlbase = 'https://';
$defaultport = 443;
} else {
$urlbase = 'http://';
$defaultport = 80;
}
$urlbase .= $_SERVER['SERVER_NAME'];
if ($_SERVER['SERVER_PORT'] != $defaultport)
$urlbase .= ':' . $_SERVER['SERVER_PORT'];
unset($defaultport);
$urlbase .= $_SERVER['CONTEXT_PREFIX'];
$subdir = dirname(substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['CONTEXT_DOCUMENT_ROOT'])));
if ($subdir === '.')
$subdir = '';
$urlbase .= $subdir . '/';
unset($subdir);
$langs = array(
"ca" => array("ca_ES", "Català"),
"cs" => array("cs_CZ", "Česky"),
"da" => array("da_DK", "Dansk"),
"de" => array("de_DE", "Deutsch"),
"el" => array("el_GR", "Ελληνικά"),
"en" => array("en_GB", "English"),
"es" => array("es_ES", "Español"),
"fi" => array("fi_FI", "Suomi"),
"fr" => array("fr_FR", "Français"),
"hu" => array("hu_HU", "Magyar"),
"ja" => array("ja_JP", "日本語"),
"lt" => array("lt_LT", "Lietuvių"),
"nl" => array("nl_NL", "Nederlands"),
"nqo" => array("nqo_GN", "ߒߞߏ"),
"pl" => array("pl_PL", "Polski"),
"pt" => array("pt_PT", "Português"),
"ru" => array("ru_RU", "Русский"),
"sl" => array("sl_SI", "Slovenščina"),
"sv" => array("sv_SE", "Svenska"),
"tr" => array("tr_TR", "Türkçe"),
"uk" => array("uk_UA", "Українська"),
"vi" => array("vi_VN", "Tiếng Việt"),
"zh_CN" => array("zh_CN", "简体中文"),
"zh_TW" => array("zh_TW", "正體中文")
);
// name of application
$appname = "OpenRailwayMap";
// useragent used for curl requests
$useragent = "openrailwaymap.org";
?>