the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  FusionInventory 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 Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with FusionInventory. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   FusionInventory
  @author    David Durieux
  @co-author
  @copyright Copyright (c) 2010-2015 FusionInventory team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      http://www.fusioninventory.org/
  @link      http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/
  @since     2010

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Html::header(__('FusionInventory', 'fusioninventory'), $_SERVER["PHP_SELF"], "plugins", "pluginfusioninventorymenu", "ignoredimportdevice");
//PluginFusioninventoryProfile::checkRight("rules", "r");
PluginFusioninventoryMenu::displayMenu("mini");
Search::show('PluginFusioninventoryIgnoredimportdevice');
Html::footer();
Exemplo n.º 2
0
  FusionInventory 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 Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with FusionInventory. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   FusionInventory
  @author    David Durieux
  @co-author
  @copyright Copyright (c) 2010-2015 FusionInventory team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      http://www.fusioninventory.org/
  @link      http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/
  @since     2010

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
if (PluginFusioninventoryMenu::canView()) {
    Html::header(__('FusionInventory', 'fusioninventory'), $_SERVER["PHP_SELF"], "plugins", "pluginfusioninventorymenu", "menu");
    PluginFusioninventoryMenu::displayMenu();
    PluginFusioninventoryMenu::board();
} else {
    Html::displayRightError();
}
Html::footer();
  FusionInventory 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 Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with FusionInventory. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   FusionInventory
  @author    David Durieux
  @co-author
  @copyright Copyright (c) 2010-2014 FusionInventory team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      http://www.fusioninventory.org/
  @link      http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/
  @since     2014

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
if (PluginFusioninventoryMenu::canView()) {
    Html::header(__('FusionInventory', 'fusioninventory'), $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "menu");
    PluginFusioninventoryMenu::displayMenuInventory();
} else {
    Html::displayRightError();
}
Html::footer();
 function displayHeader()
 {
     //Common dropdown header
     parent::displayHeader();
     //Fusioninventory menu
     PluginFusioninventoryMenu::displayMenu("mini");
 }
 /**
  * Display the menu of FusionInventory
  *
  *@param type value "big" or "mini"
  *
  *@return nothing
  **/
 static function displayMenu($type = "big")
 {
     global $CFG_GLPI;
     if (PLUGIN_FUSIONINVENTORY_OFFICIAL_RELEASE != 1) {
         echo "<center>";
         echo "<a href='http://forge.fusioninventory.org/projects/fusioninventory-for-glpi/" . "wiki/Beta_test'>";
         echo "<img src='" . $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/beta.png'/></a>";
         echo "&nbsp;<a href='https://www.transifex.com/projects/p/FusionInventory/resource/" . "plugin-fusioninventory-084/'>";
         echo "<img src='" . $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/Translate.png'/>" . "</a>";
         echo "<H1>Version '" . PLUGIN_FUSIONINVENTORY_REALVERSION . "'</H1></center><br/>\n";
     }
     $pfEntity = new PluginFusioninventoryEntity();
     if (strlen($pfEntity->getValue('agent_base_url', 0)) < 10 && !strstr($_SERVER['PHP_SELF'], 'front/config.form.php')) {
         echo "<div class='msgboxmonit msgboxmonit-red'>";
         print "<center><a href=\"" . $CFG_GLPI['root_doc'] . "/front/entity.form.php?id=0&forcetab=PluginFusioninventoryEntity\$0\">";
         print __('The server needs to kown the URL the agents use to access the server. Please ' . 'configure it in the General Configuration page.', 'fusioninventory');
         print "</a></center>";
         echo "</div>";
         exit;
     }
     $width_status = 0;
     echo "<div align='center' style='height: 35px; display: inline-block; width: 100%; margin: 0 auto;'>";
     echo "<table width='100%'>";
     echo "<tr>";
     echo "<td align='center'>";
     echo "<table>";
     echo "<tr>";
     echo "<td>";
     /*
      * General
      */
     $a_menu = array();
     if (Session::haveRight('plugin_fusioninventory_agent', READ)) {
         $a_menu[0]['name'] = __('Agents management', 'fusioninventory');
         $a_menu[0]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_agents.png";
         $a_menu[0]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryAgent');
     }
     if (Session::haveRight('plugin_fusioninventory_group', READ)) {
         $a_menu[2]['name'] = __('Groups of computers', 'fusioninventory');
         $a_menu[2]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_group.png";
         $a_menu[2]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/deploygroup.php";
     }
     if (Session::haveRight('config', UPDATE) || Session::haveRight('plugin_fusioninventory_configuration', UPDATE)) {
         $a_menu[3]['name'] = __('General configuration', 'fusioninventory');
         $a_menu[3]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_agents.png";
         $a_menu[3]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/config.form.php";
     }
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('General', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     /*
      * Tasks
      */
     $a_menu = array();
     if (Session::haveRight('plugin_fusioninventory_task', READ)) {
         //$a_menu[1]['name'] = __('Task management', 'fusioninventory')." (".__s('Summary').")";
         //$a_menu[1]['pic']  = $CFG_GLPI['root_doc']."/plugins/fusioninventory/pics/menu_task.png";
         //$a_menu[1]['link'] = $CFG_GLPI['root_doc'].
         //                        "/plugins/fusioninventory/front/tasksummary.php";
         $a_menu[2]['name'] = __('Task management', 'fusioninventory');
         $a_menu[2]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_task.png";
         $a_menu[2]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryTask');
         $a_menu[3]['name'] = __('Monitoring / Logs', 'fusioninventory');
         $a_menu[3]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_runningjob.png";
         $a_menu[3]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryTaskJob');
     }
     if (Session::haveRight('plugin_fusioninventory_importxml', CREATE)) {
         $a_menu[0]['name'] = __('Import agent XML file', 'fusioninventory');
         $a_menu[0]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_importxml.png";
         $a_menu[0]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/inventorycomputerimportxml.php";
     }
     if (Session::haveRight("plugin_fusioninventory_collect", READ)) {
         $a_menu[11]['name'] = __('Additional computer information', 'fusioninventory');
         $a_menu[11]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_task.png";
         $a_menu[11]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryCollect');
     }
     if (Session::haveRight('plugin_fusioninventory_task', READ)) {
         $a_menu[12]['name'] = __('Time slot', 'fusioninventory');
         $a_menu[12]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_timeslot.png";
         $a_menu[12]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryTimeslot');
     }
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('Tasks', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     /*
      * Rules
      */
     $a_menu = array();
     if (Session::haveRight('plugin_fusioninventory_ruleimport', READ)) {
         $a_menu[1]['name'] = __('Equipment import and link rules', 'fusioninventory');
         $a_menu[1]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[1]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryInventoryRuleImport');
     }
     if (Session::haveRight('plugin_fusioninventory_ignoredimportdevice', READ)) {
         $a_menu[2]['name'] = __('Ignored import devices', 'fusioninventory');
         $a_menu[2]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[2]['link'] = Toolbox::getItemTypeSearchURL('PluginFusioninventoryIgnoredimportdevice');
     }
     if (Session::haveRight('plugin_fusioninventory_ruleentity', READ)) {
         $a_menu[3]['name'] = __('Computer entity rules', 'fusioninventory');
         $a_menu[3]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[3]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/inventoryruleentity.php";
     }
     if (Session::haveRight('plugin_fusioninventory_rulelocation', READ)) {
         $a_menu[4]['name'] = __('Computer location rules', 'fusioninventory');
         $a_menu[4]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[4]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/inventoryrulelocation.php";
     }
     if (Session::haveRight("plugin_fusioninventory_rulecollect", READ)) {
         $a_menu[5]['name'] = __('Additional computer information rules', 'fusioninventory');
         $a_menu[5]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[5]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/collectrule.php";
     }
     if (Session::haveRight("plugin_fusioninventory_rulecollect", READ)) {
         $a_menu[6]['name'] = __('Dictionnary of computer architectures', 'fusioninventory');
         $a_menu[6]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rules.png";
         $a_menu[6]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/ruledictionnarycomputerarch.php";
     }
     if (Session::haveRight('plugin_fusioninventory_blacklist', READ)) {
         $a_menu[7]['name'] = _n('Blacklist', 'Blacklists', 1);
         $a_menu[7]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_blacklist.png";
         $a_menu[7]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/inventorycomputerblacklist.php";
     }
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('Rules', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     /*
      * Network
      */
     $a_menu = array();
     if (Session::haveRight('plugin_fusioninventory_iprange', READ)) {
         $a_menu[] = array('name' => __('IP Ranges', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_rangeip.png", 'link' => Toolbox::getItemTypeSearchURL('PluginFusioninventoryIPRange'));
     }
     if (Session::haveRight('plugin_fusioninventory_credentialip', READ)) {
         $a_menu[] = array('name' => __('Remote devices to inventory (VMware)', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_credentialips.png", 'link' => Toolbox::getItemTypeSearchURL('PluginFusioninventoryCredentialip'));
     }
     if (Session::haveRight('plugin_fusioninventory_configsecurity', READ)) {
         $a_menu[] = array('name' => __('SNMP authentication', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_authentification.png", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/configsecurity.php");
     }
     if (Session::haveRight('plugin_fusioninventory_credential', READ)) {
         $a_menu[] = array('name' => __('Authentication for remote devices (VMware)', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_authentification.png", 'link' => Toolbox::getItemTypeSearchURL('PluginFusioninventoryCredential'));
     }
     if (Session::haveRight('plugin_fusioninventory_task', READ)) {
         $a_menu[] = array('name' => __('Discovery status', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_discovery_status.png", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/statediscovery.php");
         $a_menu[] = array('name' => __('Network inventory status', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_inventory_status.png", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/stateinventory.php");
     }
     if (Session::haveRight('plugin_fusioninventory_model', READ)) {
         $a_menu[] = array('name' => __('SNMP models creation', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_constructmodel.png", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/constructmodel.php");
     }
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('Networking', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     /*
      * Deploy
      */
     $a_menu = array();
     if (Session::haveRight('plugin_fusioninventory_package', READ)) {
         $a_menu[] = array('name' => __('Package management', 'fusioninventory'), 'pic' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_package.png", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/deploypackage.php");
     }
     if (Session::haveRight('plugin_fusioninventory_deploymirror', READ)) {
         $a_menu[1]['name'] = __('Mirror servers', 'fusioninventory');
         $a_menu[1]['pic'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/pics/menu_files.png";
         $a_menu[1]['link'] = $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/deploymirror.php";
     }
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('Deploy', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     /*
      * Guide
      */
     $a_menu = array();
     $a_menu[] = array('name' => "FI> " . __('Computer inv.', 'fusioninventory'), 'pic' => "", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/menu_inventory.php");
     $a_menu[] = array('name' => "FI> " . __('SNMP inv.', 'fusioninventory'), 'pic' => "", 'link' => $CFG_GLPI['root_doc'] . "/plugins/fusioninventory/front/menu_snmpinventory.php");
     if (!empty($a_menu)) {
         $width_status = PluginFusioninventoryMenu::htmlMenu(__('Guide', 'fusioninventory'), $a_menu, $type, $width_status);
     }
     echo "</td>";
     echo "</tr>";
     echo "</table>";
     echo "</td>";
     echo "</tr>";
     echo "</table>";
     echo "</div><br/><br/><br/>";
 }