2010-09-03 18:26:59 +00:00
|
|
|
#!/usr/bin/env php
|
2010-06-13 18:27:38 +00:00
|
|
|
<?php
|
2015-07-13 20:10:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 <singh@devilcode.org>
|
2014-03-07 22:33:00 +01:00
|
|
|
* Modified and Relicensed by <f0o@devilcode.org> under the expressed
|
|
|
|
* permission by the Copyright-Holder <singh@devilcode.org>.
|
2015-07-13 20:10:26 +02:00
|
|
|
*
|
2014-03-07 22:33:00 +01:00
|
|
|
* 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, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2015-07-13 20:10:26 +02:00
|
|
|
*
|
2014-03-07 22:33:00 +01:00
|
|
|
* 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.
|
2015-07-13 20:10:26 +02:00
|
|
|
*
|
2014-03-07 22:33:00 +01:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2015-07-13 20:10:26 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* */
|
2012-05-09 10:01:42 +00:00
|
|
|
|
2016-09-14 10:53:04 -05:00
|
|
|
chdir(__DIR__); // cwd to the directory containing this script
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
require_once 'includes/defaults.inc.php';
|
|
|
|
require_once 'config.php';
|
|
|
|
require_once 'includes/definitions.inc.php';
|
|
|
|
require_once 'includes/functions.php';
|
|
|
|
require_once 'includes/discovery/functions.inc.php';
|
2016-09-12 17:24:22 +01:00
|
|
|
require_once 'html/includes/authentication/'.$config['auth_mechanism'].'.inc.php';
|
2014-03-07 22:33:00 +01:00
|
|
|
error_reporting(E_ERROR);
|
|
|
|
|
2016-08-28 15:53:52 -05:00
|
|
|
$irc = new LibreNMS\IRCBot();
|