-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (32 loc) · 1.51 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
<?php
require_once 'vendor/autoload.php';
use FileListPoker\Main\Site;
use FileListPoker\Main\Dictionary;
use FileListPoker\Renderers\FullPageRenderer;
use Symfony\Component\HttpFoundation\Response;
$site = new Site();
$renderer = new FullPageRenderer($site);
$htmlout = $renderer->renderPage('index.php');
if ($site->getLanguage() == Dictionary::LANG_RO) {
$text =
'<article><p>Acest site conține toate informațiile legate de clubul de poker FileList.
Aici puteți găsi tot: de la numărul de puncte al unui jucător, până la evoluția în timp a
numărului de participanți a turneelor; de la statistici legate de premii și bonus-uri până la
totalul punctelor cheltuite de către toți membrii.</p>
<p>Puteți răsfoi în voie. Enjoy.</p></article>';
} else if ($site->getLanguage() == Dictionary::LANG_EN) {
$text =
'<article><p>This site contains all the informations regarding the FileList poker club.
You can find everything here: the number of points of a player, the evolution in time of the
total number of players registered in a tournament. You can even find statistics about bonuses,
prizes and the total number of points spent by the club members.</p>
<p>You may browse to any page. Enjoy.</p></article>';
}
$htmlout = str_replace(
array('{content_type_id}', '{page_content}', '{bottom_page_scripts}'),
array('content', $text, ''),
$htmlout
);
$site->response->setContent($htmlout);
$site->response->setStatusCode(Response::HTTP_OK);
$site->response->send();