예제 #1
0
 https://forge.indepnet.net/projects/archires
 -------------------------------------------------------------------------

 LICENSE

 This file is part of archires.

 Archires 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.

 Archires 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 Archires. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Html::header(PluginArchiresArchires::getTypeName() . " " . PluginArchiresLocationQuery::getTypeName(), '', "plugins", "archires", "location");
$PluginArchiresLocationQuery = new PluginArchiresLocationQuery();
if ($PluginArchiresLocationQuery->canView() || Session::haveRight("config", "w")) {
    Search::show("PluginArchiresLocationQuery");
} else {
    Html::displayRightError();
}
Html::footer();
예제 #2
0
 https://forge.indepnet.net/projects/archires
 -------------------------------------------------------------------------

 LICENSE

 This file is part of archires.

 Archires 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.

 Archires 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 Archires. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Html::header(PluginArchiresArchires::getTypeName() . " " . PluginArchiresNetworkEquipmentQuery::getTypeName(), '', "plugins", "archires", "networkequipment");
$PluginArchiresNetworkEquipmentQuery = new PluginArchiresNetworkEquipmentQuery();
if ($PluginArchiresNetworkEquipmentQuery->canView() || Session::haveRight("config", "w")) {
    Search::show("PluginArchiresNetworkEquipmentQuery");
} else {
    Html::displayRightError();
}
Html::footer();
예제 #3
0
                                if ($PluginArchiresVlanColor->canCreate()) {
                                    $PluginArchiresVlanColor->addVlanColor($_POST['vlans_id'], $_POST['color']);
                                }
                                Html::back();
                            } else {
                                if (isset($_POST["delete_color_vlan"])) {
                                    Session::checkRight("config", "w");
                                    $PluginArchiresVlanColor->getFromDB($_POST["id"], -1);
                                    foreach ($_POST["item_color"] as $key => $val) {
                                        if ($val == 1) {
                                            $PluginArchiresVlanColor->delete(array('id' => $key));
                                        }
                                    }
                                    Html::back();
                                } else {
                                    Html::header(PluginArchiresArchires::getTypeName(), '', "plugins", "archires", "summary");
                                    $PluginArchiresImageItem->showConfigForm();
                                    $PluginArchiresNetworkInterfaceColor->showConfigForm(true);
                                    $PluginArchiresVlanColor->showConfigForm(true);
                                    $PluginArchiresStateColor->showConfigForm(true);
                                    Html::footer();
                                }
                            }
                        }
                    }
                }
            }
        }
    }
} else {
    Html::header(__('Setup'), '', "config", "plugins");
예제 #4
0
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile') {
         if ($item->getField('id') && $item->getField('interface') != 'helpdesk') {
             return PluginArchiresArchires::getTypeName(2);
         }
     }
     return '';
 }
예제 #5
0
 https://forge.indepnet.net/projects/archires
 -------------------------------------------------------------------------

 LICENSE

 This file is part of archires.

 Archires 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.

 Archires 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 Archires. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Html::header(PluginArchiresArchires::getTypeName() . " " . PluginAppliancesAppliance::getTypeName(), '', "plugins", "archires", "appliance");
$PluginArchiresApplianceQuery = new PluginArchiresApplianceQuery();
if ($PluginArchiresApplianceQuery->canView() || Session::haveRight("config", "w")) {
    Search::show("PluginArchiresApplianceQuery");
} else {
    Html::displayRightError();
}
Html::footer();