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,20 +1,15 @@
|
||||
<?php
|
||||
|
||||
$serial = "";
|
||||
#list(,$hardware,) = explode(" ", $hardware);
|
||||
$serial = '';
|
||||
// list(,$hardware,) = explode(" ", $hardware);
|
||||
$hardware = $poll_device['sysDescr'];
|
||||
|
||||
$features = "";
|
||||
$features = '';
|
||||
|
||||
// Filthy hack to get software version. may not work on anything but 585v7 :)
|
||||
$loop = shell_exec($config['snmpget'].' -M '.$config['mibdir'].' -Ovq '.snmp_gen_auth($device).' '.$device['hostname'].' ifDescr.101');
|
||||
|
||||
$loop = shell_exec($config['snmpget'] . " -M ".$config['mibdir'] . ' -Ovq '. snmp_gen_auth($device) .' '.$device['hostname'].' ifDescr.101');
|
||||
|
||||
if ($loop)
|
||||
{
|
||||
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i',
|
||||
$loop, $matches);
|
||||
if ($loop) {
|
||||
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
|
||||
$version = $matches[1];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user