mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove user-facing references to Observium
This eliminates nearly all of the user-facing references to Observium, including in the names of temporary files and in the metadata of PDFs. Many of these may not be used any more, but I've adjusted them anyway. These changes should also make it easier to change the branding later if it is needed. There are a few references of which I still don't understand the significance, so I've left them as-is for now. The Unix agent in particular is rather untidy.
This commit is contained in:
10
irc.php
10
irc.php
@@ -28,12 +28,12 @@ include_once('Net/SmartIRC.php');
|
||||
mysql_close();
|
||||
|
||||
# Redirect to /dev/null or logfile if you aren't using screen to keep tabs
|
||||
echo "Observium Bot Starting ...\n";
|
||||
echo $config['project_name'] . "IRC bot starting ...\n";
|
||||
echo "\n";
|
||||
echo "Timestamp Command\n";
|
||||
echo "----------------- ------- \n";
|
||||
|
||||
class observiumbot
|
||||
class ircbot
|
||||
{
|
||||
|
||||
///
|
||||
@@ -58,7 +58,7 @@ class observiumbot
|
||||
{
|
||||
global $config;
|
||||
|
||||
$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, "Observium Version " . $config['version']);
|
||||
$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $config['project_name_version']);
|
||||
|
||||
echo date("m-d-y H:i:s ");
|
||||
echo "VERSION\t\t". $config['version'] . "\n";
|
||||
@@ -243,7 +243,7 @@ if (!$device) {
|
||||
}
|
||||
}
|
||||
|
||||
$bot = &new observiumbot();
|
||||
$bot = &new ircbot();
|
||||
$irc = &new Net_SmartIRC();
|
||||
$irc->setUseSockets(TRUE);
|
||||
|
||||
@@ -257,7 +257,7 @@ $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '.log', $bot, 'log_info');
|
||||
$irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '.help', $bot, 'help_info');
|
||||
|
||||
$irc->connect($config['irc_host'], $config['irc_port']);
|
||||
$irc->login($config['irc_nick'], 'Observium Bot', 0, $config['irc_nick']);
|
||||
$irc->login($config['irc_nick'], $config['project_name'] . ' Bot', 0, $config['irc_nick']);
|
||||
$irc->join($config['irc_chan']);
|
||||
$irc->listen();
|
||||
$irc->disconnect();
|
||||
|
||||
Reference in New Issue
Block a user