-
Notifications
You must be signed in to change notification settings - Fork 206
/
facilities.inc.php
53 lines (40 loc) · 1.69 KB
/
facilities.inc.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
<?php
/*
openDCIM
This is the main class library for the openDCIM application, which
is a PHP/Web based data center infrastructure management system.
This application was originally written by Scott A. Milliken while
employed at Vanderbilt University in Nashville, TN, as the
Data Center Manager, and released under the GNU GPL.
Copyright (C) 2011 Scott A. Milliken
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
For further details on the license, see http://www.gnu.org/licenses
*/
/* Master include file - while all could fit easily into this one include,
for the sake of modularity and ease of checking out portions for multiple
developers, functions have been split out into more granular groupings.
*/
/* Avoid timezone related error with slim */
if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'America/Chicago');
}
if ( isset( $config ) && property_exists( $config, "ParameterArray" ) ){
date_default_timezone_set($config->ParameterArray['timezone']);
} elseif ( getenv("TZ") != "" ) {
date_default_timezone_set( getenv("TZ"));
}
// Pull in the Composer autoloader
require_once( __DIR__ . "/vendor/autoload.php" );
require_once( "version.php" );
require_once( "misc.inc.php" );
// SNMP Library, don't attempt to load without php-snmp extensions
if(extension_loaded('snmp')){
require_once('OSS_SNMP/SNMP.php');
}
?>