-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.php
45 lines (39 loc) · 874 Bytes
/
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
<?php
/**
* LODEL - Logiciel d'Édition ÉLectronique.
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) See COPYING file
* @authors See COPYRIGHT file
*/
/**
* Fichier racine
*/
define('backoffice-lodeladmin', true);
define('backoffice-lodelindex', true);
if (!file_exists("lodelconfig.php")) {
header('location: lodeladmin/install.php');
exit;
}
if (file_exists("siteconfig.php")) {
require 'siteconfig.php';
} else {
require 'lodelconfig.php';
ini_set('include_path', $cfg['home']. PATH_SEPARATOR. ini_get('include_path'));
require 'context.php';
C::setCfg($cfg);
require 'class.errors.php';
}
try
{
include 'auth.php';
authenticate();
//on indique qu'on veut pas le desk
$GLOBALS['nodesk'] = true;
include 'view.php';
View::getView()->renderCached('index');
}
catch(Exception $e)
{
echo $e->getContent();
exit();
}
?>