forked from RiiConnect24/Site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
66 lines (56 loc) · 1.38 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
<?php
require getcwd() . '/vendor/autoload.php'; // Composer
require '_core.php';
# Recommended Sites Internet Channel.
if (isset($_GET["l"]) || isset($_GET["c"]))
{
if ($_GET["l"] == "fr")
{
if ($_GET["C"] == "US")
{
header("Location: http://riiconnect24.net/content/US_FR/recommended_links_FR.html");
}
else if ($_GET["C"] == "CA")
{
header("Location: http://riiconnect24.net/content/CA_FR/recommended_links_FR.html");
}
else
{
header("Location: http://riiconnect24.net/content/LA_EN/recommended_links.html");
}
}
else if ($_GET["l"] == "es")
{
if ($_GET["C"] == "US")
{
header("Location: http://riiconnect24.net/content/US_SP/recommended_links_SP.html");
}
else
{
header("Location: http://riiconnect24.net/content/LA_SP/recommended_links.html");
}
}
else if ($_GET["l"] == "en")
{
if ($_GET["C"] == "US")
{
header("Location: http://riiconnect24.net/content/US_EN/recommended_links.html");
}
else if ($_GET["C"] == "CA")
{
header("Location: http://riiconnect24.net/content/CA_EN/recommended_links.html");
}
else
{
header("Location: http://riiconnect24.net/content/LA_EN/recommended_links.html");
}
}
else
{
header("Location: http://riiconnect24.net/content/LA_EN/recommended_links.html");
}
}
$twig = rc24_initialise_twig();
echo $twig->render('index.html');
exit; // not really necessary, but nice to have :^)
?>