2013-06-14 13:51:44 +02:00
|
|
|
<?php
|
2014-07-15 13:39:22 +02:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
2013-06-14 13:51:44 +02:00
|
|
|
|
2014-11-11 15:22:21 +01:00
|
|
|
define('ICINGAWEB_BASEDIR', dirname(__DIR__));
|
2014-11-12 13:13:39 +01:00
|
|
|
// ICINGAWEB_BASEDIR is the parent folder for at least application, bin, modules, library/vendor and public
|
2014-11-11 15:22:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
if (! @include_once ICINGAWEB_BASEDIR . '/library/Icinga/Application/webrouter.php') {
|
|
|
|
// If the Icinga library wasn't found under ICINGAWEB_BASEDIR, require that the Icinga library is found in PHP's
|
|
|
|
// include path which is the case if Icinga Web 2 is installed via packages
|
|
|
|
require_once 'Icinga/Application/webrouter.php';
|
|
|
|
}
|