forked from albancrommer/lqdn_campagne2012
-
Notifications
You must be signed in to change notification settings - Fork 3
/
all.php
34 lines (25 loc) · 776 Bytes
/
all.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
<?php
list($main)=explode(".",$_SERVER["HTTP_HOST"]);
if ($main=="support") {
/* ROOT url of this page : */
define("ROOTURL","https://support.laquadrature.net/");
$lang="en_US";
}
if ($main=="soutien") {
/* ROOT url of this page : */
define("ROOTURL","https://soutien.laquadrature.net/");
$lang="fr_FR";
}
bindtextdomain("messages", dirname(__FILE__)."/locales");
/* Language ok, set the locale environment */
putenv("LC_MESSAGES=".$lang);
putenv("LANG=".$lang);
putenv("LANGUAGE=".$lang);
// this locale MUST be selected in "dpkg-reconfigure locales"
setlocale(LC_ALL,$lang);
textdomain("messages");
$charset="UTF-8";
bind_textdomain_codeset("messages","$charset");
require_once("functions.php");
require_once("texts.php");
@include_once("config.php");