$USEDBREPLICATE = 1;
$DBCONNECTION_REQUIRED = 0;
$NEEDED_ITEMS = array("search", "computer", "networking");
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
PluginFusioninventoryAuth::checkRight("reports", "r");
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER['PHP_SELF'], "utils", "report");
if (isset($_GET["reset_search"])) {
    resetSearch();
}
if (!isset($_GET["start"])) {
    $_GET["start"] = 0;
}
$_GET = getValues($_GET, $_POST);
displaySearchForm();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_SNMP_NETWORKING_PORTS2);
if (isset($_POST["dropdown_calendar"]) && isset($_POST["dropdown_sup_inf"])) {
    $_GET["field"][0] = 3;
    $_GET["contains"][0] = getContainsArray($_POST);
    $_GET["field"][1] = 2;
    $_GET["contains"][1] = $_POST['location'];
    $_GET["link"][1] = "AND";
    $_SESSION["glpisearchcount"][PLUGIN_FUSIONINVENTORY_SNMP_NETWORKING_PORTS2] = 1;
    showList(PLUGIN_FUSIONINVENTORY_SNMP_NETWORKING_PORTS2, $_GET);
} else {
    showList(PLUGIN_FUSIONINVENTORY_SNMP_NETWORKING_PORTS2, $_GET);
}
commonFooter();
function displaySearchForm()
{
    global $_SERVER, $_GET, $LANG, $CFG_GLPI;
  GLPI 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 2 of the License, or
  (at your option) any later version.

  GLPI 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 GLPI; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  ------------------------------------------------------------------------
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "task");
PluginFusioninventoryDisplay::mini_menu();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_TASK);
$_GET['target'] = "task.php";
searchForm(PLUGIN_FUSIONINVENTORY_TASK, $_GET);
showList(PLUGIN_FUSIONINVENTORY_TASK, $_GET);
commonFooter();
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search", "setup", "rulesengine");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "snmp_auth");
PluginFusioninventoryAuth::checkRight("snmp_authentification", "r");
$config = new PluginFusioninventoryConfig();
PluginFusioninventoryDisplay::mini_menu();
// Forms for FILE
if ($config->getValue("authsnmp") == "file") {
    $plugin_fusioninventory_snmp_auth = new PluginFusioninventorySnmpauth();
    if (!isset($_GET["ID"])) {
        echo $plugin_fusioninventory_snmp_auth->plugin_fusioninventory_snmp_connections();
    }
} else {
    if ($config->getValue("authsnmp") == "DB") {
        // Forms for DB
        $_GET['target'] = "snmp_auth.php";
        manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_SNMP_AUTH);
        searchForm(PLUGIN_FUSIONINVENTORY_SNMP_AUTH, $_GET);
        showList(PLUGIN_FUSIONINVENTORY_SNMP_AUTH, $_GET);
    } else {
        echo $LANG['plugin_fusioninventory']["functionalities"][19];
    }
}
commonFooter();
  GLPI 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 2 of the License, or
  (at your option) any later version.

  GLPI 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 GLPI; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  ------------------------------------------------------------------------
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "rangeip");
PluginFusioninventoryAuth::checkRight("rangeip", "r");
PluginFusioninventoryDisplay::mini_menu();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_SNMP_RANGEIP);
$_GET['target'] = "rangeip.php";
searchForm(PLUGIN_FUSIONINVENTORY_SNMP_RANGEIP, $_GET);
showList(PLUGIN_FUSIONINVENTORY_SNMP_RANGEIP, $_GET);
commonFooter();
if (isset($_GET["reset_search"])) {
    resetSearch();
}
if (!isset($_GET["start"])) {
    $_GET["start"] = 0;
}
$_GET = getValues($_GET, $_POST);
$FK_port = "";
if (isset($_GET["FK_networking_ports"])) {
    $FK_port = $_GET["FK_networking_ports"];
}
if (isset($_GET["contains"][0])) {
    $FK_port = $_GET["contains"][0];
}
displaySearchForm($FK_port);
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_SNMP_HISTORY);
if (isset($_GET["FK_networking_ports"])) {
    $_GET["field"][0] = 2;
    $_GET["contains"][0] = $_GET["FK_networking_ports"];
    $_GET["field"][1] = 3;
    if (isset($_GET["Field"]) and !empty($_GET["Field"])) {
        $_GET["contains"][1] = $_GET["Field"];
        $_GET["link"][1] = "AND";
    } else {
        $_GET["contains"][1] = "";
        $_GET["link"][1] = "AND";
    }
    if ($_GET["FK_networking_ports"] == '-----') {
        $_GET["contains"][0] = '*';
    }
    $_GET["sort"] = 1;
  GLPI 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 2 of the License, or
  (at your option) any later version.

  GLPI 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 GLPI; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  ------------------------------------------------------------------------
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "models");
PluginFusioninventoryAuth::checkRight("snmp_models", "r");
PluginFusioninventoryDisplay::mini_menu();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_MODEL);
$_GET['target'] = "models.php";
searchForm(PLUGIN_FUSIONINVENTORY_MODEL, $_GET);
showList(PLUGIN_FUSIONINVENTORY_MODEL, $_GET);
commonFooter();
  You should have received a copy of the GNU General Public License
  along with GLPI; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  ------------------------------------------------------------------------
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "constructdevice");
PluginFusioninventoryDisplay::mini_menu();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_CONSTRUCT_DEVICE);
$_GET['target'] = "construct_device.php";
if (isset($_GET['generatemodels']) and $_GET['generatemodels'] == '1') {
    $ptcd = new PluginFusioninventoryConstructDevice();
    $ptcd->generatemodels();
    glpi_header($_SERVER['HTTP_REFERER']);
} else {
    if (isset($_GET['generatediscover']) and $_GET['generatediscover'] == '1') {
        $ptcd = new PluginFusioninventoryConstructDevice();
        $ptcd->generateDiscovery();
        glpi_header($_SERVER['HTTP_REFERER']);
    } else {
        if (isset($_GET['cleanmodels']) and $_GET['cleanmodels'] == '1') {
            $ptcd = new PluginFusioninventoryConstructDevice();
            $ptcd->cleanmodels();
            glpi_header($_SERVER['HTTP_REFERER']);
  GLPI 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 2 of the License, or
  (at your option) any later version.

  GLPI 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 GLPI; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  ------------------------------------------------------------------------
*/
// Original Author of file: David DURIEUX
// Purpose of file:
// ----------------------------------------------------------------------
if (!defined('GLPI_ROOT')) {
    define('GLPI_ROOT', '../../..');
}
$NEEDED_ITEMS = array("fusioninventory", "search");
include GLPI_ROOT . "/inc/includes.php";
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "unknown");
PluginFusioninventoryAuth::checkRight("snmp_networking", "r");
PluginFusioninventoryDisplay::mini_menu();
manageGetValuesInSearch(PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN);
$_GET['target'] = "unknown.php";
searchForm(PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, $_GET);
showList(PLUGIN_FUSIONINVENTORY_MAC_UNKNOWN, $_GET);
commonFooter();