mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Apply "Squiz" code style on old (pre-2014) files
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
<?php
|
||||
|
||||
#FIXME snmp_ function!
|
||||
$hardware = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
|
||||
$device['hostname'].":".$device['port'] . " sysObjectID.0"));
|
||||
// FIXME snmp_ function!
|
||||
$hardware = trim(
|
||||
exec(
|
||||
$config['snmpget'].' -M '.$config['mibdir'].' -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'].' sysObjectID.0'
|
||||
)
|
||||
);
|
||||
|
||||
$hardware = rewrite_ironware_hardware($hardware);
|
||||
|
||||
$version = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
|
||||
$device['hostname'].":".$device['port'] . " snAgBuildVer.0"));
|
||||
$version = trim(
|
||||
exec(
|
||||
$config['snmpget'].' -M '.$config['mibdir'].' -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB '.snmp_gen_auth($device).' '.$device['hostname'].':'.$device['port'].' snAgBuildVer.0'
|
||||
)
|
||||
);
|
||||
|
||||
$version = str_replace("V", "", $version);
|
||||
$version = str_replace("\"", "", $version);
|
||||
|
||||
?>
|
||||
$version = str_replace('V', '', $version);
|
||||
$version = str_replace('"', '', $version);
|
||||
|
||||
Reference in New Issue
Block a user