forked from OCSInventory-NG/OCSInventory-ocsreports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·36 lines (29 loc) · 1.24 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
<?php
//====================================================================================
// OCS INVENTORY REPORTS
// Copyleft Erwan GOALOU 2010
// Web: http://www.ocsinventory-ng.org
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
require("require/fichierConf.class.php");
// Before session_start to allow objects to be unserialized from session
require_once('require/menu/include.php');
require_once('require/config/include.php');
@session_start();
// Magic Quotes :
// This feature has been deprecated as of PHP 5.3 and deleted as of PHP 5.4.
if (get_magic_quotes_gpc()) {
function magicQuotes_awStripslashes(&$value, $key) {$value = stripslashes($value);}
$gpc = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
array_walk_recursive($gpc, 'magicQuotes_awStripslashes');
}
$sleep=1;
$debut = microtime(true);
define('AJAX', false);
require ('require/header.php');
addLog('PAGE',$protectedGet[PAG_INDEX]);
if( !isset($protectedGet["popup"] )&& !isset($protectedGet["no_footer"] ))
require (FOOTER_HTML);