mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
## Include from PEAR
|
||||
/// Include from PEAR
|
||||
|
||||
include_once("Net/IPv4.php");
|
||||
include_once("Net/IPv6.php");
|
||||
|
||||
## Observium Includes
|
||||
/// Observium Includes
|
||||
|
||||
include_once($config['install_dir'] . "/includes/common.php");
|
||||
include_once($config['install_dir'] . "/includes/rrdtool.inc.php");
|
||||
@@ -183,7 +183,7 @@ function renamehost($id, $new, $source = 'console')
|
||||
{
|
||||
global $config;
|
||||
|
||||
## FIXME does not check if destination exists!
|
||||
/// FIXME does not check if destination exists!
|
||||
$host = dbFetchCell("SELECT `hostname` FROM `devices` WHERE `device_id` = ?", array($id));
|
||||
rename($config['rrd_dir']."/$host",$config['rrd_dir']."/$new");
|
||||
$return = dbUpdate(array('hostname' => $new), 'devices', 'device_id=?', array($id));
|
||||
|
||||
Reference in New Issue
Block a user