1<?php
2/*
3 * Copyright 2005-2016 OCSInventory-NG/OCSInventory-ocsreports contributors.
4 * See the Contributors file for more details about them.
5 *
6 * This file is part of OCSInventory-NG/OCSInventory-ocsreports.
7 *
8 * OCSInventory-NG/OCSInventory-ocsreports is free software: you can redistribute
9 * it and/or modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation, either version 2 of the License,
11 * or (at your option) any later version.
12 *
13 * OCSInventory-NG/OCSInventory-ocsreports is distributed in the hope that it
14 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with OCSInventory-NG/OCSInventory-ocsreports. if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21 * MA 02110-1301, USA.
22 */
23
24// Check for mbstring before loading session and conf data
25if (!extension_loaded('mbstring')) {
26    die("Please install php mbstring extension");
27}
28
29require("require/fichierConf.class.php");
30
31// Before session_start to allow objects to be unserialized from session
32require_once('require/menu/include.php');
33require_once('require/config/include.php');
34
35@session_start();
36
37$debut = microtime(true);
38
39// Is it an AJAX call ? (ajax.php)
40if (!defined('AJAX')) {
41    define('AJAX', false);
42}
43
44require ('require/header.php');
45addLog('PAGE', $protectedGet[PAG_INDEX]);
46
47if (!AJAX && !isset($protectedGet["popup"]) && !isset($protectedGet["no_footer"])) {
48    require (FOOTER_HTML);
49}