* 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. * * 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. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * Package Search * @author Daniel Preussker * @copyright 2014 f0o, LibreNMS * @license GPL * @package LibreNMS * @subpackage Search */ print_optionbar_start(28); ?>
0) { $results = $_POST['results']; } else { $results = 50; } ?>
$entry) { $vers = array(); $arch = array(); $devs = array(); foreach ($entry as $variation) { $variation['version'] = str_replace(":", ".", $variation['version']); if (!in_array($variation['version'], $vers) && (empty($ver) || version_compare($variation['version'], $ver, $opt))) { $vers[] = $variation['version']; } if (!in_array($variation['arch'], $arch)) { $arch[] = $variation['arch']; } if (!in_array($variation['hostname'], $devs)) { unset($variation['version']); $devs[] = generate_device_link($variation); } } if (sizeof($arch) > 0 && sizeof($vers) > 0) { ?> 0 && $count != $results) { ?>
Packages
Package Version Arch Device
', $vers); ?> ', $arch); ?> ', $devs); ?>