├── addressing.png ├── locales ├── cs_CZ.mo ├── de_DE.mo ├── en_GB.mo ├── es_AR.mo ├── es_ES.mo ├── fi_FI.mo ├── fr_FR.mo ├── it_IT.mo ├── pl_PL.mo ├── pt_BR.mo ├── ro_RO.mo ├── ru_RU.mo ├── tr_TR.mo ├── glpi.pot ├── fi_FI.po ├── ro_RO.po ├── de_DE.po ├── it_IT.po ├── cs_CZ.po ├── es_ES.po ├── pl_PL.po ├── es_AR.po ├── ru_RU.po └── en_GB.po ├── sql ├── update-3.1.1.sql ├── update-1.7.0.sql ├── update-1.9.0.sql ├── update-3.1.0.sql ├── update-2.5.0.sql ├── update-2.4.0.sql ├── update-3.0.1.sql ├── update-2.9.1.sql ├── empty-1.4.sql ├── update-1.5.sql ├── update-1.6.sql ├── update-1.4.sql ├── empty-2.0.0.sql ├── update-1.8.0.sql ├── empty-1.5.sql ├── empty-1.7.0.sql ├── empty-1.6.sql ├── empty-1.8.0.sql ├── empty-1.9.0.sql ├── empty-2.4.0.sql ├── empty-2.5.0.sql ├── empty-2.7.0.sql ├── empty-2.9.1.sql ├── empty-3.0.0.sql ├── empty-3.0.1.sql └── empty-3.1.0.sql ├── .tx └── config ├── .github └── workflows │ ├── release.yml │ ├── locales-update-source.yml │ ├── auto-tag-new-version.yml │ └── locales-sync.yml ├── composer.json ├── tools ├── extract_template.sh ├── update_mo.pl └── update_po.pl ├── index.php ├── ajax ├── index.php ├── seePingTab.php ├── updatepinginfo.php ├── ipcomment.php ├── addressing.php └── ping.php ├── front ├── index.php ├── filter.form.php ├── report.form.php ├── config.php ├── config.form.php ├── reserveip.form.php ├── addressing.php └── addressing.form.php ├── README.md ├── src ├── IpComment.php ├── Config.php └── Profile.php ├── public ├── addressing.css └── addressing.js ├── setup.php └── addressing.xml /addressing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/addressing.png -------------------------------------------------------------------------------- /locales/cs_CZ.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/cs_CZ.mo -------------------------------------------------------------------------------- /locales/de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/de_DE.mo -------------------------------------------------------------------------------- /locales/en_GB.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/en_GB.mo -------------------------------------------------------------------------------- /locales/es_AR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/es_AR.mo -------------------------------------------------------------------------------- /locales/es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/es_ES.mo -------------------------------------------------------------------------------- /locales/fi_FI.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/fi_FI.mo -------------------------------------------------------------------------------- /locales/fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/fr_FR.mo -------------------------------------------------------------------------------- /locales/it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/it_IT.mo -------------------------------------------------------------------------------- /locales/pl_PL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/pl_PL.mo -------------------------------------------------------------------------------- /locales/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/pt_BR.mo -------------------------------------------------------------------------------- /locales/ro_RO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/ro_RO.mo -------------------------------------------------------------------------------- /locales/ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/ru_RU.mo -------------------------------------------------------------------------------- /locales/tr_TR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/addressing/HEAD/locales/tr_TR.mo -------------------------------------------------------------------------------- /sql/update-3.1.1.sql: -------------------------------------------------------------------------------- 1 | DELETE FROM `glpi_crontasks` WHERE `itemtype` LIKE 'PluginAddressing%'; 2 | -------------------------------------------------------------------------------- /sql/update-1.7.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_addressing_profiles DROP COLUMN interface , DROP COLUMN is_default; -------------------------------------------------------------------------------- /sql/update-1.9.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_addressing_profiles` 2 | ADD `use_ping_in_equipment` char(1) collate utf8_unicode_ci default NULL; 3 | 4 | -------------------------------------------------------------------------------- /sql/update-3.1.0.sql: -------------------------------------------------------------------------------- 1 | UPDATE `glpi_displaypreferences` SET `itemtype` = 'GlpiPlugin\\Addressing\\Addressing' WHERE `itemtype` = 'PluginAddressingAddressing'; 2 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [o:pluginsGLPI:p:glpi-plugin-addressing:r:glpipot] 5 | file_filter = locales/.po 6 | source_file = locales/glpi.pot 7 | source_lang = en 8 | type = PO 9 | -------------------------------------------------------------------------------- /sql/update-2.5.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_addressing_addressings` 2 | ADD `locations_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 3 | ADD `fqdns_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)'; -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: "Publish release" 2 | 3 | on: 4 | push: 5 | tags: 6 | - '*' 7 | 8 | jobs: 9 | publish-release: 10 | permissions: 11 | contents: "write" 12 | name: "Publish release" 13 | uses: "glpi-project/plugin-release-workflows/.github/workflows/publish-release.yml@v1" 14 | -------------------------------------------------------------------------------- /.github/workflows/locales-update-source.yml: -------------------------------------------------------------------------------- 1 | name: "Update locales sources" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "master" 7 | 8 | jobs: 9 | push-on-transifex: 10 | name: "Push locales sources" 11 | uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1" 12 | secrets: 13 | transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" 14 | -------------------------------------------------------------------------------- /.github/workflows/auto-tag-new-version.yml: -------------------------------------------------------------------------------- 1 | name: "Automatically tag new version" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "master" 7 | paths: 8 | - "setup.php" 9 | 10 | jobs: 11 | auto-tag-new-version: 12 | name: "Automatically tag new version" 13 | uses: "glpi-project/plugin-release-workflows/.github/workflows/auto-tag-new-version.yml@v1" 14 | secrets: 15 | github-token: "${{ secrets.AUTOTAG_TOKEN }}" 16 | -------------------------------------------------------------------------------- /.github/workflows/locales-sync.yml: -------------------------------------------------------------------------------- 1 | name: "Synchronize locales" 2 | 3 | on: 4 | schedule: 5 | - cron: "0 0 * * 1-5" 6 | workflow_dispatch: 7 | 8 | jobs: 9 | sync-with-transifex: 10 | name: "Sync with transifex" 11 | uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1" 12 | secrets: 13 | github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}" 14 | transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" 15 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "php": ">=8.2" 4 | }, 5 | "require-dev": { 6 | "friendsofphp/php-cs-fixer": "^3.86", 7 | "glpi-project/tools": "^0.8.0", 8 | "php-parallel-lint/php-parallel-lint": "^1.4", 9 | "phpstan/phpstan": "^2.1" 10 | }, 11 | "config": { 12 | "optimize-autoloader": true, 13 | "platform": { 14 | "php": "8.2.0" 15 | }, 16 | "sort-packages": true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tools/extract_template.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Only strings with domain specified are extracted (use Xt args of keyword param to set number of args needed) 4 | 5 | xgettext *.php */*.php --copyright-holder='Addressing Development Team' --package-name='GLPI - Addressing plugin' --package-version='3.1.0' -o locales/glpi.pot -L PHP --add-comments=TRANS --from-code=UTF-8 --force-po \ 6 | --keyword=_n:1,2,4t --keyword=__s:1,2t --keyword=__:1,2t --keyword=_e:1,2t --keyword=_x:1c,2,3t \ 7 | --keyword=_ex:1c,2,3t --keyword=_nx:1c,2,3,5t --keyword=_sx:1c,2,3t 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tools/update_mo.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | #!/usr/bin/perl -w 3 | 4 | if (@ARGV!=0){ 5 | print "USAGE update_mo.pl\n\n"; 6 | 7 | exit(); 8 | } 9 | 10 | 11 | opendir(DIRHANDLE,'locales')||die "ERROR: can not read current directory\n"; 12 | foreach (readdir(DIRHANDLE)){ 13 | if ($_ ne '..' && $_ ne '.'){ 14 | 15 | if(!(-l "$dir/$_")){ 16 | if (index($_,".po",0)==length($_)-3) { 17 | $lang=$_; 18 | $lang=~s/\.po//; 19 | 20 | `msgfmt locales/$_ -o locales/$lang.mo`; 21 | } 22 | } 23 | 24 | } 25 | } 26 | closedir DIRHANDLE; 27 | 28 | # 29 | # 30 | -------------------------------------------------------------------------------- /sql/update-2.4.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 2 | CREATE TABLE `glpi_plugin_addressing_filters` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 6 | `name` varchar(255) collate utf8_unicode_ci default NULL, 7 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | `type` varchar(255) collate utf8_unicode_ci default NULL, 10 | PRIMARY KEY (`id`), 11 | KEY `entities_id` (`entities_id`), 12 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 13 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -------------------------------------------------------------------------------- /sql/update-3.0.1.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `glpi_plugin_addressing_ipcomments` 2 | ( 3 | `id` int unsigned NOT NULL auto_increment, 4 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 5 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 6 | `comments` LONGTEXT collate utf8mb4_unicode_ci, 7 | PRIMARY KEY (`id`), 8 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 9 | KEY `ipname` (`ipname`) 10 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 11 | 12 | ALTER TABLE `glpi_plugin_addressing_addressings` 13 | ADD `vlans_id` int unsigned NOT NULL DEFAULT '0'; 14 | ALTER TABLE `glpi_plugin_addressing_addressings` 15 | ADD `use_as_filter` tinyint NOT NULL default '0'; 16 | -------------------------------------------------------------------------------- /tools/update_po.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | #!/usr/bin/perl -w 3 | 4 | if (@ARGV!=2){ 5 | print "USAGE update_po.pl transifex_login transifex_password\n\n"; 6 | 7 | exit(); 8 | } 9 | $user = $ARGV[0]; 10 | $password = $ARGV[1]; 11 | 12 | opendir(DIRHANDLE,'locales')||die "ERROR: can not read current directory\n"; 13 | foreach (readdir(DIRHANDLE)){ 14 | if ($_ ne '..' && $_ ne '.'){ 15 | 16 | if(!(-l "$dir/$_")){ 17 | if (index($_,".po",0)==length($_)-3) { 18 | $lang=$_; 19 | $lang=~s/\.po//; 20 | 21 | `wget --user=$user --password=$password --output-document=locales/$_ http://www.transifex.com/api/2/project/GLPI_addressing/resource/glpi/translation/$lang/?file=$_`; 22 | } 23 | } 24 | 25 | } 26 | } 27 | closedir DIRHANDLE; 28 | 29 | # 30 | # 31 | -------------------------------------------------------------------------------- /sql/update-2.9.1.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `glpi_plugin_addressing_pinginfos` 2 | ( 3 | `id` int unsigned NOT NULL auto_increment, 4 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 5 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 6 | `ping_response` tinyint NOT NULL default '0', 7 | `ping_date` timestamp NULL DEFAULT NULL, 8 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)', 9 | `itemtype` varchar(100) collate utf8mb4_unicode_ci COMMENT 'see .class.php file', 10 | PRIMARY KEY (`id`), 11 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 12 | KEY `ipname` (`ipname`), 13 | KEY `ping_response` (`ping_response`), 14 | KEY `ping_date` (`ping_date`) 15 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 16 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /ajax/index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /front/index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # addressing 2 | Plugin addressing for GLPI 3 | 4 | Ce plugin est sur Transifex - Aidez-nous à le traduire : 5 | [https://www.transifex.com/infotelGLPI/GLPI_addressing](https://explore.transifex.com/pluginsGLPI/glpi-plugin-addressing/) 6 | 7 | This plugin is on Transifex - Help us to translate : 8 | [https://www.transifex.com/infotelGLPI/GLPI_addressing](https://explore.transifex.com/pluginsGLPI/glpi-plugin-addressing/) 9 | 10 | ## Français 11 | 12 | Ce plugin vous permet créer des rapports IP afin de visualiser les adresses ip utilisées et libres sur un réseau donné. 13 | > * Génération de la liste des ip attribuées / libres / réservées / doublons pour tout type de matériel ayant une IP. 14 | > * Réservations d'IP. 15 | > * Filtre par réseau. 16 | > * Ping adresses libres sur divers systèmes. 17 | > * Export du rapport en pdf, csv, slk 18 | 19 | ## English 20 | 21 | This plugin enables you to create IP reports for visualize IP addresses used and free on a given network. 22 | > * List generation of ip assigned / free / reserved / doubles for all items with IP field. 23 | > * IP reservations. 24 | > * Filter with network. 25 | > * Ping fonction for free ip for many systems. 26 | > * Report export to pdf, csv, slk 27 | -------------------------------------------------------------------------------- /sql/empty-1.4.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_display`; 2 | CREATE TABLE `glpi_plugin_addressing_display` ( 3 | `ID` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , 4 | `ip_alloted` smallint(6) NOT NULL default '0', 5 | `ip_double` smallint(6) NOT NULL default '0', 6 | `ip_free` smallint(6) NOT NULL default '0', 7 | `ip_reserved` smallint(6) NOT NULL default '0', 8 | `ipconf1` smallint(6) NULL, 9 | `ipconf2` smallint(6) NULL, 10 | `ipconf3` smallint(6) NULL, 11 | `ipconf4` smallint(6) NULL, 12 | `netconf` smallint(6) NOT NULL default '0', 13 | `ping` smallint(6) NOT NULL default '0', 14 | `system` smallint(6) NOT NULL default '0' 15 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 16 | 17 | INSERT INTO `glpi_plugin_addressing_display` ( `ID`, `ip_alloted`,`ip_double`,`ip_free`,`ip_reserved`,`ping`,`system`) VALUES ('1','1','1','1','1','0','0'); 18 | 19 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 20 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 21 | `ID` int(11) NOT NULL auto_increment, 22 | `name` varchar(255) default NULL, 23 | `interface` varchar(50) NOT NULL default 'addressing', 24 | `is_default` enum('0','1') NOT NULL default '0', 25 | `addressing` char(1) default NULL, 26 | PRIMARY KEY (`ID`), 27 | KEY `interface` (`interface`) 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -------------------------------------------------------------------------------- /sql/update-1.5.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing`; 2 | CREATE TABLE `glpi_plugin_addressing` ( 3 | `ID` int(11) NOT NULL auto_increment, 4 | `FK_entities` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', 6 | `network` smallint(6) NOT NULL default '0', 7 | `ipdebut1` smallint(6) NULL, 8 | `ipdebut2` smallint(6) NULL, 9 | `ipdebut3` smallint(6) NULL, 10 | `ipdebut4` smallint(6) NULL, 11 | `ipfin4` smallint(6) NULL, 12 | `ping` smallint(6) NOT NULL default '0', 13 | `link` smallint(6) NOT NULL default '1', 14 | `comments` text, 15 | `deleted` smallint(6) NOT NULL default '0', 16 | PRIMARY KEY (`ID`) 17 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 18 | 19 | ALTER TABLE `glpi_plugin_addressing_display` DROP `ipconf1`; 20 | ALTER TABLE `glpi_plugin_addressing_display` DROP `ipconf2`; 21 | ALTER TABLE `glpi_plugin_addressing_display` DROP `ipconf3`; 22 | ALTER TABLE `glpi_plugin_addressing_display` DROP `ipconf4`; 23 | ALTER TABLE `glpi_plugin_addressing_display` DROP `netconf`; 24 | 25 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'5000','2','2','0'); 26 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'5000','3','3','0'); 27 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'5000','4','4','0'); 28 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'5000','5','5','0'); -------------------------------------------------------------------------------- /sql/update-1.6.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_addressing` 2 | ADD `ipdeb` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '' AFTER `ipfin4`, 3 | ADD `ipfin` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL default '' AFTER `ipdeb`; 4 | 5 | UPDATE `glpi_plugin_addressing` SET 6 | ipdeb=CONCAT_WS('.',ipdebut1,ipdebut2,ipdebut3,ipdebut4), 7 | ipfin=CONCAT_WS('.',ipdebut1,ipdebut2,ipdebut3,ipfin4); 8 | 9 | ALTER TABLE `glpi_plugin_addressing` 10 | ADD `ip_alloted` SMALLINT NOT NULL DEFAULT '1' AFTER `ipfin` , 11 | ADD `ip_double` SMALLINT NOT NULL DEFAULT '1' AFTER `ip_alloted` , 12 | ADD `ip_free` SMALLINT NOT NULL DEFAULT '1' AFTER `ip_double` , 13 | ADD `ip_reserved` SMALLINT NOT NULL DEFAULT '1' AFTER `ip_free` ; 14 | 15 | ALTER TABLE `glpi_plugin_addressing` 16 | DROP `ipdebut1`, 17 | DROP `ipdebut2`, 18 | DROP `ipdebut3`, 19 | DROP `ipdebut4`, 20 | DROP `ipfin4`; 21 | 22 | DELETE FROM `glpi_displaypreferences` WHERE `itemtype` = 5000; 23 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,2,2,0); 24 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,3,6,0); 25 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,4,5,0); 26 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,5,7,0); 27 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,1000,3,0); 28 | INSERT INTO `glpi_displaypreferences` VALUES (NULL ,5000,1001,4,0); -------------------------------------------------------------------------------- /src/IpComment.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | namespace GlpiPlugin\Addressing; 31 | 32 | use CommonDBTM; 33 | 34 | if (!defined('GLPI_ROOT')) { 35 | die("Sorry. You can't access directly to this file"); 36 | } 37 | 38 | /** 39 | * Class IpComment 40 | */ 41 | class IpComment extends CommonDBTM 42 | { 43 | public static $rightname = "plugin_addressing"; 44 | 45 | public static function getTypeName($nb = 0) 46 | { 47 | 48 | return _n('IP Addressing', 'IP Addressing', $nb, 'addressing'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /front/filter.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | use GlpiPlugin\Addressing\Filter; 31 | 32 | Session::checkLoginUser(); 33 | 34 | $filter = new Filter(); 35 | 36 | if (isset($_POST['add'])) { 37 | $filter->check(-1, CREATE, $_POST); 38 | unset($_POST['id']); 39 | $filter->add($_POST); 40 | Html::back(); 41 | } elseif (isset($_POST['update'])) { 42 | $filter->check($_POST['id'], UPDATE); 43 | $filter->update($_POST); 44 | Html::back(); 45 | } elseif (isset($_POST["purge"])) { 46 | $filter->check($_POST['id'], PURGE); 47 | $filter->delete($_POST, 1); 48 | Html::back(); 49 | } 50 | -------------------------------------------------------------------------------- /front/report.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | //Options for GLPI 0.71 and newer : need slave db to access the report 31 | use GlpiPlugin\Addressing\Addressing; 32 | 33 | $USEDBREPLICATE = 1; 34 | $DBCONNECTION_REQUIRED = 0; 35 | 36 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class); 37 | 38 | Session::checkLoginUser(); 39 | 40 | if (!isset($_GET["start"])) { 41 | $_GET["start"] = 0; 42 | } 43 | 44 | if (!isset($_GET["export"])) { 45 | $_GET["export"] = false; 46 | } 47 | 48 | $addressing = new Addressing(); 49 | $addressing->showReport($_GET); 50 | 51 | Html::footer(); 52 | -------------------------------------------------------------------------------- /ajax/seePingTab.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | use GlpiPlugin\Addressing\Ping_Equipment; 31 | 32 | Session::checkRight('plugin_addressing', UPDATE); 33 | if (strpos($_SERVER['PHP_SELF'], "seePingTab.php")) { 34 | header("Content-Type: text/html; charset=UTF-8"); 35 | Html::header_nocache(); 36 | } 37 | 38 | Session::checkLoginUser(); 39 | 40 | if (isset($_POST['action']) && $_POST['action'] == "viewPingform") { 41 | echo Html::scriptBlock("$('#ping_item').show();"); 42 | 43 | $pingE = new Ping_Equipment(); 44 | $pingE->showPingForm($_POST['itemtype'], $_POST['items_id']); 45 | } 46 | 47 | $_POST['name'] = "ping_item"; 48 | $_POST['rand'] = ""; 49 | Ajax::commonDropdownUpdateItem($_POST); 50 | -------------------------------------------------------------------------------- /sql/update-1.4.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 2 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 3 | `ID` int(11) NOT NULL auto_increment, 4 | `name` varchar(255) default NULL, 5 | `interface` varchar(50) NOT NULL default 'addressing', 6 | `is_default` smallint(6) NOT NULL default '0', 7 | `addressing` char(1) default NULL, 8 | PRIMARY KEY (`ID`), 9 | KEY `interface` (`interface`) 10 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 11 | 12 | ALTER TABLE `glpi_plugin_addressing_display` ADD `ping` smallint(6) NOT NULL default '0'; 13 | ALTER TABLE `glpi_plugin_addressing_display` ADD `system` smallint(6) NOT NULL default '0'; 14 | ALTER TABLE `glpi_plugin_addressing_display` ADD `ipconf1` smallint(6) NULL; 15 | ALTER TABLE `glpi_plugin_addressing_display` ADD `ipconf2` smallint(6) NULL; 16 | ALTER TABLE `glpi_plugin_addressing_display` ADD `ipconf3` smallint(6) NULL; 17 | ALTER TABLE `glpi_plugin_addressing_display` ADD `ipconf4` smallint(6) NULL; 18 | ALTER TABLE `glpi_plugin_addressing_display` ADD `netconf` smallint(6) NOT NULL default '0'; 19 | ALTER TABLE `glpi_plugin_addressing_display` cHANGE `ip_alloted` `ip_alloted` smallint(6) NOT NULL default '0'; 20 | ALTER TABLE `glpi_plugin_addressing_display` cHANGE `ip_double` `ip_double` smallint(6) NOT NULL default '0'; 21 | ALTER TABLE `glpi_plugin_addressing_display` cHANGE `ip_free` `ip_free` smallint(6) NOT NULL default '0'; 22 | ALTER TABLE `glpi_plugin_addressing_display` cHANGE `ip_reserved` `ip_reserved` smallint(6) NOT NULL default '0'; 23 | UPDATE `glpi_plugin_addressing_display` SET `ip_alloted` = '0' WHERE `ip_alloted` = '2'; 24 | UPDATE `glpi_plugin_addressing_display` SET `ip_double` = '0' WHERE `ip_double` = '2'; 25 | UPDATE `glpi_plugin_addressing_display` SET `ip_free` = '0' WHERE `ip_free` = '2'; 26 | UPDATE `glpi_plugin_addressing_display` SET `ip_reserved` = '0' WHERE `ip_reserved` = '2'; -------------------------------------------------------------------------------- /public/addressing.css: -------------------------------------------------------------------------------- 1 | /* 2 | * @version $Id$ 3 | ------------------------------------------------------------------------- 4 | addressing plugin for GLPI 5 | Copyright (C) 2009-2022 by the addressing Development Team. 6 | 7 | https://github.com/pluginsGLPI/addressing 8 | ------------------------------------------------------------------------- 9 | 10 | LICENSE 11 | 12 | This file is part of addressing. 13 | 14 | addressing is free software; you can redistribute it and/or modify 15 | it under the terms of the GNU General Public License as published by 16 | the Free Software Foundation; either version 2 of the License, or 17 | (at your option) any later version. 18 | 19 | addressing is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 | GNU General Public License for more details. 23 | 24 | You should have received a copy of the GNU General Public License 25 | along with addressing. If not, see . 26 | -------------------------------------------------------------------------- 27 | */ 28 | 29 | .plugin_addressing_ip_double { 30 | background-color: #CF9B9B; 31 | } 32 | 33 | .plugin_addressing_ip_free { 34 | background-color: #8CB8D8; 35 | } 36 | 37 | .plugin_addressing_ip_reserved { 38 | background-color: #e78e3f; 39 | } 40 | 41 | .plugin_addressing_ping_on { 42 | background-color: #8CB8D8; 43 | } 44 | 45 | .plugin_addressing_ping_off { 46 | background-color: #8DA372; 47 | } 48 | 49 | 50 | .plugin_addressing_ping_equipment { 51 | border:2px solid #E1CC7B; 52 | color:white; 53 | background-color:black; 54 | font-weight:bold; 55 | height:150px; 56 | width:100%; 57 | overflow:auto; 58 | border-radius: 4px 4px 4px 4px; 59 | padding: 2px; 60 | } 61 | 62 | .legend_addressing { 63 | padding: 10px; 64 | margin: 10px; 65 | } 66 | -------------------------------------------------------------------------------- /front/config.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | use GlpiPlugin\Addressing\Addressing; 31 | use GlpiPlugin\Addressing\Config; 32 | 33 | if (Plugin::isPluginActive("addressing")) { 34 | $Config = new Config(); 35 | 36 | Session::checkRight("config", UPDATE); 37 | 38 | if (isset($_POST["update"])) { 39 | $Config->update($_POST); 40 | Html::back(); 41 | } else { 42 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class, "addressing"); 43 | $Config->showForm(1); 44 | Html::footer(); 45 | } 46 | } else { 47 | Html::header(__('Setup'), '', "config", "plugin"); 48 | echo "
"; 49 | echo "" . __('Please activate the plugin', 'addressing') . "
"; 50 | Html::footer(); 51 | } 52 | -------------------------------------------------------------------------------- /front/config.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | use GlpiPlugin\Addressing\Addressing; 31 | use GlpiPlugin\Addressing\Config; 32 | 33 | if (Plugin::isPluginActive("addressing")) { 34 | $Config = new Config(); 35 | 36 | Session::checkRight("config", UPDATE); 37 | 38 | if (isset($_POST["update"])) { 39 | $Config->update($_POST); 40 | Html::back(); 41 | } else { 42 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class, "addressing"); 43 | $Config->showForm(1); 44 | Html::footer(); 45 | } 46 | } else { 47 | Html::header(__('Setup'), '', "config", "plugins"); 48 | echo "
"; 49 | echo "".__('Please activate the plugin', 'addressing')."
"; 50 | Html::footer(); 51 | } 52 | -------------------------------------------------------------------------------- /front/reserveip.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | 31 | use GlpiPlugin\Addressing\Addressing; 32 | use GlpiPlugin\Addressing\ReserveIp; 33 | 34 | Session::checkLoginUser(); 35 | 36 | $reserveip = new ReserveIp(); 37 | 38 | if (isset($_POST['add'])) { 39 | $reserveip->check(-1, CREATE, $_POST); 40 | $reserveip->reserveip($_POST); 41 | Html::popHeader(ReserveIp::getTypeName()); 42 | echo "
"; 43 | echo __("The address has been reserved", "addressing"); 44 | echo "
"; 45 | Html::popFooter(); 46 | } else { 47 | Html::header(ReserveIp::getTypeName(), '', "tools", Addressing::class); 48 | if (filter_var($_REQUEST["ip"], FILTER_VALIDATE_IP)) { 49 | $reserveip->showReservationForm($_REQUEST["ip"], $_REQUEST["id_addressing"], $_REQUEST['rand']); 50 | } 51 | Html::footer(); 52 | } 53 | -------------------------------------------------------------------------------- /ajax/updatepinginfo.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | // ---------------------------------------------------------------------- 31 | // Original Author of file: Alban Lesellier 32 | // ---------------------------------------------------------------------- 33 | 34 | 35 | use GlpiPlugin\Addressing\Addressing; 36 | use GlpiPlugin\Addressing\PingInfo; 37 | 38 | Session::checkRight('plugin_addressing', UPDATE); 39 | header("Content-Type: application/json; charset=UTF-8"); 40 | Html::header_nocache(); 41 | 42 | Session::checkLoginUser(); 43 | 44 | if (!isset($_POST['addressing_id'])) { 45 | echo 0; 46 | } 47 | $addressing_id = $_POST['addressing_id']; 48 | $old_execution = ini_set("max_execution_time", "0"); 49 | $addressing = new Addressing(); 50 | $addressing->getFromDB($addressing_id); 51 | $pingInfo = new PingInfo(); 52 | $pingInfo->updateAnAddressing($addressing); 53 | ini_set("max_execution_time", $old_execution); 54 | 55 | echo 1; 56 | -------------------------------------------------------------------------------- /front/addressing.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | 31 | use Glpi\Exception\Http\AccessDeniedHttpException; 32 | use GlpiPlugin\Addressing\Addressing; 33 | 34 | Session::checkLoginUser(); 35 | 36 | $Addressing = new Addressing(); 37 | 38 | if (isset($_GET['action']) && $_GET['action'] == 'isName') { 39 | if ($Addressing->canView() || Session::haveRight("config", UPDATE)) { 40 | $item = new $_GET['type'](); 41 | $datas = $item->find(['name' => ['LIKE', $_GET['name']]]); 42 | if (count($datas) > 0) { 43 | echo json_encode(true); 44 | } else { 45 | echo json_encode(false); 46 | } 47 | } 48 | } else { 49 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class); 50 | 51 | if ($Addressing->canView() || Session::haveRight("config", UPDATE)) { 52 | Search::show(Addressing::class); 53 | } else { 54 | throw new AccessDeniedHttpException(); 55 | } 56 | 57 | Html::footer(); 58 | } 59 | -------------------------------------------------------------------------------- /sql/empty-2.0.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | `alloted_ip` tinyint(1) NOT NULL default '0', 10 | `double_ip` tinyint(1) NOT NULL default '0', 11 | `free_ip` tinyint(1) NOT NULL default '0', 12 | `reserved_ip` tinyint(1) NOT NULL default '0', 13 | `use_ping` tinyint(1) NOT NULL default '0', 14 | `comment` text collate utf8_unicode_ci, 15 | `is_deleted` tinyint(1) NOT NULL default '0', 16 | PRIMARY KEY (`id`), 17 | KEY `name` (`name`), 18 | KEY `entities_id` (`entities_id`), 19 | KEY `networks_id` (`networks_id`), 20 | KEY `is_deleted` (`is_deleted`) 21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 22 | 23 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 24 | CREATE TABLE `glpi_plugin_addressing_configs` ( 25 | `id` int(11) NOT NULL auto_increment, 26 | `alloted_ip` tinyint(1) NOT NULL default '0', 27 | `double_ip` tinyint(1) NOT NULL default '0', 28 | `free_ip` tinyint(1) NOT NULL default '0', 29 | `reserved_ip` tinyint(1) NOT NULL default '0', 30 | `use_ping` tinyint(1) NOT NULL default '0', 31 | `used_system` tinyint(1) NOT NULL default '0', 32 | PRIMARY KEY (`id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | 35 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 36 | 37 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 38 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 39 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 40 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 41 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 42 | -------------------------------------------------------------------------------- /sql/update-1.8.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_addressing` RENAME `glpi_plugin_addressing_addressings`; 2 | ALTER TABLE `glpi_plugin_addressing_addressings` 3 | CHANGE `ID` `id` int(11) NOT NULL auto_increment, 4 | CHANGE `FK_entities` `entities_id` int(11) NOT NULL default '0', 5 | CHANGE `name` `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | CHANGE `network` `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | CHANGE `ipdeb` `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | CHANGE `ipfin` `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | CHANGE `ip_alloted` `alloted_ip` tinyint(1) NOT NULL default '0', 10 | CHANGE `ip_double` `double_ip` tinyint(1) NOT NULL default '0', 11 | CHANGE `ip_free` `free_ip` tinyint(1) NOT NULL default '0', 12 | CHANGE `ip_reserved` `reserved_ip` tinyint(1) NOT NULL default '0', 13 | CHANGE `ping` `use_ping` tinyint(1) NOT NULL default '0', 14 | DROP `link`, 15 | CHANGE `comments` `comment` text collate utf8_unicode_ci, 16 | CHANGE `deleted` `is_deleted` tinyint(1) NOT NULL default '0', 17 | ADD INDEX (`name`), 18 | ADD INDEX (`entities_id`), 19 | ADD INDEX (`networks_id`), 20 | ADD INDEX (`is_deleted`); 21 | 22 | ALTER TABLE `glpi_plugin_addressing_display` RENAME `glpi_plugin_addressing_configs`; 23 | 24 | ALTER TABLE `glpi_plugin_addressing_configs` 25 | CHANGE `ID` `id` int(11) NOT NULL auto_increment, 26 | CHANGE `ip_alloted` `alloted_ip` tinyint(1) NOT NULL default '0', 27 | CHANGE `ip_double` `double_ip` tinyint(1) NOT NULL default '0', 28 | CHANGE `ip_free` `free_ip` tinyint(1) NOT NULL default '0', 29 | CHANGE `ip_reserved` `reserved_ip` tinyint(1) NOT NULL default '0', 30 | CHANGE `ping` `use_ping` tinyint(1) NOT NULL default '0', 31 | CHANGE `system` `used_system` tinyint(1) NOT NULL default '0'; 32 | 33 | ALTER TABLE `glpi_plugin_addressing_profiles` 34 | CHANGE `ID` `id` int(11) NOT NULL auto_increment, 35 | ADD `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)', 36 | CHANGE `addressing` `addressing` char(1) collate utf8_unicode_ci default NULL, 37 | ADD INDEX (`profiles_id`); 38 | 39 | DELETE FROM `glpi_displaypreferences` WHERE `itemtype` = 5000 AND `num` = 5; -------------------------------------------------------------------------------- /ajax/ipcomment.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | // ---------------------------------------------------------------------- 31 | // Original Author of file: Alban Lesellier 32 | // ---------------------------------------------------------------------- 33 | 34 | 35 | use GlpiPlugin\Addressing\IpComment; 36 | 37 | Session::checkRight('plugin_addressing', UPDATE); 38 | header("Content-Type: application/json; charset=UTF-8"); 39 | Html::header_nocache(); 40 | 41 | Session::checkLoginUser(); 42 | 43 | if (!isset($_POST['addressing_id'])) { 44 | echo json_encode(0); 45 | } 46 | if (!isset($_POST['ipname'])) { 47 | echo json_encode(0); 48 | } 49 | 50 | $addressing_id = $_POST['addressing_id']; 51 | $ipname = $_POST['ipname']; 52 | $content = $_POST['contentC']; 53 | 54 | $ipcomment = new IpComment(); 55 | if ($ipcomment->getFromDBByCrit(['plugin_addressing_addressings_id' => $addressing_id, 'ipname' => $ipname])) { 56 | $ipcomment->update(['id' => $ipcomment->getID(), 'comments' => $content]); 57 | } else { 58 | $ipcomment->add(['plugin_addressing_addressings_id' => $addressing_id, 'ipname' => $ipname, 'comments' => $content]); 59 | } 60 | 61 | 62 | echo json_encode(0); 63 | -------------------------------------------------------------------------------- /sql/empty-1.5.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing`; 2 | CREATE TABLE `glpi_plugin_addressing` ( 3 | `ID` int(11) NOT NULL auto_increment, 4 | `FK_entities` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', 6 | `network` smallint(6) NOT NULL default '0', 7 | `ipdebut1` smallint(6) NULL, 8 | `ipdebut2` smallint(6) NULL, 9 | `ipdebut3` smallint(6) NULL, 10 | `ipdebut4` smallint(6) NULL, 11 | `ipfin4` smallint(6) NULL, 12 | `ping` smallint(6) NOT NULL default '0', 13 | `link` smallint(6) NOT NULL default '1', 14 | `comments` text, 15 | `deleted` smallint(6) NOT NULL default '0', 16 | PRIMARY KEY (`ID`) 17 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 18 | 19 | DROP TABLE IF EXISTS `glpi_plugin_addressing_display`; 20 | CREATE TABLE `glpi_plugin_addressing_display` ( 21 | `ID` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , 22 | `ip_alloted` smallint(6) NOT NULL default '0', 23 | `ip_double` smallint(6) NOT NULL default '0', 24 | `ip_free` smallint(6) NOT NULL default '0', 25 | `ip_reserved` smallint(6) NOT NULL default '0', 26 | `ping` smallint(6) NOT NULL default '0', 27 | `system` smallint(6) NOT NULL default '0' 28 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 29 | 30 | INSERT INTO `glpi_plugin_addressing_display` ( `ID`, `ip_alloted`,`ip_double`,`ip_free`,`ip_reserved`,`ping`,`system`) VALUES ('1','1','1','1','1','0','0'); 31 | 32 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 33 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 34 | `ID` int(11) NOT NULL auto_increment, 35 | `name` varchar(255) default NULL, 36 | `interface` varchar(50) NOT NULL default 'addressing', 37 | `is_default` enum('0','1') NOT NULL default '0', 38 | `addressing` char(1) default NULL, 39 | PRIMARY KEY (`ID`), 40 | KEY `interface` (`interface`) 41 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 42 | 43 | INSERT INTO `glpi_display` ( `ID` , `type` , `num` , `rank` , `FK_users` ) VALUES (NULL,'5000','2','2','0'); 44 | INSERT INTO `glpi_display` ( `ID` , `type` , `num` , `rank` , `FK_users` ) VALUES (NULL,'5000','3','3','0'); 45 | INSERT INTO `glpi_display` ( `ID` , `type` , `num` , `rank` , `FK_users` ) VALUES (NULL,'5000','4','4','0'); 46 | INSERT INTO `glpi_display` ( `ID` , `type` , `num` , `rank` , `FK_users` ) VALUES (NULL,'5000','5','5','0'); -------------------------------------------------------------------------------- /sql/empty-1.7.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing`; 2 | CREATE TABLE `glpi_plugin_addressing` ( 3 | `ID` int(11) NOT NULL auto_increment, 4 | `FK_entities` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', 6 | `network` smallint(6) NOT NULL default '0', 7 | `ipdeb` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', 8 | `ipfin` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', 9 | `ip_alloted` smallint(6) NOT NULL default '0', 10 | `ip_double` smallint(6) NOT NULL default '0', 11 | `ip_free` smallint(6) NOT NULL default '0', 12 | `ip_reserved` smallint(6) NOT NULL default '0', 13 | `ping` smallint(6) NOT NULL default '0', 14 | `link` smallint(6) NOT NULL default '1', 15 | `comments` text, 16 | `deleted` smallint(6) NOT NULL default '0', 17 | PRIMARY KEY (`ID`) 18 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 19 | 20 | DROP TABLE IF EXISTS `glpi_plugin_addressing_display`; 21 | CREATE TABLE `glpi_plugin_addressing_display` ( 22 | `ID` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , 23 | `ip_alloted` smallint(6) NOT NULL default '0', 24 | `ip_double` smallint(6) NOT NULL default '0', 25 | `ip_free` smallint(6) NOT NULL default '0', 26 | `ip_reserved` smallint(6) NOT NULL default '0', 27 | `ping` smallint(6) NOT NULL default '0', 28 | `system` smallint(6) NOT NULL default '0' 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 | 31 | INSERT INTO `glpi_plugin_addressing_display` ( `ID`, `ip_alloted`,`ip_double`,`ip_free`,`ip_reserved`,`ping`,`system`) VALUES ('1','1','1','1','1','0','0'); 32 | 33 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 34 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 35 | `ID` int(11) NOT NULL auto_increment, 36 | `name` varchar(255) default NULL, 37 | `addressing` char(1) default NULL, 38 | PRIMARY KEY (`ID`), 39 | KEY `name` (`name`) 40 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 41 | 42 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,2,2,0); 43 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,3,6,0); 44 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,4,5,0); 45 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,5,7,0); 46 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,1000,3,0); 47 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,1001,4,0); -------------------------------------------------------------------------------- /sql/empty-1.6.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing`; 2 | CREATE TABLE `glpi_plugin_addressing` ( 3 | `ID` int(11) NOT NULL auto_increment, 4 | `FK_entities` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci NOT NULL default '', 6 | `network` smallint(6) NOT NULL default '0', 7 | `ipdeb` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', 8 | `ipfin` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', 9 | `ip_alloted` smallint(6) NOT NULL default '0', 10 | `ip_double` smallint(6) NOT NULL default '0', 11 | `ip_free` smallint(6) NOT NULL default '0', 12 | `ip_reserved` smallint(6) NOT NULL default '0', 13 | `ping` smallint(6) NOT NULL default '0', 14 | `link` smallint(6) NOT NULL default '1', 15 | `comments` text, 16 | `deleted` smallint(6) NOT NULL default '0', 17 | PRIMARY KEY (`ID`) 18 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 19 | 20 | DROP TABLE IF EXISTS `glpi_plugin_addressing_display`; 21 | CREATE TABLE `glpi_plugin_addressing_display` ( 22 | `ID` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , 23 | `ip_alloted` smallint(6) NOT NULL default '0', 24 | `ip_double` smallint(6) NOT NULL default '0', 25 | `ip_free` smallint(6) NOT NULL default '0', 26 | `ip_reserved` smallint(6) NOT NULL default '0', 27 | `ping` smallint(6) NOT NULL default '0', 28 | `system` smallint(6) NOT NULL default '0' 29 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 | 31 | INSERT INTO `glpi_plugin_addressing_display` ( `ID`, `ip_alloted`,`ip_double`,`ip_free`,`ip_reserved`,`ping`,`system`) VALUES ('1','1','1','1','1','0','0'); 32 | 33 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 34 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 35 | `ID` int(11) NOT NULL auto_increment, 36 | `name` varchar(255) default NULL, 37 | `interface` varchar(50) NOT NULL default 'addressing', 38 | `is_default` enum('0','1') NOT NULL default '0', 39 | `addressing` char(1) default NULL, 40 | PRIMARY KEY (`ID`), 41 | KEY `interface` (`interface`) 42 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 43 | 44 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,2,2,0); 45 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,3,6,0); 46 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,4,5,0); 47 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,5,7,0); 48 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,1000,3,0); 49 | INSERT INTO `glpi_display` (`type` , `num` , `rank` , `FK_users` ) VALUES (5000,1001,4,0); -------------------------------------------------------------------------------- /sql/empty-1.8.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | `alloted_ip` tinyint(1) NOT NULL default '0', 10 | `double_ip` tinyint(1) NOT NULL default '0', 11 | `free_ip` tinyint(1) NOT NULL default '0', 12 | `reserved_ip` tinyint(1) NOT NULL default '0', 13 | `use_ping` tinyint(1) NOT NULL default '0', 14 | `comment` text collate utf8_unicode_ci, 15 | `is_deleted` tinyint(1) NOT NULL default '0', 16 | PRIMARY KEY (`id`), 17 | KEY `name` (`name`), 18 | KEY `entities_id` (`entities_id`), 19 | KEY `networks_id` (`networks_id`), 20 | KEY `is_deleted` (`is_deleted`) 21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 22 | 23 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 24 | CREATE TABLE `glpi_plugin_addressing_configs` ( 25 | `id` int(11) NOT NULL auto_increment, 26 | `alloted_ip` tinyint(1) NOT NULL default '0', 27 | `double_ip` tinyint(1) NOT NULL default '0', 28 | `free_ip` tinyint(1) NOT NULL default '0', 29 | `reserved_ip` tinyint(1) NOT NULL default '0', 30 | `use_ping` tinyint(1) NOT NULL default '0', 31 | `used_system` tinyint(1) NOT NULL default '0', 32 | PRIMARY KEY (`id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | 35 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 36 | 37 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 38 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 39 | `id` int(11) NOT NULL auto_increment, 40 | `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)', 41 | `addressing` char(1) collate utf8_unicode_ci default NULL, 42 | PRIMARY KEY (`id`), 43 | KEY `profiles_id` (`profiles_id`) 44 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 45 | 46 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 47 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 48 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 49 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 50 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 51 | -------------------------------------------------------------------------------- /sql/empty-1.9.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | `alloted_ip` tinyint(1) NOT NULL default '0', 10 | `double_ip` tinyint(1) NOT NULL default '0', 11 | `free_ip` tinyint(1) NOT NULL default '0', 12 | `reserved_ip` tinyint(1) NOT NULL default '0', 13 | `use_ping` tinyint(1) NOT NULL default '0', 14 | `comment` text collate utf8_unicode_ci, 15 | `is_deleted` tinyint(1) NOT NULL default '0', 16 | PRIMARY KEY (`id`), 17 | KEY `name` (`name`), 18 | KEY `entities_id` (`entities_id`), 19 | KEY `networks_id` (`networks_id`), 20 | KEY `is_deleted` (`is_deleted`) 21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 22 | 23 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 24 | CREATE TABLE `glpi_plugin_addressing_configs` ( 25 | `id` int(11) NOT NULL auto_increment, 26 | `alloted_ip` tinyint(1) NOT NULL default '0', 27 | `double_ip` tinyint(1) NOT NULL default '0', 28 | `free_ip` tinyint(1) NOT NULL default '0', 29 | `reserved_ip` tinyint(1) NOT NULL default '0', 30 | `use_ping` tinyint(1) NOT NULL default '0', 31 | `used_system` tinyint(1) NOT NULL default '0', 32 | PRIMARY KEY (`id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | 35 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 36 | 37 | DROP TABLE IF EXISTS `glpi_plugin_addressing_profiles`; 38 | CREATE TABLE `glpi_plugin_addressing_profiles` ( 39 | `id` int(11) NOT NULL auto_increment, 40 | `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)', 41 | `addressing` char(1) collate utf8_unicode_ci default NULL, 42 | `use_ping_in_equipment` char(1) collate utf8_unicode_ci default NULL, 43 | PRIMARY KEY (`id`), 44 | KEY `profiles_id` (`profiles_id`) 45 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 46 | 47 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 48 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 49 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 50 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 51 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 52 | -------------------------------------------------------------------------------- /sql/empty-2.4.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 8 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 9 | `alloted_ip` tinyint(1) NOT NULL default '0', 10 | `double_ip` tinyint(1) NOT NULL default '0', 11 | `free_ip` tinyint(1) NOT NULL default '0', 12 | `reserved_ip` tinyint(1) NOT NULL default '0', 13 | `use_ping` tinyint(1) NOT NULL default '0', 14 | `comment` text collate utf8_unicode_ci, 15 | `is_deleted` tinyint(1) NOT NULL default '0', 16 | PRIMARY KEY (`id`), 17 | KEY `name` (`name`), 18 | KEY `entities_id` (`entities_id`), 19 | KEY `networks_id` (`networks_id`), 20 | KEY `is_deleted` (`is_deleted`) 21 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 22 | 23 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 24 | CREATE TABLE `glpi_plugin_addressing_configs` ( 25 | `id` int(11) NOT NULL auto_increment, 26 | `alloted_ip` tinyint(1) NOT NULL default '0', 27 | `double_ip` tinyint(1) NOT NULL default '0', 28 | `free_ip` tinyint(1) NOT NULL default '0', 29 | `reserved_ip` tinyint(1) NOT NULL default '0', 30 | `use_ping` tinyint(1) NOT NULL default '0', 31 | `used_system` tinyint(1) NOT NULL default '0', 32 | PRIMARY KEY (`id`) 33 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 34 | 35 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 36 | CREATE TABLE `glpi_plugin_addressing_filters` ( 37 | `id` int(11) NOT NULL auto_increment, 38 | `entities_id` int(11) NOT NULL default '0', 39 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 40 | `name` varchar(255) collate utf8_unicode_ci default NULL, 41 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 42 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 43 | `type` varchar(255) collate utf8_unicode_ci default NULL, 44 | PRIMARY KEY (`id`), 45 | KEY `entities_id` (`entities_id`), 46 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 47 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 48 | 49 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 50 | 51 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 52 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 53 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 54 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 55 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 56 | -------------------------------------------------------------------------------- /ajax/addressing.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | 31 | use GlpiPlugin\Addressing\Filter; 32 | use GlpiPlugin\Addressing\Ping_Equipment; 33 | use GlpiPlugin\Addressing\ReserveIp; 34 | 35 | Session::checkLoginUser(); 36 | Session::checkRight('plugin_addressing', UPDATE); 37 | Html::header_nocache(); 38 | header("Content-Type: text/html; charset=UTF-8"); 39 | 40 | if (isset($_POST['action']) && $_POST['action'] == 'viewFilter') { 41 | if (isset($_POST['items_id']) 42 | && isset($_POST["id"])) { 43 | $filter = new Filter(); 44 | $filter->showForm($_POST["id"], ['items_id' => $_POST['items_id']]); 45 | } else { 46 | echo __('Access denied'); 47 | } 48 | } elseif (isset($_POST['action']) && $_POST['action'] == 'entities_networkip') { 49 | IPNetwork::showIPNetworkProperties($_POST['entities_id']); 50 | } elseif (isset($_POST['action']) && $_POST['action'] == 'entities_location') { 51 | Dropdown::show('Location', ['name' => "locations_id", 52 | 'value' => $_POST["value"], 53 | 'entity' => $_POST['entities_id']]); 54 | } elseif (isset($_POST['action']) && $_POST['action'] == 'entities_fqdn') { 55 | Dropdown::show('FQDN', ['name' => "fqdns_id", 56 | 'value' => $_POST["value"], 57 | 'entity' => $_POST['entities_id']]); 58 | } elseif ($_GET['action'] == 'ping') { 59 | Html::popHeader(__s('IP ping', 'addressing'), $_SERVER['PHP_SELF']); 60 | 61 | if (filter_var($_GET["ip"], FILTER_VALIDATE_IP)) { 62 | $Ping_Equipment = new Ping_Equipment(); 63 | $Ping_Equipment->showIPForm($_GET["ip"]); 64 | } 65 | Html::popFooter(); 66 | } else { 67 | Html::popHeader(__s('IP reservation', 'addressing'), $_SERVER['PHP_SELF']); 68 | 69 | if (filter_var($_GET["ip"], FILTER_VALIDATE_IP)) { 70 | $ReserveIp = new ReserveIp(); 71 | $ReserveIp->showReservationForm($_GET["ip"], $_GET['id_addressing'], $_GET['rand']); 72 | } 73 | 74 | Html::popFooter(); 75 | } 76 | -------------------------------------------------------------------------------- /sql/empty-2.5.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `locations_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 8 | `fqdns_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 9 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 10 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 11 | `alloted_ip` tinyint(1) NOT NULL default '0', 12 | `double_ip` tinyint(1) NOT NULL default '0', 13 | `free_ip` tinyint(1) NOT NULL default '0', 14 | `reserved_ip` tinyint(1) NOT NULL default '0', 15 | `use_ping` tinyint(1) NOT NULL default '0', 16 | `comment` text collate utf8_unicode_ci, 17 | `is_deleted` tinyint(1) NOT NULL default '0', 18 | PRIMARY KEY (`id`), 19 | KEY `name` (`name`), 20 | KEY `entities_id` (`entities_id`), 21 | KEY `networks_id` (`networks_id`), 22 | KEY `is_deleted` (`is_deleted`) 23 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 24 | 25 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 26 | CREATE TABLE `glpi_plugin_addressing_configs` ( 27 | `id` int(11) NOT NULL auto_increment, 28 | `alloted_ip` tinyint(1) NOT NULL default '0', 29 | `double_ip` tinyint(1) NOT NULL default '0', 30 | `free_ip` tinyint(1) NOT NULL default '0', 31 | `reserved_ip` tinyint(1) NOT NULL default '0', 32 | `use_ping` tinyint(1) NOT NULL default '0', 33 | `used_system` tinyint(1) NOT NULL default '0', 34 | PRIMARY KEY (`id`) 35 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 36 | 37 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 38 | CREATE TABLE `glpi_plugin_addressing_filters` ( 39 | `id` int(11) NOT NULL auto_increment, 40 | `entities_id` int(11) NOT NULL default '0', 41 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 42 | `name` varchar(255) collate utf8_unicode_ci default NULL, 43 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 44 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 45 | `type` varchar(255) collate utf8_unicode_ci default NULL, 46 | PRIMARY KEY (`id`), 47 | KEY `entities_id` (`entities_id`), 48 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 49 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 50 | 51 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 52 | 53 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 54 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 55 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 56 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 57 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 58 | -------------------------------------------------------------------------------- /sql/empty-2.7.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `locations_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 8 | `fqdns_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 9 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 10 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 11 | `alloted_ip` tinyint(1) NOT NULL default '0', 12 | `double_ip` tinyint(1) NOT NULL default '0', 13 | `free_ip` tinyint(1) NOT NULL default '0', 14 | `reserved_ip` tinyint(1) NOT NULL default '0', 15 | `use_ping` tinyint(1) NOT NULL default '0', 16 | `comment` text collate utf8_unicode_ci, 17 | `is_deleted` tinyint(1) NOT NULL default '0', 18 | PRIMARY KEY (`id`), 19 | KEY `name` (`name`), 20 | KEY `entities_id` (`entities_id`), 21 | KEY `networks_id` (`networks_id`), 22 | KEY `is_deleted` (`is_deleted`) 23 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 24 | 25 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 26 | CREATE TABLE `glpi_plugin_addressing_configs` ( 27 | `id` int(11) NOT NULL auto_increment, 28 | `alloted_ip` tinyint(1) NOT NULL default '0', 29 | `double_ip` tinyint(1) NOT NULL default '0', 30 | `free_ip` tinyint(1) NOT NULL default '0', 31 | `reserved_ip` tinyint(1) NOT NULL default '0', 32 | `use_ping` tinyint(1) NOT NULL default '0', 33 | `used_system` tinyint(1) NOT NULL default '0', 34 | PRIMARY KEY (`id`) 35 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 36 | 37 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 38 | CREATE TABLE `glpi_plugin_addressing_filters` ( 39 | `id` int(11) NOT NULL auto_increment, 40 | `entities_id` int(11) NOT NULL default '0', 41 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 42 | `name` varchar(255) collate utf8_unicode_ci default NULL, 43 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 44 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 45 | `type` varchar(255) collate utf8_unicode_ci default NULL, 46 | PRIMARY KEY (`id`), 47 | KEY `entities_id` (`entities_id`), 48 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 49 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 50 | 51 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 52 | 53 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 54 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 55 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 56 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 57 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 58 | -------------------------------------------------------------------------------- /ajax/ping.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | // ---------------------------------------------------------------------- 31 | // Original Author of file: Alexandre DELAUNAY 32 | // Purpose of file: 33 | // ---------------------------------------------------------------------- 34 | 35 | use Glpi\Exception\Http\NotFoundHttpException; 36 | use GlpiPlugin\Addressing\Config; 37 | use GlpiPlugin\Addressing\Ping_Equipment; 38 | use GlpiPlugin\Addressing\PingInfo; 39 | use GlpiPlugin\Addressing\Report; 40 | 41 | Session::checkRight('plugin_addressing', UPDATE); 42 | header("Content-Type: text/html; charset=UTF-8"); 43 | Html::header_nocache(); 44 | 45 | Session::checkLoginUser(); 46 | 47 | if (!isset($_POST['ip']) || !filter_var($_POST["ip"], FILTER_VALIDATE_IP)) { 48 | throw new NotFoundHttpException(); 49 | } 50 | $ip = $_POST['ip']; 51 | $itemtype = $_POST['itemtype']; 52 | $items_id = $_POST['items_id']; 53 | 54 | $config = new Config(); 55 | $config->getFromDB('1'); 56 | $system = $config->fields["used_system"]; 57 | 58 | $ping_equip = new Ping_Equipment(); 59 | list($message, $error) = $ping_equip->ping($system, $ip); 60 | 61 | $plugin_addressing_pinginfo = new PingInfo(); 62 | 63 | $ping_value = $ping_equip->ping($system, $ip, "true"); 64 | 65 | $id = 0; 66 | $ping_date = 0; 67 | if ($ping_value == false || $ping_value == true) { 68 | $ping_date = $_SESSION['glpi_currenttime']; 69 | if ($pings = $plugin_addressing_pinginfo->find(['itemtype' => $itemtype, 70 | 'items_id' => $items_id])) { 71 | foreach ($pings as $ping) { 72 | $id = $ping['id']; 73 | 74 | $plugin_addressing_pinginfo->update(['id' => $id, 75 | 'ping_response' => $ping_value, 76 | 'ping_date' => $ping_date]); 77 | } 78 | } else { 79 | $num = "IP".Report::ip2string($ip); 80 | $plugin_addressing_pinginfo->add(['ping_response' => $ping_value, 81 | 'ping_date' => $ping_date, 'itemtype' => $itemtype, 82 | 'items_id' => $items_id, 'ipname' => $num]); 83 | } 84 | } 85 | 86 | echo $ping_response = $message; 87 | -------------------------------------------------------------------------------- /front/addressing.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | use GlpiPlugin\Addressing\Addressing; 31 | 32 | Session::checkLoginUser(); 33 | 34 | if (!isset($_GET["id"])) { 35 | $_GET["id"] = ""; 36 | } 37 | 38 | $start = $_GET["start"] ?? 0; 39 | 40 | $addressing = new Addressing(); 41 | 42 | if (isset($_POST["add"])) { 43 | $addressing->check(-1, CREATE, $_POST); 44 | if (!empty($_POST["name"]) 45 | && !empty($_POST["begin_ip"]) 46 | && !empty($_POST["end_ip"])) { 47 | $newID = $addressing->add($_POST); 48 | } else { 49 | Session::addMessageAfterRedirect( 50 | __('Problem when adding, required fields are not here', 'addressing'), 51 | false, 52 | ERROR 53 | ); 54 | } 55 | if ($_SESSION['glpibackcreated']) { 56 | Html::redirect($addressing->getFormURL() . "?id=" . $newID); 57 | } 58 | Html::back(); 59 | } elseif (isset($_POST["delete"])) { 60 | $addressing->check($_POST['id'], DELETE); 61 | $addressing->delete($_POST); 62 | $addressing->redirectToList(); 63 | } elseif (isset($_POST["restore"])) { 64 | $addressing->check($_POST['id'], PURGE); 65 | $addressing->restore($_POST); 66 | $addressing->redirectToList(); 67 | } elseif (isset($_POST["purge"])) { 68 | $addressing->check($_POST['id'], PURGE); 69 | $addressing->delete($_POST, 1); 70 | $addressing->redirectToList(); 71 | } elseif (isset($_POST["update"])) { 72 | $addressing->check($_POST['id'], UPDATE); 73 | if (!empty($_POST["name"]) 74 | && !empty($_POST["begin_ip"]) 75 | && !empty($_POST["end_ip"])) { 76 | $addressing->update($_POST); 77 | } else { 78 | Session::addMessageAfterRedirect( 79 | __('Problem when adding, required fields are not here', 'addressing'), 80 | false, 81 | ERROR 82 | ); 83 | } 84 | Html::back(); 85 | } elseif (isset($_POST["search"])) { 86 | $addressing->checkGlobal(READ); 87 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class); 88 | $addressing->display($_POST); 89 | Html::footer(); 90 | } else { 91 | $addressing->checkGlobal(READ); 92 | Html::header(Addressing::getTypeName(2), '', "tools", Addressing::class); 93 | $addressing->display($_GET); 94 | Html::footer(); 95 | } 96 | -------------------------------------------------------------------------------- /setup.php: -------------------------------------------------------------------------------- 1 | . 28 | -------------------------------------------------------------------------- 29 | */ 30 | 31 | use Glpi\Plugin\Hooks; 32 | use GlpiPlugin\Addressing\Addressing; 33 | use GlpiPlugin\Addressing\PingInfo; 34 | use GlpiPlugin\Addressing\Profile; 35 | 36 | define('PLUGIN_ADDRESSING_VERSION', '3.1.1'); 37 | 38 | if (!defined("PLUGIN_ADDRESSING_DIR")) { 39 | define("PLUGIN_ADDRESSING_DIR", Plugin::getPhpDir("addressing")); 40 | define("PLUGIN_ADDRESSING_DIR_NOFULL", Plugin::getPhpDir("addressing", false)); 41 | } 42 | 43 | // Init the hooks of the plugins -Needed 44 | function plugin_init_addressing() 45 | { 46 | global $PLUGIN_HOOKS; 47 | 48 | $PLUGIN_HOOKS['csrf_compliant']['addressing'] = true; 49 | 50 | $PLUGIN_HOOKS['change_profile']['addressing'] = [Profile::class, 'initProfile']; 51 | 52 | Plugin::registerClass( 53 | Profile::class, 54 | ['addtabon' => ['Profile']] 55 | ); 56 | 57 | if (Session::getLoginUserID()) { 58 | if (Session::haveRight('plugin_addressing', READ)) { 59 | $PLUGIN_HOOKS["menu_toadd"]['addressing'] = ['tools' => Addressing::class]; 60 | } 61 | 62 | if (Session::haveRight('plugin_addressing', UPDATE)) { 63 | $PLUGIN_HOOKS['use_massive_action']['addressing'] = 1; 64 | } 65 | 66 | // Config page 67 | if (Session::haveRight("config", UPDATE)) { 68 | $PLUGIN_HOOKS['config_page']['addressing'] = 'front/config.php'; 69 | } 70 | 71 | $PLUGIN_HOOKS['post_item_form']['addressing'] = [PingInfo::class, 72 | 'getPingResponseForItem']; 73 | 74 | // Add specific files to add to the header : javascript or css 75 | if (isset($_SESSION['glpiactiveprofile']['interface']) 76 | && $_SESSION['glpiactiveprofile']['interface'] == 'central') { 77 | $PLUGIN_HOOKS[Hooks::ADD_CSS]['addressing'] = "addressing.css"; 78 | $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['addressing'] = 'addressing.js'; 79 | } 80 | } 81 | } 82 | 83 | 84 | // Get the name and the version of the plugin - Needed 85 | function plugin_version_addressing() 86 | { 87 | return [ 88 | 'name' => _n('IP Addressing', 'IP Addressing', 2, 'addressing'), 89 | 'version' => PLUGIN_ADDRESSING_VERSION, 90 | 'author' => 'Gilles Portheault, Xavier Caillaud, Remi Collet, Nelly Mahu-Lasson', 91 | 'license' => 'GPLv2+', 92 | 'homepage' => 'https://github.com/pluginsGLPI/addressing', 93 | 'requirements' => [ 94 | 'glpi' => [ 95 | 'min' => '11.0', 96 | 'max' => '12.0', 97 | ], 98 | ]]; 99 | } 100 | -------------------------------------------------------------------------------- /sql/empty-2.9.1.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int(11) NOT NULL auto_increment, 4 | `entities_id` int(11) NOT NULL default '0', 5 | `name` varchar(255) collate utf8_unicode_ci default NULL, 6 | `networks_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `locations_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 8 | `fqdns_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 9 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 10 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 11 | `alloted_ip` tinyint(1) NOT NULL default '0', 12 | `double_ip` tinyint(1) NOT NULL default '0', 13 | `free_ip` tinyint(1) NOT NULL default '0', 14 | `reserved_ip` tinyint(1) NOT NULL default '0', 15 | `use_ping` tinyint(1) NOT NULL default '0', 16 | `comment` text collate utf8_unicode_ci, 17 | `is_deleted` tinyint(1) NOT NULL default '0', 18 | PRIMARY KEY (`id`), 19 | KEY `name` (`name`), 20 | KEY `entities_id` (`entities_id`), 21 | KEY `networks_id` (`networks_id`), 22 | KEY `is_deleted` (`is_deleted`) 23 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 24 | 25 | DROP TABLE IF EXISTS `glpi_plugin_addressing_pinginfos`; 26 | CREATE TABLE `glpi_plugin_addressing_pinginfos` ( 27 | `id` int(11) NOT NULL auto_increment, 28 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 29 | `ipname` varchar(255) collate utf8_unicode_ci default NULL, 30 | `items_id` int(11) NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)', 31 | `itemtype` varchar(100) collate utf8_unicode_ci COMMENT 'see .class.php file', 32 | `ping_response` tinyint(1) NOT NULL default '0', 33 | `ping_date` datetime DEFAULT NULL, 34 | PRIMARY KEY (`id`), 35 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 36 | KEY `ipname` (`ipname`), 37 | KEY `ping_response` (`ping_response`), 38 | KEY `ping_date` (`ping_date`) 39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 40 | 41 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 42 | CREATE TABLE `glpi_plugin_addressing_configs` ( 43 | `id` int(11) NOT NULL auto_increment, 44 | `alloted_ip` tinyint(1) NOT NULL default '0', 45 | `double_ip` tinyint(1) NOT NULL default '0', 46 | `free_ip` tinyint(1) NOT NULL default '0', 47 | `reserved_ip` tinyint(1) NOT NULL default '0', 48 | `use_ping` tinyint(1) NOT NULL default '0', 49 | `used_system` tinyint(1) NOT NULL default '0', 50 | PRIMARY KEY (`id`) 51 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 52 | 53 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 54 | CREATE TABLE `glpi_plugin_addressing_filters` ( 55 | `id` int(11) NOT NULL auto_increment, 56 | `entities_id` int(11) NOT NULL default '0', 57 | `plugin_addressing_addressings_id` int(11) NOT NULL default '0', 58 | `name` varchar(255) collate utf8_unicode_ci default NULL, 59 | `begin_ip` varchar(255) collate utf8_unicode_ci default NULL, 60 | `end_ip` varchar(255) collate utf8_unicode_ci default NULL, 61 | `type` varchar(255) collate utf8_unicode_ci default NULL, 62 | PRIMARY KEY (`id`), 63 | KEY `entities_id` (`entities_id`), 64 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 65 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 66 | 67 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 68 | 69 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 70 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 71 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 72 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 73 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 74 | -------------------------------------------------------------------------------- /src/Config.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | namespace GlpiPlugin\Addressing; 31 | 32 | use CommonDBTM; 33 | use Dropdown; 34 | use Html; 35 | 36 | if (!defined('GLPI_ROOT')) { 37 | die("Sorry. You can't access directly to this file"); 38 | } 39 | 40 | /** 41 | * Class Config 42 | */ 43 | class Config extends CommonDBTM 44 | { 45 | 46 | public static $rightname = "plugin_addressing"; 47 | 48 | public function showForm($ID, $options = []) 49 | { 50 | 51 | $this->getFromDB($ID); 52 | 53 | $system = $this->fields["used_system"]; 54 | 55 | echo "
"; 56 | echo "
"; 57 | 58 | echo ""; 59 | echo ""; 60 | 61 | echo ""; 69 | 70 | echo ""; 71 | 72 | echo ""; 73 | echo ""; 76 | 77 | echo ""; 78 | echo ""; 81 | echo ""; 82 | 83 | echo ""; 84 | echo ""; 87 | 88 | echo ""; 89 | echo ""; 92 | 93 | echo ""; 94 | 95 | echo ""; 96 | echo ""; 99 | echo ""; 100 | 101 | echo ""; 106 | echo "
".__('System for ping', 'addressing')."
"; 62 | $array = [0 => __('Linux ping', 'addressing'), 63 | 1 => __('Windows', 'addressing'), 64 | 2 => __('Linux fping', 'addressing'), 65 | 3 => __('BSD ping', 'addressing'), 66 | 4 => __('MacOSX ping', 'addressing')]; 67 | Dropdown::ShowFromArray("used_system", $array, ['value' => $system]); 68 | echo "
".__('Display', 'addressing')."
".__('Assigned IP', 'addressing').""; 74 | Dropdown::showYesNo("alloted_ip", $this->fields["alloted_ip"]); 75 | echo "".__('Free IP', 'addressing').""; 79 | Dropdown::showYesNo("free_ip", $this->fields["free_ip"]); 80 | echo "
".__('Same IP', 'addressing').""; 85 | Dropdown::showYesNo("double_ip", $this->fields["double_ip"]); 86 | echo "".__('Reserved IP', 'addressing').""; 90 | Dropdown::showYesNo("reserved_ip", $this->fields["reserved_ip"]); 91 | echo "
".__('Use Ping', 'addressing').""; 97 | Dropdown::showYesNo("use_ping", $this->fields["use_ping"]); 98 | echo "
"; 102 | echo Html::hidden('id', ['value' => 1]); 103 | echo "
"; 104 | echo Html::submit(_sx('button', 'Post'), ['name' => 'update', 'class' => 'btn btn-primary me-2']); 105 | echo "
"; 107 | Html::closeForm(); 108 | echo "
"; 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /sql/empty-3.0.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int unsigned NOT NULL auto_increment, 4 | `entities_id` int unsigned NOT NULL default '0', 5 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 6 | `networks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 7 | `locations_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 8 | `fqdns_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 9 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 10 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 11 | `alloted_ip` tinyint NOT NULL default '0', 12 | `double_ip` tinyint NOT NULL default '0', 13 | `free_ip` tinyint NOT NULL default '0', 14 | `reserved_ip` tinyint NOT NULL default '0', 15 | `use_ping` tinyint NOT NULL default '0', 16 | `comment` text collate utf8mb4_unicode_ci, 17 | `is_deleted` tinyint NOT NULL default '0', 18 | PRIMARY KEY (`id`), 19 | KEY `name` (`name`), 20 | KEY `entities_id` (`entities_id`), 21 | KEY `networks_id` (`networks_id`), 22 | KEY `is_deleted` (`is_deleted`) 23 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 24 | 25 | DROP TABLE IF EXISTS `glpi_plugin_addressing_pinginfos`; 26 | CREATE TABLE `glpi_plugin_addressing_pinginfos` ( 27 | `id` int unsigned NOT NULL auto_increment, 28 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 29 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 30 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)', 31 | `itemtype` varchar(100) collate utf8mb4_unicode_ci COMMENT 'see .class.php file', 32 | `ping_response` tinyint NOT NULL default '0', 33 | `ping_date` timestamp NULL DEFAULT NULL, 34 | PRIMARY KEY (`id`), 35 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 36 | KEY `ipname` (`ipname`), 37 | KEY `ping_response` (`ping_response`), 38 | KEY `ping_date` (`ping_date`) 39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 40 | 41 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 42 | CREATE TABLE `glpi_plugin_addressing_configs` ( 43 | `id` int unsigned NOT NULL auto_increment, 44 | `alloted_ip` tinyint NOT NULL default '0', 45 | `double_ip` tinyint NOT NULL default '0', 46 | `free_ip` tinyint NOT NULL default '0', 47 | `reserved_ip` tinyint NOT NULL default '0', 48 | `use_ping` tinyint NOT NULL default '0', 49 | `used_system` tinyint NOT NULL default '0', 50 | PRIMARY KEY (`id`) 51 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 52 | 53 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 54 | CREATE TABLE `glpi_plugin_addressing_filters` ( 55 | `id` int unsigned NOT NULL auto_increment, 56 | `entities_id` int unsigned NOT NULL default '0', 57 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 58 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 59 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 60 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 61 | `type` varchar(255) collate utf8mb4_unicode_ci default NULL, 62 | PRIMARY KEY (`id`), 63 | KEY `entities_id` (`entities_id`), 64 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 65 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 66 | 67 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 68 | 69 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 70 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 71 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 72 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 73 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 74 | -------------------------------------------------------------------------------- /sql/empty-3.0.1.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int unsigned NOT NULL auto_increment, 4 | `entities_id` int unsigned NOT NULL default '0', 5 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 6 | `use_as_filter` tinyint NOT NULL default '0', 7 | `networks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 8 | `locations_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 9 | `fqdns_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 10 | `vlans_id` int unsigned NOT NULL DEFAULT '0'COMMENT 'RELATION to glpi_vlans (id)', 11 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 12 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 13 | `alloted_ip` tinyint NOT NULL default '0', 14 | `double_ip` tinyint NOT NULL default '0', 15 | `free_ip` tinyint NOT NULL default '0', 16 | `reserved_ip` tinyint NOT NULL default '0', 17 | `use_ping` tinyint NOT NULL default '0', 18 | `comment` text collate utf8mb4_unicode_ci, 19 | `is_deleted` tinyint NOT NULL default '0', 20 | PRIMARY KEY (`id`), 21 | KEY `name` (`name`), 22 | KEY `entities_id` (`entities_id`), 23 | KEY `networks_id` (`networks_id`), 24 | KEY `is_deleted` (`is_deleted`) 25 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 26 | 27 | DROP TABLE IF EXISTS `glpi_plugin_addressing_pinginfos`; 28 | CREATE TABLE `glpi_plugin_addressing_pinginfos` ( 29 | `id` int unsigned NOT NULL auto_increment, 30 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 31 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 32 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)', 33 | `itemtype` varchar(100) collate utf8mb4_unicode_ci COMMENT 'see .class.php file', 34 | `ping_response` tinyint NOT NULL default '0', 35 | `ping_date` timestamp NULL DEFAULT NULL, 36 | PRIMARY KEY (`id`), 37 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 38 | KEY `ipname` (`ipname`), 39 | KEY `ping_response` (`ping_response`), 40 | KEY `ping_date` (`ping_date`) 41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 42 | 43 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 44 | CREATE TABLE `glpi_plugin_addressing_configs` ( 45 | `id` int unsigned NOT NULL auto_increment, 46 | `alloted_ip` tinyint NOT NULL default '0', 47 | `double_ip` tinyint NOT NULL default '0', 48 | `free_ip` tinyint NOT NULL default '0', 49 | `reserved_ip` tinyint NOT NULL default '0', 50 | `use_ping` tinyint NOT NULL default '0', 51 | `used_system` tinyint NOT NULL default '0', 52 | PRIMARY KEY (`id`) 53 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 54 | 55 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 56 | CREATE TABLE `glpi_plugin_addressing_filters` ( 57 | `id` int unsigned NOT NULL auto_increment, 58 | `entities_id` int unsigned NOT NULL default '0', 59 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 60 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 61 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 62 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 63 | `type` varchar(255) collate utf8mb4_unicode_ci default NULL, 64 | PRIMARY KEY (`id`), 65 | KEY `entities_id` (`entities_id`), 66 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 67 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 68 | 69 | CREATE TABLE `glpi_plugin_addressing_ipcomments` 70 | ( 71 | `id` int unsigned NOT NULL auto_increment, 72 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 73 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 74 | `comments` LONGTEXT collate utf8mb4_unicode_ci, 75 | PRIMARY KEY (`id`), 76 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 77 | KEY `ipname` (`ipname`) 78 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 79 | 80 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 81 | 82 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',2,2,0); 83 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',3,6,0); 84 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',4,5,0); 85 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1000,3,0); 86 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'PluginAddressingAddressing',1001,4,0); 87 | -------------------------------------------------------------------------------- /sql/empty-3.1.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_addressing_addressings`; 2 | CREATE TABLE `glpi_plugin_addressing_addressings` ( 3 | `id` int unsigned NOT NULL auto_increment, 4 | `entities_id` int unsigned NOT NULL default '0', 5 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 6 | `use_as_filter` tinyint NOT NULL default '0', 7 | `networks_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_networks (id)', 8 | `locations_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_locations (id)', 9 | `fqdns_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to glpi_fqdns (id)', 10 | `vlans_id` int unsigned NOT NULL DEFAULT '0'COMMENT 'RELATION to glpi_vlans (id)', 11 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 12 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 13 | `alloted_ip` tinyint NOT NULL default '0', 14 | `double_ip` tinyint NOT NULL default '0', 15 | `free_ip` tinyint NOT NULL default '0', 16 | `reserved_ip` tinyint NOT NULL default '0', 17 | `use_ping` tinyint NOT NULL default '0', 18 | `comment` text collate utf8mb4_unicode_ci, 19 | `is_deleted` tinyint NOT NULL default '0', 20 | PRIMARY KEY (`id`), 21 | KEY `name` (`name`), 22 | KEY `entities_id` (`entities_id`), 23 | KEY `networks_id` (`networks_id`), 24 | KEY `is_deleted` (`is_deleted`) 25 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 26 | 27 | DROP TABLE IF EXISTS `glpi_plugin_addressing_pinginfos`; 28 | CREATE TABLE `glpi_plugin_addressing_pinginfos` ( 29 | `id` int unsigned NOT NULL auto_increment, 30 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 31 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 32 | `items_id` int unsigned NOT NULL default '0' COMMENT 'RELATION to various tables, according to itemtype (id)', 33 | `itemtype` varchar(100) collate utf8mb4_unicode_ci COMMENT 'see .class.php file', 34 | `ping_response` tinyint NOT NULL default '0', 35 | `ping_date` timestamp NULL DEFAULT NULL, 36 | PRIMARY KEY (`id`), 37 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 38 | KEY `ipname` (`ipname`), 39 | KEY `ping_response` (`ping_response`), 40 | KEY `ping_date` (`ping_date`) 41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 42 | 43 | DROP TABLE IF EXISTS `glpi_plugin_addressing_configs`; 44 | CREATE TABLE `glpi_plugin_addressing_configs` ( 45 | `id` int unsigned NOT NULL auto_increment, 46 | `alloted_ip` tinyint NOT NULL default '0', 47 | `double_ip` tinyint NOT NULL default '0', 48 | `free_ip` tinyint NOT NULL default '0', 49 | `reserved_ip` tinyint NOT NULL default '0', 50 | `use_ping` tinyint NOT NULL default '0', 51 | `used_system` tinyint NOT NULL default '0', 52 | PRIMARY KEY (`id`) 53 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 54 | 55 | DROP TABLE IF EXISTS `glpi_plugin_addressing_filters`; 56 | CREATE TABLE `glpi_plugin_addressing_filters` ( 57 | `id` int unsigned NOT NULL auto_increment, 58 | `entities_id` int unsigned NOT NULL default '0', 59 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 60 | `name` varchar(255) collate utf8mb4_unicode_ci default NULL, 61 | `begin_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 62 | `end_ip` varchar(255) collate utf8mb4_unicode_ci default NULL, 63 | `type` varchar(255) collate utf8mb4_unicode_ci default NULL, 64 | PRIMARY KEY (`id`), 65 | KEY `entities_id` (`entities_id`), 66 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`) 67 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 68 | 69 | CREATE TABLE `glpi_plugin_addressing_ipcomments` 70 | ( 71 | `id` int unsigned NOT NULL auto_increment, 72 | `plugin_addressing_addressings_id` int unsigned NOT NULL default '0', 73 | `ipname` varchar(255) collate utf8mb4_unicode_ci default NULL, 74 | `comments` LONGTEXT collate utf8mb4_unicode_ci, 75 | PRIMARY KEY (`id`), 76 | KEY `plugin_addressing_addressings_id` (`plugin_addressing_addressings_id`), 77 | KEY `ipname` (`ipname`) 78 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 79 | 80 | INSERT INTO `glpi_plugin_addressing_configs` VALUES ('1','1','1','1','1','0','0'); 81 | 82 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'GlpiPlugin\\Addressing\\Addressing',2,2,0,'central'); 83 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'GlpiPlugin\\Addressing\\Addressing',3,6,0,'central'); 84 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'GlpiPlugin\\Addressing\\Addressing',4,5,0,'central'); 85 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'GlpiPlugin\\Addressing\\Addressing',1000,3,0,'central'); 86 | INSERT INTO `glpi_displaypreferences` VALUES (NULL,'GlpiPlugin\\Addressing\\Addressing',1001,4,0,'central'); 87 | -------------------------------------------------------------------------------- /public/addressing.js: -------------------------------------------------------------------------------- 1 | // Compute and Check the input data 2 | function plugaddr_Compute(msg) { 3 | 4 | var ipdeb = new Array(); 5 | var ipfin = new Array(); 6 | var subnet = new Array(); 7 | var netmask = new Array(); 8 | var i; 9 | var val; 10 | 11 | document.getElementById("plugaddr_range").innerHTML = ""; 12 | document.getElementById("plugaddr_ipdeb").value = ""; 13 | document.getElementById("plugaddr_ipfin").value = ""; 14 | 15 | for (var i = 0; i < 4; i++) { 16 | val=document.getElementById("plugaddr_ipdeb"+i).value; 17 | if (val=='' || isNaN(val) || parseInt(val)<0 || parseInt(val)>255) { 18 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+val+")"; 19 | return false; 20 | } 21 | ipdeb[i]=parseInt(val); 22 | 23 | val=document.getElementById("plugaddr_ipfin"+i).value; 24 | if (val=='' || isNaN(val) || parseInt(val)<0 || parseInt(val)>255) { 25 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+val+")"; 26 | return false; 27 | } 28 | ipfin[i]=parseInt(val); 29 | } 30 | 31 | if (ipdeb[0]>ipfin[0]) { 32 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+ipdeb[0]+">"+ipfin[0]+")"; 33 | return false; 34 | } 35 | if (ipdeb[0]==ipfin[0] && ipdeb[1]>ipfin[1]) { 36 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+ipdeb[1]+">"+ipfin[1]+")"; 37 | return false; 38 | } 39 | if (ipdeb[0]==ipfin[0] && ipdeb[1]==ipfin[1] && ipdeb[2]>ipfin[2]) { 40 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+ipdeb[2]+">"+ipfin[2]+")"; 41 | return false; 42 | } 43 | if (ipdeb[0]==ipfin[0] && ipdeb[1]==ipfin[1] && ipdeb[2]==ipfin[2] && ipdeb[3]>ipfin[3]) { 44 | document.getElementById("plugaddr_range").innerHTML=msg+" ("+ipdeb[3]+">"+ipfin[3]+")"; 45 | return false; 46 | } 47 | document.getElementById("plugaddr_range").innerHTML=""+ipdeb[0]+"."+ipdeb[1]+"."+ipdeb[2]+"."+ipdeb[3]+" - "+ipfin[0]+"."+ipfin[1]+"."+ipfin[2]+"."+ipfin[3]; 48 | document.getElementById("plugaddr_ipdeb").value=""+ipdeb[0]+"."+ipdeb[1]+"."+ipdeb[2]+"."+ipdeb[3]; 49 | document.getElementById("plugaddr_ipfin").value=""+ipfin[0]+"."+ipfin[1]+"."+ipfin[2]+"."+ipfin[3]; 50 | return true; 51 | } 52 | 53 | // Check the input data (from onSubmit) 54 | function plugaddr_Check(msg) { 55 | 56 | if (plugaddr_Compute(msg)) { 57 | return true; 58 | } 59 | alert(msg); 60 | return false; 61 | } 62 | 63 | // Display initial values 64 | function plugaddr_Init(msg) { 65 | 66 | var ipdeb = new Array(); 67 | var ipfin = new Array(); 68 | 69 | var ipdebstr = document.getElementById("plugaddr_ipdeb").value; 70 | var ipfinstr = document.getElementById("plugaddr_ipfin").value; 71 | 72 | document.getElementById("plugaddr_range").innerHTML=""+ipdebstr+" - "+ipfinstr; 73 | 74 | ipdeb=ipdebstr.split("."); 75 | ipfin=ipfinstr.split("."); 76 | for (i=0;i<4;i++) { 77 | document.getElementById("plugaddr_ipdeb"+i).value=ipdeb[i]; 78 | document.getElementById("plugaddr_ipfin"+i).value=ipfin[i]; 79 | } 80 | } 81 | 82 | // Refresh the check message after onChange (from text input) 83 | // function plugaddr_ChangeNumber(msg) { 84 | // 85 | // var lst=document.getElementById("plugaddr_subnet"); 86 | // if (lst!=null) { 87 | // lst.selectedIndex=0; 88 | // } 89 | // 90 | // plugaddr_Compute(msg); 91 | // } 92 | 93 | // Refresh the check message after onChange (from list) 94 | // function plugaddr_ChangeList(id,msg) { 95 | // 96 | // var i; 97 | // var lst=document.getElementById(id); 98 | // if (lst.value == "0") { 99 | // return; 100 | // } 101 | // var champ=lst.value.split("/"); 102 | // var subnet=champ[0].split("."); 103 | // var netmask=champ[1].split(".", 4); 104 | // var ipdeb = new Array(); 105 | // var ipfin = new Array(); 106 | // 107 | // netmask[3] = parseInt(netmask[3]).toString(); 108 | // if (lst.selectedIndex>0) { 109 | // for (var i=0;i<4;i++) { 110 | // ipdeb[i]=subnet[i]&netmask[i]; 111 | // ipfin[i]=ipdeb[i]|(255-netmask[i]); 112 | // if (i==3) { 113 | // ipdeb[3]++; 114 | // ipfin[3]--; 115 | // } 116 | // document.getElementById("plugaddr_ipdeb"+i).value=ipdeb[i]; 117 | // document.getElementById("plugaddr_ipfin"+i).value=ipfin[i]; 118 | // } 119 | // plugaddr_Compute(msg); 120 | // } 121 | // } 122 | 123 | function nameIsThere(params) { 124 | var root_doc = params; 125 | var nameElm = $('input[id*="name_reserveip"]'); 126 | var typeElm = $('select[name="type"]'); 127 | var divNameItemElm = $('div[id="nameItem"]'); 128 | $.ajax({ 129 | url: root_doc + '/front/addressing.php', 130 | type: "GET", 131 | dataType: "json", 132 | data: { 133 | action: 'isName', 134 | name: (nameElm.length != 0) ? nameElm.val() : '0', 135 | type: (typeElm.length != 0) ? typeElm.val() : '0', 136 | }, 137 | success: function (json) { 138 | if (json) { 139 | divNameItemElm.show(); 140 | } else { 141 | divNameItemElm.hide(); 142 | } 143 | } 144 | }); 145 | } 146 | -------------------------------------------------------------------------------- /locales/glpi.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI - Addressing plugin 2.1.0\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 20 | 21 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 22 | #: inc/report.class.php:141 23 | msgid "Ping result" 24 | msgstr "" 25 | 26 | #: hook.php:247 27 | msgid "Last ping OK" 28 | msgstr "" 29 | 30 | #: hook.php:249 31 | msgid "Last ping KO" 32 | msgstr "" 33 | 34 | #: hook.php:251 inc/pinginfo.class.php:174 35 | msgid "Ping informations not available" 36 | msgstr "" 37 | 38 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 39 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 40 | msgid "IP Adressing" 41 | msgid_plural "IP Adressing" 42 | msgstr[0] "" 43 | msgstr[1] "" 44 | 45 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 46 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 47 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 48 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 49 | #: inc/report.class.php:695 50 | msgid "IP ping" 51 | msgstr "" 52 | 53 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 54 | #: inc/report.class.php:480 inc/report.class.php:715 inc/reserveip.class.php:42 55 | msgid "IP reservation" 56 | msgstr "" 57 | 58 | #: front/addressing.form.php:52 front/addressing.form.php:82 59 | msgid "Problem when adding, required fields are not here" 60 | msgstr "" 61 | 62 | #: front/config.form.php:50 front/config.php:50 63 | msgid "Please activate the plugin" 64 | msgstr "" 65 | 66 | #: front/reserveip.form.php:39 67 | msgid "The address has been reserved" 68 | msgstr "" 69 | 70 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 71 | msgid "Ping free IP" 72 | msgstr "" 73 | 74 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 75 | #: inc/filter.class.php:121 inc/filter.class.php:316 76 | msgid "First IP" 77 | msgstr "" 78 | 79 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 80 | #: inc/filter.class.php:161 inc/filter.class.php:317 81 | msgid "Last IP" 82 | msgstr "" 83 | 84 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 85 | #: inc/filter.class.php:219 86 | msgid "Report for the IP Range" 87 | msgstr "" 88 | 89 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 90 | #: inc/filter.class.php:87 inc/filter.class.php:225 91 | msgid "Invalid data !!" 92 | msgstr "" 93 | 94 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 95 | #: inc/config.class.php:64 96 | msgid "Assigned IP" 97 | msgstr "" 98 | 99 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 100 | #: inc/addressing.class.php:782 inc/config.class.php:69 101 | msgid "Free IP" 102 | msgstr "" 103 | 104 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 105 | #: inc/addressing.class.php:774 inc/config.class.php:75 106 | msgid "Same IP" 107 | msgstr "" 108 | 109 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 110 | #: inc/addressing.class.php:778 inc/config.class.php:80 111 | msgid "Reserved IP" 112 | msgstr "" 113 | 114 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 115 | #: inc/filter.class.php:43 116 | msgid "Filter" 117 | msgid_plural "Filters" 118 | msgstr[0] "" 119 | msgstr[1] "" 120 | 121 | #: inc/addressing.class.php:431 122 | msgid "Use the networks as filter" 123 | msgstr "" 124 | 125 | #: inc/addressing.class.php:434 126 | msgid "The display of items depends on these criterias" 127 | msgstr "" 128 | 129 | #: inc/addressing.class.php:438 130 | msgid "Default fields for reservation" 131 | msgstr "" 132 | 133 | #: inc/addressing.class.php:711 134 | msgid "Number of free IP" 135 | msgstr "" 136 | 137 | #: inc/addressing.class.php:715 138 | msgid "Number of reserved IP" 139 | msgstr "" 140 | 141 | #: inc/addressing.class.php:719 142 | msgid "Number of assigned IP (no doubles)" 143 | msgstr "" 144 | 145 | #: inc/addressing.class.php:723 146 | msgid "Number of doubles IP" 147 | msgstr "" 148 | 149 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 150 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 151 | #: inc/reserveip.class.php:198 152 | msgid "Ping: got a response - used IP" 153 | msgstr "" 154 | 155 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 156 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 157 | #: inc/reserveip.class.php:195 158 | msgid "Ping: no response - free IP" 159 | msgstr "" 160 | 161 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 162 | #: inc/pinginfo.class.php:200 163 | msgctxt "button" 164 | msgid "Manual launch of ping" 165 | msgstr "" 166 | 167 | #: inc/addressing.class.php:872 168 | msgid "Real free IP (Ping=KO)" 169 | msgstr "" 170 | 171 | #: inc/addressing.class.php:881 172 | msgid "Problem detected with the IP Range" 173 | msgstr "" 174 | 175 | #: inc/config.class.php:51 176 | msgid "System for ping" 177 | msgstr "" 178 | 179 | #: inc/config.class.php:54 180 | msgid "Linux ping" 181 | msgstr "" 182 | 183 | #: inc/config.class.php:55 184 | msgid "Windows" 185 | msgstr "" 186 | 187 | #: inc/config.class.php:56 188 | msgid "Linux fping" 189 | msgstr "" 190 | 191 | #: inc/config.class.php:57 192 | msgid "BSD ping" 193 | msgstr "" 194 | 195 | #: inc/config.class.php:58 196 | msgid "MacOSX ping" 197 | msgstr "" 198 | 199 | #: inc/config.class.php:62 200 | msgid "Display" 201 | msgstr "" 202 | 203 | #: inc/config.class.php:87 204 | msgid "Use Ping" 205 | msgstr "" 206 | 207 | #: inc/filter.class.php:279 208 | msgid "Add a filter" 209 | msgstr "" 210 | 211 | #: inc/ping_equipment.class.php:108 212 | msgid "No IP for this equipment" 213 | msgstr "" 214 | 215 | #: inc/pinginfo.class.php:53 216 | msgid "Launch ping for each ip report" 217 | msgstr "" 218 | 219 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 inc/report.class.php:604 220 | #: inc/report.class.php:705 221 | msgid "Automatic action has not be launched" 222 | msgstr "" 223 | 224 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 225 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 226 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 227 | #: inc/report.class.php:707 228 | msgid "Last ping attempt" 229 | msgstr "" 230 | 231 | #: inc/profile.class.php:44 inc/profile.class.php:74 232 | msgid "Generate reports" 233 | msgstr "" 234 | 235 | #: inc/profile.class.php:47 inc/profile.class.php:86 236 | msgid "Use ping on equipment form" 237 | msgstr "" 238 | 239 | #: inc/report.class.php:143 240 | msgid "Reservation" 241 | msgstr "" 242 | 243 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 244 | #: inc/report.class.php:711 245 | msgid "Reserve IP" 246 | msgstr "" 247 | 248 | #: inc/report.class.php:306 inc/report.class.php:328 249 | msgid "Reserved Address" 250 | msgstr "" 251 | 252 | #: inc/report.class.php:313 inc/report.class.php:611 253 | msgid "Success" 254 | msgstr "" 255 | 256 | #: inc/report.class.php:316 inc/report.class.php:354 257 | msgid "Reserved" 258 | msgstr "" 259 | 260 | #: inc/report.class.php:351 261 | msgid "Failed" 262 | msgstr "" 263 | 264 | #: inc/reserveip.class.php:142 265 | msgid "Object's name" 266 | msgstr "" 267 | 268 | #: inc/reserveip.class.php:262 269 | msgid "Name already in use" 270 | msgstr "" 271 | 272 | #: inc/reserveip.class.php:306 273 | msgid "Validate the reservation" 274 | msgstr "" 275 | -------------------------------------------------------------------------------- /locales/fi_FI.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Markku Vepsä, 2018 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI Project - addressing plugin\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 12 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 13 | "Last-Translator: Markku Vepsä, 2018\n" 14 | "Language-Team: Finnish (Finland) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/fi_FI/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: fi_FI\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 22 | #: inc/report.class.php:141 23 | msgid "Ping result" 24 | msgstr "" 25 | 26 | #: hook.php:247 27 | msgid "Last ping OK" 28 | msgstr "" 29 | 30 | #: hook.php:249 31 | msgid "Last ping KO" 32 | msgstr "" 33 | 34 | #: hook.php:251 inc/pinginfo.class.php:174 35 | msgid "Ping informations not available" 36 | msgstr "" 37 | 38 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 39 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 40 | msgid "IP Adressing" 41 | msgid_plural "IP Adressing" 42 | msgstr[0] "IP-osoitteisto" 43 | msgstr[1] "IP-osoitteisto" 44 | 45 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 46 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 47 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 48 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 49 | #: inc/report.class.php:695 50 | msgid "IP ping" 51 | msgstr "IP ping" 52 | 53 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 54 | #: inc/report.class.php:480 inc/report.class.php:715 55 | #: inc/reserveip.class.php:42 56 | msgid "IP reservation" 57 | msgstr "" 58 | 59 | #: front/addressing.form.php:52 front/addressing.form.php:82 60 | msgid "Problem when adding, required fields are not here" 61 | msgstr "Ongelma lisättäessä, vaaditut kentät eivät ole täällä" 62 | 63 | #: front/config.form.php:50 front/config.php:50 64 | msgid "Please activate the plugin" 65 | msgstr "Aktivoi liitännäinen" 66 | 67 | #: front/reserveip.form.php:39 68 | msgid "The address has been reserved" 69 | msgstr "" 70 | 71 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 72 | msgid "Ping free IP" 73 | msgstr "" 74 | 75 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 76 | #: inc/filter.class.php:121 inc/filter.class.php:316 77 | msgid "First IP" 78 | msgstr "Ensimmäinen IP" 79 | 80 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 81 | #: inc/filter.class.php:161 inc/filter.class.php:317 82 | msgid "Last IP" 83 | msgstr "Viimeinen IP" 84 | 85 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 86 | #: inc/filter.class.php:219 87 | msgid "Report for the IP Range" 88 | msgstr "Raportti IP-alueesta" 89 | 90 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 91 | #: inc/filter.class.php:87 inc/filter.class.php:225 92 | msgid "Invalid data !!" 93 | msgstr "Virheellinen tieto!" 94 | 95 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 96 | #: inc/config.class.php:64 97 | msgid "Assigned IP" 98 | msgstr "Määritetty IP" 99 | 100 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 101 | #: inc/addressing.class.php:782 inc/config.class.php:69 102 | msgid "Free IP" 103 | msgstr "Vapaa IP" 104 | 105 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 106 | #: inc/addressing.class.php:774 inc/config.class.php:75 107 | msgid "Same IP" 108 | msgstr "Sama IP" 109 | 110 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 111 | #: inc/addressing.class.php:778 inc/config.class.php:80 112 | msgid "Reserved IP" 113 | msgstr "Varattu IP" 114 | 115 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 116 | #: inc/filter.class.php:43 117 | msgid "Filter" 118 | msgid_plural "Filters" 119 | msgstr[0] "Suodatin" 120 | msgstr[1] "Suodattimet" 121 | 122 | #: inc/addressing.class.php:431 123 | msgid "Use the networks as filter" 124 | msgstr "" 125 | 126 | #: inc/addressing.class.php:434 127 | msgid "The display of items depends on these criterias" 128 | msgstr "" 129 | 130 | #: inc/addressing.class.php:438 131 | msgid "Default fields for reservation" 132 | msgstr "" 133 | 134 | #: inc/addressing.class.php:711 135 | msgid "Number of free IP" 136 | msgstr "" 137 | 138 | #: inc/addressing.class.php:715 139 | msgid "Number of reserved IP" 140 | msgstr "" 141 | 142 | #: inc/addressing.class.php:719 143 | msgid "Number of assigned IP (no doubles)" 144 | msgstr "" 145 | 146 | #: inc/addressing.class.php:723 147 | msgid "Number of doubles IP" 148 | msgstr "" 149 | 150 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 151 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 152 | #: inc/reserveip.class.php:198 153 | msgid "Ping: got a response - used IP" 154 | msgstr "" 155 | 156 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 157 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 158 | #: inc/reserveip.class.php:195 159 | msgid "Ping: no response - free IP" 160 | msgstr "" 161 | 162 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 163 | #: inc/pinginfo.class.php:200 164 | msgctxt "button" 165 | msgid "Manual launch of ping" 166 | msgstr "" 167 | 168 | #: inc/addressing.class.php:872 169 | msgid "Real free IP (Ping=KO)" 170 | msgstr "" 171 | 172 | #: inc/addressing.class.php:881 173 | msgid "Problem detected with the IP Range" 174 | msgstr "IP-alueen kanssa havaittu ongelma" 175 | 176 | #: inc/config.class.php:51 177 | msgid "System for ping" 178 | msgstr "Pingaava järjestelmä" 179 | 180 | #: inc/config.class.php:54 181 | msgid "Linux ping" 182 | msgstr "Linux ping" 183 | 184 | #: inc/config.class.php:55 185 | msgid "Windows" 186 | msgstr "Windows" 187 | 188 | #: inc/config.class.php:56 189 | msgid "Linux fping" 190 | msgstr "Linux fping" 191 | 192 | #: inc/config.class.php:57 193 | msgid "BSD ping" 194 | msgstr "BSD ping" 195 | 196 | #: inc/config.class.php:58 197 | msgid "MacOSX ping" 198 | msgstr "MacOSX ping" 199 | 200 | #: inc/config.class.php:62 201 | msgid "Display" 202 | msgstr "Näytä" 203 | 204 | #: inc/config.class.php:87 205 | msgid "Use Ping" 206 | msgstr "Käytä pingiä" 207 | 208 | #: inc/filter.class.php:279 209 | msgid "Add a filter" 210 | msgstr "Lisää suodatin" 211 | 212 | #: inc/ping_equipment.class.php:108 213 | msgid "No IP for this equipment" 214 | msgstr "Ei IP:tä tälle laitteelle" 215 | 216 | #: inc/pinginfo.class.php:53 217 | msgid "Launch ping for each ip report" 218 | msgstr "" 219 | 220 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 221 | #: inc/report.class.php:604 inc/report.class.php:705 222 | msgid "Automatic action has not be launched" 223 | msgstr "" 224 | 225 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 226 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 227 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 228 | #: inc/report.class.php:707 229 | msgid "Last ping attempt" 230 | msgstr "" 231 | 232 | #: inc/profile.class.php:44 inc/profile.class.php:74 233 | msgid "Generate reports" 234 | msgstr "Luo raportteja" 235 | 236 | #: inc/profile.class.php:47 inc/profile.class.php:86 237 | msgid "Use ping on equipment form" 238 | msgstr "Käytä pingiä laitelomakkeessa" 239 | 240 | #: inc/report.class.php:143 241 | msgid "Reservation" 242 | msgstr "" 243 | 244 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 245 | #: inc/report.class.php:711 246 | msgid "Reserve IP" 247 | msgstr "" 248 | 249 | #: inc/report.class.php:306 inc/report.class.php:328 250 | msgid "Reserved Address" 251 | msgstr "Varattu osoite" 252 | 253 | #: inc/report.class.php:313 inc/report.class.php:611 254 | msgid "Success" 255 | msgstr "" 256 | 257 | #: inc/report.class.php:316 inc/report.class.php:354 258 | msgid "Reserved" 259 | msgstr "" 260 | 261 | #: inc/report.class.php:351 262 | msgid "Failed" 263 | msgstr "" 264 | 265 | #: inc/reserveip.class.php:142 266 | msgid "Object's name" 267 | msgstr "Kohteen nimi" 268 | 269 | #: inc/reserveip.class.php:262 270 | msgid "Name already in use" 271 | msgstr "Nimi on jo käytössä" 272 | 273 | #: inc/reserveip.class.php:306 274 | msgid "Validate the reservation" 275 | msgstr "Vahvista varaus" 276 | -------------------------------------------------------------------------------- /addressing.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | IP Report 4 | addressing 5 | stable 6 | https://github.com/pluginsGLPI/addressing/blob/master/addressing.png?raw=true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -Génération de la liste des ip attribuées / libres / réservées / doublons pour tout type de matériel ayant une IP.
-Réservations d'IP.
-Ping adresses libres sur divers systèmes.]]>
15 | -List generation of ip assigned / free / reserved / doubles for all items with IP field.
-IP reservations.
-Ping fonction for free ip for many systems.]]>
16 | - Vytváření seznamu přiřazených/volných/rezervovaných/duplicitních IP adres pro všechny položky s kolonkou IP adresa.
- Rezervace IP adres.
- Ping funkce pro volné IP adresy pro mnoho systémů.]]>
17 |
18 |
19 | https://github.com/pluginsGLPI/addressing 20 | https://github.com/pluginsGLPI/addressing/releases 21 | https://github.com/pluginsGLPI/addressing/issues 22 | https://github.com/pluginsGLPI/addressing/wiki 23 | 24 | Gilles Portheault 25 | Xavier Caillaud / Infotel 26 | Remi Collet 27 | Nelly Mahu-Lasson 28 | 29 | 30 | 31 | 3.1.1 32 | ~11.0 33 | https://github.com/pluginsGLPI/addressing/releases/download/3.1.1/glpi-addressing-3.1.1.tar.bz2 34 | 35 | 36 | 3.1.0 37 | ~11.0 38 | https://github.com/pluginsGLPI/addressing/releases/download/3.1.0/glpi-addressing-3.1.0.tar.bz2 39 | 40 | 41 | 3.0.3 42 | ~10.0 43 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.3/glpi-addressing-3.0.3.tar.bz2 44 | 45 | 46 | 3.0.2 47 | ~10.0 48 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.2/glpi-addressing-3.0.2.tar.bz2 49 | 50 | 51 | 3.0.1 52 | ~10.0 53 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.1/glpi-addressing-3.0.1.tar.bz2 54 | 55 | 56 | 3.0.0 57 | ~10.0 58 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.0/glpi-addressing-3.0.0.tar.bz2 59 | 60 | 61 | 3.0.0-rc2 62 | ~10.0 63 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.0-rc2/glpi-addressing-3.0.0-rc2.tar.bz2 64 | 65 | 66 | 3.0.0-rc1 67 | ~10.0 68 | https://github.com/pluginsGLPI/addressing/releases/download/3.0.0-rc1/glpi-addressing-3.0.0-rc1.tar.bz2 69 | 70 | 71 | 2.9.1 72 | 9.5 73 | 74 | 75 | 2.9.0 76 | 9.5 77 | 78 | 79 | 2.8.0 80 | 9.4 81 | 82 | 83 | 2.7.1 84 | 9.3 85 | 86 | 87 | 2.7.0 88 | 9.3 89 | 90 | 91 | 2.6.1 92 | 9.2 93 | 94 | 95 | 2.6.0 96 | 9.2 97 | 98 | 99 | 2.5.0 100 | 9.1.1 101 | 102 | 103 | 2.3.0 104 | 0.90 105 | 106 | 107 | 2.2.0 108 | 0.85.3 109 | 110 | 111 | 2.1.0 112 | 0.84 113 | 114 | 115 | 2.0.1 116 | 0.83.3 117 | 118 | 119 | 2.0.0 120 | 0.83 121 | 122 | 123 | 1.9.1 124 | 0.80 125 | 126 | 127 | 1.9.0 128 | 0.80 129 | 130 | 131 | 1.8.0 132 | 0.78 133 | 134 | 135 | 1.7.2 136 | 0.72 137 | 138 | 139 | 1.7.1 140 | 0.72 141 | 142 | 143 | 1.7.0 144 | 0.72 145 | 146 | 147 | 1.6 148 | 0.71 149 | 150 | 151 | 1.4 152 | 0.70 153 | 154 | 155 | 1.3 156 | 0.68 157 | 158 | 159 | 1.2 160 | 0.68 161 | 162 | 163 | 1.1 164 | 0.68 165 | 166 | 167 | 168 | cs_CZ 169 | de_DE 170 | en_GB 171 | es_AR 172 | es_ES 173 | fr_FR 174 | it_IT 175 | pl_PL 176 | pt_BR 177 | ro_RO 178 | ru_RU 179 | tr_TR 180 | 181 | 182 | 183 | 184 | Rapports 185 | Réseau 186 | 187 | 188 | Reports 189 | Network 190 | 191 | 192 | Výkazy 193 | Síť 194 | 195 | 196 |
197 | -------------------------------------------------------------------------------- /locales/ro_RO.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Doru DEACONU , 2012 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI Project - addressing plugin\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 12 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 13 | "Last-Translator: Doru DEACONU , 2012\n" 14 | "Language-Team: Romanian (Romania) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/ro_RO/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: ro_RO\n" 19 | "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" 20 | 21 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 22 | #: inc/report.class.php:141 23 | msgid "Ping result" 24 | msgstr "" 25 | 26 | #: hook.php:247 27 | msgid "Last ping OK" 28 | msgstr "" 29 | 30 | #: hook.php:249 31 | msgid "Last ping KO" 32 | msgstr "" 33 | 34 | #: hook.php:251 inc/pinginfo.class.php:174 35 | msgid "Ping informations not available" 36 | msgstr "" 37 | 38 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 39 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 40 | msgid "IP Adressing" 41 | msgid_plural "IP Adressing" 42 | msgstr[0] "Adresare IP" 43 | msgstr[1] "Adresare IP" 44 | msgstr[2] "Adresare IP" 45 | 46 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 47 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 48 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 49 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 50 | #: inc/report.class.php:695 51 | msgid "IP ping" 52 | msgstr "Ping IP" 53 | 54 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 55 | #: inc/report.class.php:480 inc/report.class.php:715 56 | #: inc/reserveip.class.php:42 57 | msgid "IP reservation" 58 | msgstr "" 59 | 60 | #: front/addressing.form.php:52 front/addressing.form.php:82 61 | msgid "Problem when adding, required fields are not here" 62 | msgstr "Probleme la adăugare, câmpurile cerute sunt lipsă" 63 | 64 | #: front/config.form.php:50 front/config.php:50 65 | msgid "Please activate the plugin" 66 | msgstr "Vă rog activaţi plugin-ul" 67 | 68 | #: front/reserveip.form.php:39 69 | msgid "The address has been reserved" 70 | msgstr "" 71 | 72 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 73 | msgid "Ping free IP" 74 | msgstr "" 75 | 76 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 77 | #: inc/filter.class.php:121 inc/filter.class.php:316 78 | msgid "First IP" 79 | msgstr "Primul IP" 80 | 81 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 82 | #: inc/filter.class.php:161 inc/filter.class.php:317 83 | msgid "Last IP" 84 | msgstr "Ultimul IP" 85 | 86 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 87 | #: inc/filter.class.php:219 88 | msgid "Report for the IP Range" 89 | msgstr "Raport pentru plaja de IP -uri" 90 | 91 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 92 | #: inc/filter.class.php:87 inc/filter.class.php:225 93 | msgid "Invalid data !!" 94 | msgstr "Date introduse incorecte !" 95 | 96 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 97 | #: inc/config.class.php:64 98 | msgid "Assigned IP" 99 | msgstr "IP -uri atribuite" 100 | 101 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 102 | #: inc/addressing.class.php:782 inc/config.class.php:69 103 | msgid "Free IP" 104 | msgstr "IP -uri libere" 105 | 106 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 107 | #: inc/addressing.class.php:774 inc/config.class.php:75 108 | msgid "Same IP" 109 | msgstr "Acelaşi IP" 110 | 111 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 112 | #: inc/addressing.class.php:778 inc/config.class.php:80 113 | msgid "Reserved IP" 114 | msgstr "IP rezervat" 115 | 116 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 117 | #: inc/filter.class.php:43 118 | msgid "Filter" 119 | msgid_plural "Filters" 120 | msgstr[0] "" 121 | msgstr[1] "" 122 | msgstr[2] "" 123 | 124 | #: inc/addressing.class.php:431 125 | msgid "Use the networks as filter" 126 | msgstr "" 127 | 128 | #: inc/addressing.class.php:434 129 | msgid "The display of items depends on these criterias" 130 | msgstr "" 131 | 132 | #: inc/addressing.class.php:438 133 | msgid "Default fields for reservation" 134 | msgstr "" 135 | 136 | #: inc/addressing.class.php:711 137 | msgid "Number of free IP" 138 | msgstr "" 139 | 140 | #: inc/addressing.class.php:715 141 | msgid "Number of reserved IP" 142 | msgstr "" 143 | 144 | #: inc/addressing.class.php:719 145 | msgid "Number of assigned IP (no doubles)" 146 | msgstr "" 147 | 148 | #: inc/addressing.class.php:723 149 | msgid "Number of doubles IP" 150 | msgstr "" 151 | 152 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 153 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 154 | #: inc/reserveip.class.php:198 155 | msgid "Ping: got a response - used IP" 156 | msgstr "" 157 | 158 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 159 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 160 | #: inc/reserveip.class.php:195 161 | msgid "Ping: no response - free IP" 162 | msgstr "" 163 | 164 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 165 | #: inc/pinginfo.class.php:200 166 | msgctxt "button" 167 | msgid "Manual launch of ping" 168 | msgstr "" 169 | 170 | #: inc/addressing.class.php:872 171 | msgid "Real free IP (Ping=KO)" 172 | msgstr "" 173 | 174 | #: inc/addressing.class.php:881 175 | msgid "Problem detected with the IP Range" 176 | msgstr "Probleme in alegerea plajei IP" 177 | 178 | #: inc/config.class.php:51 179 | msgid "System for ping" 180 | msgstr "Sistem pentru ping" 181 | 182 | #: inc/config.class.php:54 183 | msgid "Linux ping" 184 | msgstr "Linux ping" 185 | 186 | #: inc/config.class.php:55 187 | msgid "Windows" 188 | msgstr "Windows" 189 | 190 | #: inc/config.class.php:56 191 | msgid "Linux fping" 192 | msgstr "Linux fping" 193 | 194 | #: inc/config.class.php:57 195 | msgid "BSD ping" 196 | msgstr "BSD ping" 197 | 198 | #: inc/config.class.php:58 199 | msgid "MacOSX ping" 200 | msgstr "MacOSX ping" 201 | 202 | #: inc/config.class.php:62 203 | msgid "Display" 204 | msgstr "Afişează" 205 | 206 | #: inc/config.class.php:87 207 | msgid "Use Ping" 208 | msgstr "Utilizaţi ping - ul" 209 | 210 | #: inc/filter.class.php:279 211 | msgid "Add a filter" 212 | msgstr "" 213 | 214 | #: inc/ping_equipment.class.php:108 215 | msgid "No IP for this equipment" 216 | msgstr "Niciun IP pentru acest echipament" 217 | 218 | #: inc/pinginfo.class.php:53 219 | msgid "Launch ping for each ip report" 220 | msgstr "" 221 | 222 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 223 | #: inc/report.class.php:604 inc/report.class.php:705 224 | msgid "Automatic action has not be launched" 225 | msgstr "" 226 | 227 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 228 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 229 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 230 | #: inc/report.class.php:707 231 | msgid "Last ping attempt" 232 | msgstr "" 233 | 234 | #: inc/profile.class.php:44 inc/profile.class.php:74 235 | msgid "Generate reports" 236 | msgstr "Generare rapoarte" 237 | 238 | #: inc/profile.class.php:47 inc/profile.class.php:86 239 | msgid "Use ping on equipment form" 240 | msgstr "Utilizaţi ping pe fişa de echipamente" 241 | 242 | #: inc/report.class.php:143 243 | msgid "Reservation" 244 | msgstr "" 245 | 246 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 247 | #: inc/report.class.php:711 248 | msgid "Reserve IP" 249 | msgstr "" 250 | 251 | #: inc/report.class.php:306 inc/report.class.php:328 252 | msgid "Reserved Address" 253 | msgstr "Adrese rezervate" 254 | 255 | #: inc/report.class.php:313 inc/report.class.php:611 256 | msgid "Success" 257 | msgstr "" 258 | 259 | #: inc/report.class.php:316 inc/report.class.php:354 260 | msgid "Reserved" 261 | msgstr "" 262 | 263 | #: inc/report.class.php:351 264 | msgid "Failed" 265 | msgstr "" 266 | 267 | #: inc/reserveip.class.php:142 268 | msgid "Object's name" 269 | msgstr "" 270 | 271 | #: inc/reserveip.class.php:262 272 | msgid "Name already in use" 273 | msgstr "" 274 | 275 | #: inc/reserveip.class.php:306 276 | msgid "Validate the reservation" 277 | msgstr "" 278 | -------------------------------------------------------------------------------- /locales/de_DE.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Chris Becker , 2017 7 | # Xavier CAILLAUD , 2012 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GLPI Project - addressing plugin\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 13 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 14 | "Last-Translator: Chris Becker , 2017\n" 15 | "Language-Team: German (Germany) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/de_DE/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: de_DE\n" 20 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 21 | 22 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 23 | #: inc/report.class.php:141 24 | msgid "Ping result" 25 | msgstr "" 26 | 27 | #: hook.php:247 28 | msgid "Last ping OK" 29 | msgstr "" 30 | 31 | #: hook.php:249 32 | msgid "Last ping KO" 33 | msgstr "" 34 | 35 | #: hook.php:251 inc/pinginfo.class.php:174 36 | msgid "Ping informations not available" 37 | msgstr "" 38 | 39 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 40 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 41 | msgid "IP Adressing" 42 | msgid_plural "IP Adressing" 43 | msgstr[0] "IP Adressierung" 44 | msgstr[1] "IP Adressierung" 45 | 46 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 47 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 48 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 49 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 50 | #: inc/report.class.php:695 51 | msgid "IP ping" 52 | msgstr "IP ping" 53 | 54 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 55 | #: inc/report.class.php:480 inc/report.class.php:715 56 | #: inc/reserveip.class.php:42 57 | msgid "IP reservation" 58 | msgstr "" 59 | 60 | #: front/addressing.form.php:52 front/addressing.form.php:82 61 | msgid "Problem when adding, required fields are not here" 62 | msgstr "Problem mit hinzufügen, benötigte Felder werden nicht anzegeigt" 63 | 64 | #: front/config.form.php:50 front/config.php:50 65 | msgid "Please activate the plugin" 66 | msgstr "Bitte aktivieren Sie das Plugin" 67 | 68 | #: front/reserveip.form.php:39 69 | msgid "The address has been reserved" 70 | msgstr "" 71 | 72 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 73 | msgid "Ping free IP" 74 | msgstr "" 75 | 76 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 77 | #: inc/filter.class.php:121 inc/filter.class.php:316 78 | msgid "First IP" 79 | msgstr "Erste IP" 80 | 81 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 82 | #: inc/filter.class.php:161 inc/filter.class.php:317 83 | msgid "Last IP" 84 | msgstr "Letzte IP" 85 | 86 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 87 | #: inc/filter.class.php:219 88 | msgid "Report for the IP Range" 89 | msgstr "Bericht für den IP Bereich" 90 | 91 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 92 | #: inc/filter.class.php:87 inc/filter.class.php:225 93 | msgid "Invalid data !!" 94 | msgstr "Ungültiger Adressbereich !!" 95 | 96 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 97 | #: inc/config.class.php:64 98 | msgid "Assigned IP" 99 | msgstr "Zugewiesene IP" 100 | 101 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 102 | #: inc/addressing.class.php:782 inc/config.class.php:69 103 | msgid "Free IP" 104 | msgstr "Freie IPs" 105 | 106 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 107 | #: inc/addressing.class.php:774 inc/config.class.php:75 108 | msgid "Same IP" 109 | msgstr "Gleiche IP" 110 | 111 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 112 | #: inc/addressing.class.php:778 inc/config.class.php:80 113 | msgid "Reserved IP" 114 | msgstr "Reservierte IP" 115 | 116 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 117 | #: inc/filter.class.php:43 118 | msgid "Filter" 119 | msgid_plural "Filters" 120 | msgstr[0] "Filter" 121 | msgstr[1] "Filter" 122 | 123 | #: inc/addressing.class.php:431 124 | msgid "Use the networks as filter" 125 | msgstr "" 126 | 127 | #: inc/addressing.class.php:434 128 | msgid "The display of items depends on these criterias" 129 | msgstr "" 130 | 131 | #: inc/addressing.class.php:438 132 | msgid "Default fields for reservation" 133 | msgstr "" 134 | 135 | #: inc/addressing.class.php:711 136 | msgid "Number of free IP" 137 | msgstr "" 138 | 139 | #: inc/addressing.class.php:715 140 | msgid "Number of reserved IP" 141 | msgstr "" 142 | 143 | #: inc/addressing.class.php:719 144 | msgid "Number of assigned IP (no doubles)" 145 | msgstr "" 146 | 147 | #: inc/addressing.class.php:723 148 | msgid "Number of doubles IP" 149 | msgstr "" 150 | 151 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 152 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 153 | #: inc/reserveip.class.php:198 154 | msgid "Ping: got a response - used IP" 155 | msgstr "" 156 | 157 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 158 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 159 | #: inc/reserveip.class.php:195 160 | msgid "Ping: no response - free IP" 161 | msgstr "" 162 | 163 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 164 | #: inc/pinginfo.class.php:200 165 | msgctxt "button" 166 | msgid "Manual launch of ping" 167 | msgstr "" 168 | 169 | #: inc/addressing.class.php:872 170 | msgid "Real free IP (Ping=KO)" 171 | msgstr "" 172 | 173 | #: inc/addressing.class.php:881 174 | msgid "Problem detected with the IP Range" 175 | msgstr "Problem mit dem IP Bereich festgestellt" 176 | 177 | #: inc/config.class.php:51 178 | msgid "System for ping" 179 | msgstr "Betriebssystem für ping" 180 | 181 | #: inc/config.class.php:54 182 | msgid "Linux ping" 183 | msgstr "Linux ping" 184 | 185 | #: inc/config.class.php:55 186 | msgid "Windows" 187 | msgstr "Windows" 188 | 189 | #: inc/config.class.php:56 190 | msgid "Linux fping" 191 | msgstr "Linux fping" 192 | 193 | #: inc/config.class.php:57 194 | msgid "BSD ping" 195 | msgstr "BSD ping" 196 | 197 | #: inc/config.class.php:58 198 | msgid "MacOSX ping" 199 | msgstr "MacOSX ping" 200 | 201 | #: inc/config.class.php:62 202 | msgid "Display" 203 | msgstr "Anzeigen" 204 | 205 | #: inc/config.class.php:87 206 | msgid "Use Ping" 207 | msgstr "Benutze Ping" 208 | 209 | #: inc/filter.class.php:279 210 | msgid "Add a filter" 211 | msgstr "Filter hinzufügen" 212 | 213 | #: inc/ping_equipment.class.php:108 214 | msgid "No IP for this equipment" 215 | msgstr "Dieses Equipment hat keine IP" 216 | 217 | #: inc/pinginfo.class.php:53 218 | msgid "Launch ping for each ip report" 219 | msgstr "" 220 | 221 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 222 | #: inc/report.class.php:604 inc/report.class.php:705 223 | msgid "Automatic action has not be launched" 224 | msgstr "" 225 | 226 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 227 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 228 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 229 | #: inc/report.class.php:707 230 | msgid "Last ping attempt" 231 | msgstr "" 232 | 233 | #: inc/profile.class.php:44 inc/profile.class.php:74 234 | msgid "Generate reports" 235 | msgstr "IP Berichte" 236 | 237 | #: inc/profile.class.php:47 inc/profile.class.php:86 238 | msgid "Use ping on equipment form" 239 | msgstr "benutze PING im Equipment Formular" 240 | 241 | #: inc/report.class.php:143 242 | msgid "Reservation" 243 | msgstr "" 244 | 245 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 246 | #: inc/report.class.php:711 247 | msgid "Reserve IP" 248 | msgstr "" 249 | 250 | #: inc/report.class.php:306 inc/report.class.php:328 251 | msgid "Reserved Address" 252 | msgstr "Reservierte Adresse" 253 | 254 | #: inc/report.class.php:313 inc/report.class.php:611 255 | msgid "Success" 256 | msgstr "" 257 | 258 | #: inc/report.class.php:316 inc/report.class.php:354 259 | msgid "Reserved" 260 | msgstr "" 261 | 262 | #: inc/report.class.php:351 263 | msgid "Failed" 264 | msgstr "" 265 | 266 | #: inc/reserveip.class.php:142 267 | msgid "Object's name" 268 | msgstr "Objektname" 269 | 270 | #: inc/reserveip.class.php:262 271 | msgid "Name already in use" 272 | msgstr "Name wird schon verwendet" 273 | 274 | #: inc/reserveip.class.php:306 275 | msgid "Validate the reservation" 276 | msgstr "Reservierung überprüfen" 277 | -------------------------------------------------------------------------------- /locales/it_IT.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Amandine Manceau, 2018 7 | # Nicola Scandiffio , 2018 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GLPI Project - addressing plugin\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 13 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 14 | "Last-Translator: Amandine Manceau, 2018\n" 15 | "Language-Team: Italian (Italy) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/it_IT/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: it_IT\n" 20 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 21 | 22 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 23 | #: inc/report.class.php:141 24 | msgid "Ping result" 25 | msgstr "" 26 | 27 | #: hook.php:247 28 | msgid "Last ping OK" 29 | msgstr "" 30 | 31 | #: hook.php:249 32 | msgid "Last ping KO" 33 | msgstr "" 34 | 35 | #: hook.php:251 inc/pinginfo.class.php:174 36 | msgid "Ping informations not available" 37 | msgstr "" 38 | 39 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 40 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 41 | msgid "IP Adressing" 42 | msgid_plural "IP Adressing" 43 | msgstr[0] "Indirizzamento IP" 44 | msgstr[1] "Indirizzamento IP" 45 | msgstr[2] "Indirizzamento IP" 46 | 47 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 48 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 49 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 50 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 51 | #: inc/report.class.php:695 52 | msgid "IP ping" 53 | msgstr "Ping IP" 54 | 55 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 56 | #: inc/report.class.php:480 inc/report.class.php:715 57 | #: inc/reserveip.class.php:42 58 | msgid "IP reservation" 59 | msgstr "" 60 | 61 | #: front/addressing.form.php:52 front/addressing.form.php:82 62 | msgid "Problem when adding, required fields are not here" 63 | msgstr "Problema durante l'aggiunta, compilare i campi obbligatori" 64 | 65 | #: front/config.form.php:50 front/config.php:50 66 | msgid "Please activate the plugin" 67 | msgstr "Si prega di attivare il plugin" 68 | 69 | #: front/reserveip.form.php:39 70 | msgid "The address has been reserved" 71 | msgstr "" 72 | 73 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 74 | msgid "Ping free IP" 75 | msgstr "" 76 | 77 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 78 | #: inc/filter.class.php:121 inc/filter.class.php:316 79 | msgid "First IP" 80 | msgstr "Primo IP" 81 | 82 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 83 | #: inc/filter.class.php:161 inc/filter.class.php:317 84 | msgid "Last IP" 85 | msgstr "Ultimo IP" 86 | 87 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 88 | #: inc/filter.class.php:219 89 | msgid "Report for the IP Range" 90 | msgstr "Report per l'intervallo di IP" 91 | 92 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 93 | #: inc/filter.class.php:87 inc/filter.class.php:225 94 | msgid "Invalid data !!" 95 | msgstr "Dati non validi!!" 96 | 97 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 98 | #: inc/config.class.php:64 99 | msgid "Assigned IP" 100 | msgstr "IP assegnati" 101 | 102 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 103 | #: inc/addressing.class.php:782 inc/config.class.php:69 104 | msgid "Free IP" 105 | msgstr "IP liberi" 106 | 107 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 108 | #: inc/addressing.class.php:774 inc/config.class.php:75 109 | msgid "Same IP" 110 | msgstr "Stesso IP" 111 | 112 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 113 | #: inc/addressing.class.php:778 inc/config.class.php:80 114 | msgid "Reserved IP" 115 | msgstr "IP Riservati" 116 | 117 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 118 | #: inc/filter.class.php:43 119 | msgid "Filter" 120 | msgid_plural "Filters" 121 | msgstr[0] "Filtri" 122 | msgstr[1] "Filtri" 123 | msgstr[2] "Filtri" 124 | 125 | #: inc/addressing.class.php:431 126 | msgid "Use the networks as filter" 127 | msgstr "" 128 | 129 | #: inc/addressing.class.php:434 130 | msgid "The display of items depends on these criterias" 131 | msgstr "" 132 | 133 | #: inc/addressing.class.php:438 134 | msgid "Default fields for reservation" 135 | msgstr "" 136 | 137 | #: inc/addressing.class.php:711 138 | msgid "Number of free IP" 139 | msgstr "" 140 | 141 | #: inc/addressing.class.php:715 142 | msgid "Number of reserved IP" 143 | msgstr "" 144 | 145 | #: inc/addressing.class.php:719 146 | msgid "Number of assigned IP (no doubles)" 147 | msgstr "" 148 | 149 | #: inc/addressing.class.php:723 150 | msgid "Number of doubles IP" 151 | msgstr "" 152 | 153 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 154 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 155 | #: inc/reserveip.class.php:198 156 | msgid "Ping: got a response - used IP" 157 | msgstr "" 158 | 159 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 160 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 161 | #: inc/reserveip.class.php:195 162 | msgid "Ping: no response - free IP" 163 | msgstr "" 164 | 165 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 166 | #: inc/pinginfo.class.php:200 167 | msgctxt "button" 168 | msgid "Manual launch of ping" 169 | msgstr "" 170 | 171 | #: inc/addressing.class.php:872 172 | msgid "Real free IP (Ping=KO)" 173 | msgstr "" 174 | 175 | #: inc/addressing.class.php:881 176 | msgid "Problem detected with the IP Range" 177 | msgstr "Problema con l'intervallo di IP" 178 | 179 | #: inc/config.class.php:51 180 | msgid "System for ping" 181 | msgstr "Metodo per il ping" 182 | 183 | #: inc/config.class.php:54 184 | msgid "Linux ping" 185 | msgstr "ping Linux" 186 | 187 | #: inc/config.class.php:55 188 | msgid "Windows" 189 | msgstr "Windows" 190 | 191 | #: inc/config.class.php:56 192 | msgid "Linux fping" 193 | msgstr "fping Linux" 194 | 195 | #: inc/config.class.php:57 196 | msgid "BSD ping" 197 | msgstr "ping BSD" 198 | 199 | #: inc/config.class.php:58 200 | msgid "MacOSX ping" 201 | msgstr "Ping MacOSX" 202 | 203 | #: inc/config.class.php:62 204 | msgid "Display" 205 | msgstr "Visualizza" 206 | 207 | #: inc/config.class.php:87 208 | msgid "Use Ping" 209 | msgstr "Usa Ping" 210 | 211 | #: inc/filter.class.php:279 212 | msgid "Add a filter" 213 | msgstr "Aggiungi un filtro" 214 | 215 | #: inc/ping_equipment.class.php:108 216 | msgid "No IP for this equipment" 217 | msgstr "Nessun IP per questo dispositivo" 218 | 219 | #: inc/pinginfo.class.php:53 220 | msgid "Launch ping for each ip report" 221 | msgstr "" 222 | 223 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 224 | #: inc/report.class.php:604 inc/report.class.php:705 225 | msgid "Automatic action has not be launched" 226 | msgstr "" 227 | 228 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 229 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 230 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 231 | #: inc/report.class.php:707 232 | msgid "Last ping attempt" 233 | msgstr "" 234 | 235 | #: inc/profile.class.php:44 inc/profile.class.php:74 236 | msgid "Generate reports" 237 | msgstr "Genera report" 238 | 239 | #: inc/profile.class.php:47 inc/profile.class.php:86 240 | msgid "Use ping on equipment form" 241 | msgstr "Utilizza il ping per il dispositivo" 242 | 243 | #: inc/report.class.php:143 244 | msgid "Reservation" 245 | msgstr "" 246 | 247 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 248 | #: inc/report.class.php:711 249 | msgid "Reserve IP" 250 | msgstr "" 251 | 252 | #: inc/report.class.php:306 inc/report.class.php:328 253 | msgid "Reserved Address" 254 | msgstr "Indirizzo riservato" 255 | 256 | #: inc/report.class.php:313 inc/report.class.php:611 257 | msgid "Success" 258 | msgstr "" 259 | 260 | #: inc/report.class.php:316 inc/report.class.php:354 261 | msgid "Reserved" 262 | msgstr "" 263 | 264 | #: inc/report.class.php:351 265 | msgid "Failed" 266 | msgstr "" 267 | 268 | #: inc/reserveip.class.php:142 269 | msgid "Object's name" 270 | msgstr "Nome dell'oggetto" 271 | 272 | #: inc/reserveip.class.php:262 273 | msgid "Name already in use" 274 | msgstr "Nome già in uso" 275 | 276 | #: inc/reserveip.class.php:306 277 | msgid "Validate the reservation" 278 | msgstr "Convalida la prenotazione" 279 | -------------------------------------------------------------------------------- /locales/cs_CZ.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Amandine Manceau, 2018 7 | # Ondrej Krejcik , 2013 8 | # Pavel Borecki , 2018 9 | msgid "" 10 | msgstr "" 11 | "Project-Id-Version: GLPI Project - addressing plugin\n" 12 | "Report-Msgid-Bugs-To: \n" 13 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 14 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 15 | "Last-Translator: Pavel Borecki , 2018\n" 16 | "Language-Team: Czech (Czech Republic) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/cs_CZ/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: cs_CZ\n" 21 | "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" 22 | 23 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 24 | #: inc/report.class.php:141 25 | msgid "Ping result" 26 | msgstr "" 27 | 28 | #: hook.php:247 29 | msgid "Last ping OK" 30 | msgstr "" 31 | 32 | #: hook.php:249 33 | msgid "Last ping KO" 34 | msgstr "" 35 | 36 | #: hook.php:251 inc/pinginfo.class.php:174 37 | msgid "Ping informations not available" 38 | msgstr "" 39 | 40 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 41 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 42 | msgid "IP Adressing" 43 | msgid_plural "IP Adressing" 44 | msgstr[0] "IP adresování" 45 | msgstr[1] "IP adresování" 46 | msgstr[2] "IP adresování" 47 | msgstr[3] "IP adresování" 48 | 49 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 50 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 51 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 52 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 53 | #: inc/report.class.php:695 54 | msgid "IP ping" 55 | msgstr "IP ping" 56 | 57 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 58 | #: inc/report.class.php:480 inc/report.class.php:715 59 | #: inc/reserveip.class.php:42 60 | msgid "IP reservation" 61 | msgstr "" 62 | 63 | #: front/addressing.form.php:52 front/addressing.form.php:82 64 | msgid "Problem when adding, required fields are not here" 65 | msgstr "Problém při přidávání, chybí požadované kolonky" 66 | 67 | #: front/config.form.php:50 front/config.php:50 68 | msgid "Please activate the plugin" 69 | msgstr "Zapněte zásuvný modul" 70 | 71 | #: front/reserveip.form.php:39 72 | msgid "The address has been reserved" 73 | msgstr "" 74 | 75 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 76 | msgid "Ping free IP" 77 | msgstr "" 78 | 79 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 80 | #: inc/filter.class.php:121 inc/filter.class.php:316 81 | msgid "First IP" 82 | msgstr "První IP adresa" 83 | 84 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 85 | #: inc/filter.class.php:161 inc/filter.class.php:317 86 | msgid "Last IP" 87 | msgstr "Poslední IP adresa" 88 | 89 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 90 | #: inc/filter.class.php:219 91 | msgid "Report for the IP Range" 92 | msgstr "Přehled IP rozsahu" 93 | 94 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 95 | #: inc/filter.class.php:87 inc/filter.class.php:225 96 | msgid "Invalid data !!" 97 | msgstr "Neplatná data!" 98 | 99 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 100 | #: inc/config.class.php:64 101 | msgid "Assigned IP" 102 | msgstr "Přiřazené IP adresy" 103 | 104 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 105 | #: inc/addressing.class.php:782 inc/config.class.php:69 106 | msgid "Free IP" 107 | msgstr "Volné IP adresy" 108 | 109 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 110 | #: inc/addressing.class.php:774 inc/config.class.php:75 111 | msgid "Same IP" 112 | msgstr "Stejné IP adresy" 113 | 114 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 115 | #: inc/addressing.class.php:778 inc/config.class.php:80 116 | msgid "Reserved IP" 117 | msgstr "Rezervované IP adresy" 118 | 119 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 120 | #: inc/filter.class.php:43 121 | msgid "Filter" 122 | msgid_plural "Filters" 123 | msgstr[0] "Filtr" 124 | msgstr[1] "Filtry" 125 | msgstr[2] "Filtrů" 126 | msgstr[3] "Filtry" 127 | 128 | #: inc/addressing.class.php:431 129 | msgid "Use the networks as filter" 130 | msgstr "" 131 | 132 | #: inc/addressing.class.php:434 133 | msgid "The display of items depends on these criterias" 134 | msgstr "" 135 | 136 | #: inc/addressing.class.php:438 137 | msgid "Default fields for reservation" 138 | msgstr "" 139 | 140 | #: inc/addressing.class.php:711 141 | msgid "Number of free IP" 142 | msgstr "" 143 | 144 | #: inc/addressing.class.php:715 145 | msgid "Number of reserved IP" 146 | msgstr "" 147 | 148 | #: inc/addressing.class.php:719 149 | msgid "Number of assigned IP (no doubles)" 150 | msgstr "" 151 | 152 | #: inc/addressing.class.php:723 153 | msgid "Number of doubles IP" 154 | msgstr "" 155 | 156 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 157 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 158 | #: inc/reserveip.class.php:198 159 | msgid "Ping: got a response - used IP" 160 | msgstr "" 161 | 162 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 163 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 164 | #: inc/reserveip.class.php:195 165 | msgid "Ping: no response - free IP" 166 | msgstr "" 167 | 168 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 169 | #: inc/pinginfo.class.php:200 170 | msgctxt "button" 171 | msgid "Manual launch of ping" 172 | msgstr "" 173 | 174 | #: inc/addressing.class.php:872 175 | msgid "Real free IP (Ping=KO)" 176 | msgstr "" 177 | 178 | #: inc/addressing.class.php:881 179 | msgid "Problem detected with the IP Range" 180 | msgstr "Zjištěn problém s IP rozsahem" 181 | 182 | #: inc/config.class.php:51 183 | msgid "System for ping" 184 | msgstr "Program pro ping" 185 | 186 | #: inc/config.class.php:54 187 | msgid "Linux ping" 188 | msgstr "Linuxový ping" 189 | 190 | #: inc/config.class.php:55 191 | msgid "Windows" 192 | msgstr "Windows" 193 | 194 | #: inc/config.class.php:56 195 | msgid "Linux fping" 196 | msgstr "Linuxový fping" 197 | 198 | #: inc/config.class.php:57 199 | msgid "BSD ping" 200 | msgstr "BSD ping " 201 | 202 | #: inc/config.class.php:58 203 | msgid "MacOSX ping" 204 | msgstr "macOS ping" 205 | 206 | #: inc/config.class.php:62 207 | msgid "Display" 208 | msgstr "Zobrazení" 209 | 210 | #: inc/config.class.php:87 211 | msgid "Use Ping" 212 | msgstr "Použít ping" 213 | 214 | #: inc/filter.class.php:279 215 | msgid "Add a filter" 216 | msgstr "Přidat filtr" 217 | 218 | #: inc/ping_equipment.class.php:108 219 | msgid "No IP for this equipment" 220 | msgstr "Žádná IP adresa pro toto zařízení" 221 | 222 | #: inc/pinginfo.class.php:53 223 | msgid "Launch ping for each ip report" 224 | msgstr "" 225 | 226 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 227 | #: inc/report.class.php:604 inc/report.class.php:705 228 | msgid "Automatic action has not be launched" 229 | msgstr "" 230 | 231 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 232 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 233 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 234 | #: inc/report.class.php:707 235 | msgid "Last ping attempt" 236 | msgstr "" 237 | 238 | #: inc/profile.class.php:44 inc/profile.class.php:74 239 | msgid "Generate reports" 240 | msgstr "Vytvořit přehledy" 241 | 242 | #: inc/profile.class.php:47 inc/profile.class.php:86 243 | msgid "Use ping on equipment form" 244 | msgstr "Použít ping na formuláři zařízení" 245 | 246 | #: inc/report.class.php:143 247 | msgid "Reservation" 248 | msgstr "" 249 | 250 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 251 | #: inc/report.class.php:711 252 | msgid "Reserve IP" 253 | msgstr "" 254 | 255 | #: inc/report.class.php:306 inc/report.class.php:328 256 | msgid "Reserved Address" 257 | msgstr "Rezervované adresy" 258 | 259 | #: inc/report.class.php:313 inc/report.class.php:611 260 | msgid "Success" 261 | msgstr "" 262 | 263 | #: inc/report.class.php:316 inc/report.class.php:354 264 | msgid "Reserved" 265 | msgstr "" 266 | 267 | #: inc/report.class.php:351 268 | msgid "Failed" 269 | msgstr "" 270 | 271 | #: inc/reserveip.class.php:142 272 | msgid "Object's name" 273 | msgstr "Název objektu" 274 | 275 | #: inc/reserveip.class.php:262 276 | msgid "Name already in use" 277 | msgstr "Název je už používán" 278 | 279 | #: inc/reserveip.class.php:306 280 | msgid "Validate the reservation" 281 | msgstr "Ověřit rezervaci" 282 | -------------------------------------------------------------------------------- /locales/es_ES.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # 8b0aae0845670f8dfc567f35acb0e157_986c70f <736627e7e195103702d6bf353f2e18f1_656814>, 2018 7 | # cbc5204086c375034e77848ef6290ebe, 2015 8 | # Xavier CAILLAUD , 2012 9 | msgid "" 10 | msgstr "" 11 | "Project-Id-Version: GLPI Project - addressing plugin\n" 12 | "Report-Msgid-Bugs-To: \n" 13 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 14 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 15 | "Last-Translator: 8b0aae0845670f8dfc567f35acb0e157_986c70f <736627e7e195103702d6bf353f2e18f1_656814>, 2018\n" 16 | "Language-Team: Spanish (Spain) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/es_ES/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: es_ES\n" 21 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 22 | 23 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 24 | #: inc/report.class.php:141 25 | msgid "Ping result" 26 | msgstr "" 27 | 28 | #: hook.php:247 29 | msgid "Last ping OK" 30 | msgstr "" 31 | 32 | #: hook.php:249 33 | msgid "Last ping KO" 34 | msgstr "" 35 | 36 | #: hook.php:251 inc/pinginfo.class.php:174 37 | msgid "Ping informations not available" 38 | msgstr "" 39 | 40 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 41 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 42 | msgid "IP Adressing" 43 | msgid_plural "IP Adressing" 44 | msgstr[0] "Direccionamiento IP" 45 | msgstr[1] "Direccionamiento IP" 46 | msgstr[2] "Direccionamiento IP" 47 | 48 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 49 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 50 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 51 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 52 | #: inc/report.class.php:695 53 | msgid "IP ping" 54 | msgstr "IP ping" 55 | 56 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 57 | #: inc/report.class.php:480 inc/report.class.php:715 58 | #: inc/reserveip.class.php:42 59 | msgid "IP reservation" 60 | msgstr "" 61 | 62 | #: front/addressing.form.php:52 front/addressing.form.php:82 63 | msgid "Problem when adding, required fields are not here" 64 | msgstr "Problema al añadir, campos requeridos vacíos" 65 | 66 | #: front/config.form.php:50 front/config.php:50 67 | msgid "Please activate the plugin" 68 | msgstr "Se ruega activar el plugin" 69 | 70 | #: front/reserveip.form.php:39 71 | msgid "The address has been reserved" 72 | msgstr "" 73 | 74 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 75 | msgid "Ping free IP" 76 | msgstr "" 77 | 78 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 79 | #: inc/filter.class.php:121 inc/filter.class.php:316 80 | msgid "First IP" 81 | msgstr "Primer IP" 82 | 83 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 84 | #: inc/filter.class.php:161 inc/filter.class.php:317 85 | msgid "Last IP" 86 | msgstr "Último IP" 87 | 88 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 89 | #: inc/filter.class.php:219 90 | msgid "Report for the IP Range" 91 | msgstr "Informe rango de IP's" 92 | 93 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 94 | #: inc/filter.class.php:87 inc/filter.class.php:225 95 | msgid "Invalid data !!" 96 | msgstr "dato inválido!!" 97 | 98 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 99 | #: inc/config.class.php:64 100 | msgid "Assigned IP" 101 | msgstr "IP Asignado" 102 | 103 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 104 | #: inc/addressing.class.php:782 inc/config.class.php:69 105 | msgid "Free IP" 106 | msgstr "IP Libre" 107 | 108 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 109 | #: inc/addressing.class.php:774 inc/config.class.php:75 110 | msgid "Same IP" 111 | msgstr "Mismo Ip" 112 | 113 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 114 | #: inc/addressing.class.php:778 inc/config.class.php:80 115 | msgid "Reserved IP" 116 | msgstr "IP Reservado" 117 | 118 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 119 | #: inc/filter.class.php:43 120 | msgid "Filter" 121 | msgid_plural "Filters" 122 | msgstr[0] "Filtros" 123 | msgstr[1] "Filtros " 124 | msgstr[2] "Filtros " 125 | 126 | #: inc/addressing.class.php:431 127 | msgid "Use the networks as filter" 128 | msgstr "" 129 | 130 | #: inc/addressing.class.php:434 131 | msgid "The display of items depends on these criterias" 132 | msgstr "" 133 | 134 | #: inc/addressing.class.php:438 135 | msgid "Default fields for reservation" 136 | msgstr "" 137 | 138 | #: inc/addressing.class.php:711 139 | msgid "Number of free IP" 140 | msgstr "" 141 | 142 | #: inc/addressing.class.php:715 143 | msgid "Number of reserved IP" 144 | msgstr "" 145 | 146 | #: inc/addressing.class.php:719 147 | msgid "Number of assigned IP (no doubles)" 148 | msgstr "" 149 | 150 | #: inc/addressing.class.php:723 151 | msgid "Number of doubles IP" 152 | msgstr "" 153 | 154 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 155 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 156 | #: inc/reserveip.class.php:198 157 | msgid "Ping: got a response - used IP" 158 | msgstr "" 159 | 160 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 161 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 162 | #: inc/reserveip.class.php:195 163 | msgid "Ping: no response - free IP" 164 | msgstr "" 165 | 166 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 167 | #: inc/pinginfo.class.php:200 168 | msgctxt "button" 169 | msgid "Manual launch of ping" 170 | msgstr "" 171 | 172 | #: inc/addressing.class.php:872 173 | msgid "Real free IP (Ping=KO)" 174 | msgstr "" 175 | 176 | #: inc/addressing.class.php:881 177 | msgid "Problem detected with the IP Range" 178 | msgstr "Problema detectado con el rango IP's" 179 | 180 | #: inc/config.class.php:51 181 | msgid "System for ping" 182 | msgstr "Sistema para el ping" 183 | 184 | #: inc/config.class.php:54 185 | msgid "Linux ping" 186 | msgstr "Ping Linux" 187 | 188 | #: inc/config.class.php:55 189 | msgid "Windows" 190 | msgstr "Windows" 191 | 192 | #: inc/config.class.php:56 193 | msgid "Linux fping" 194 | msgstr "Linux fping" 195 | 196 | #: inc/config.class.php:57 197 | msgid "BSD ping" 198 | msgstr "Ping BSD" 199 | 200 | #: inc/config.class.php:58 201 | msgid "MacOSX ping" 202 | msgstr "Ping MacOSX" 203 | 204 | #: inc/config.class.php:62 205 | msgid "Display" 206 | msgstr "Muestra" 207 | 208 | #: inc/config.class.php:87 209 | msgid "Use Ping" 210 | msgstr "Utilizar Ping" 211 | 212 | #: inc/filter.class.php:279 213 | msgid "Add a filter" 214 | msgstr "Agregar un filtro" 215 | 216 | #: inc/ping_equipment.class.php:108 217 | msgid "No IP for this equipment" 218 | msgstr "Este equipo no tiene IP" 219 | 220 | #: inc/pinginfo.class.php:53 221 | msgid "Launch ping for each ip report" 222 | msgstr "" 223 | 224 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 225 | #: inc/report.class.php:604 inc/report.class.php:705 226 | msgid "Automatic action has not be launched" 227 | msgstr "" 228 | 229 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 230 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 231 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 232 | #: inc/report.class.php:707 233 | msgid "Last ping attempt" 234 | msgstr "" 235 | 236 | #: inc/profile.class.php:44 inc/profile.class.php:74 237 | msgid "Generate reports" 238 | msgstr "Genera informes" 239 | 240 | #: inc/profile.class.php:47 inc/profile.class.php:86 241 | msgid "Use ping on equipment form" 242 | msgstr "Utilizar Ping en la ficha del equipo" 243 | 244 | #: inc/report.class.php:143 245 | msgid "Reservation" 246 | msgstr "" 247 | 248 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 249 | #: inc/report.class.php:711 250 | msgid "Reserve IP" 251 | msgstr "" 252 | 253 | #: inc/report.class.php:306 inc/report.class.php:328 254 | msgid "Reserved Address" 255 | msgstr "Direcciones reservadas" 256 | 257 | #: inc/report.class.php:313 inc/report.class.php:611 258 | msgid "Success" 259 | msgstr "" 260 | 261 | #: inc/report.class.php:316 inc/report.class.php:354 262 | msgid "Reserved" 263 | msgstr "" 264 | 265 | #: inc/report.class.php:351 266 | msgid "Failed" 267 | msgstr "" 268 | 269 | #: inc/reserveip.class.php:142 270 | msgid "Object's name" 271 | msgstr "Nombre del objeto " 272 | 273 | #: inc/reserveip.class.php:262 274 | msgid "Name already in use" 275 | msgstr "El nombre ya está en uso" 276 | 277 | #: inc/reserveip.class.php:306 278 | msgid "Validate the reservation" 279 | msgstr "Validar la reserva " 280 | -------------------------------------------------------------------------------- /locales/pl_PL.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Jacek Maciol , 2017 7 | # Xavier CAILLAUD , 2012 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GLPI Project - addressing plugin\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 13 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 14 | "Last-Translator: Jacek Maciol , 2017\n" 15 | "Language-Team: Polish (Poland) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/pl_PL/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: pl_PL\n" 20 | "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" 21 | 22 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 23 | #: inc/report.class.php:141 24 | msgid "Ping result" 25 | msgstr "" 26 | 27 | #: hook.php:247 28 | msgid "Last ping OK" 29 | msgstr "" 30 | 31 | #: hook.php:249 32 | msgid "Last ping KO" 33 | msgstr "" 34 | 35 | #: hook.php:251 inc/pinginfo.class.php:174 36 | msgid "Ping informations not available" 37 | msgstr "" 38 | 39 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 40 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 41 | msgid "IP Adressing" 42 | msgid_plural "IP Adressing" 43 | msgstr[0] "Adresowanie IP" 44 | msgstr[1] "Adresowanie IP" 45 | msgstr[2] "Adresowanie IP" 46 | msgstr[3] "Adresowanie IP" 47 | 48 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 49 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 50 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 51 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 52 | #: inc/report.class.php:695 53 | msgid "IP ping" 54 | msgstr "IP ping" 55 | 56 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 57 | #: inc/report.class.php:480 inc/report.class.php:715 58 | #: inc/reserveip.class.php:42 59 | msgid "IP reservation" 60 | msgstr "" 61 | 62 | #: front/addressing.form.php:52 front/addressing.form.php:82 63 | msgid "Problem when adding, required fields are not here" 64 | msgstr "Problem z dodaniem, brak wymaganego pola" 65 | 66 | #: front/config.form.php:50 front/config.php:50 67 | msgid "Please activate the plugin" 68 | msgstr "Aktywuj wtyczkę" 69 | 70 | #: front/reserveip.form.php:39 71 | msgid "The address has been reserved" 72 | msgstr "" 73 | 74 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 75 | msgid "Ping free IP" 76 | msgstr "" 77 | 78 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 79 | #: inc/filter.class.php:121 inc/filter.class.php:316 80 | msgid "First IP" 81 | msgstr "Pierwsze IP" 82 | 83 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 84 | #: inc/filter.class.php:161 inc/filter.class.php:317 85 | msgid "Last IP" 86 | msgstr "Ostatnie IP" 87 | 88 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 89 | #: inc/filter.class.php:219 90 | msgid "Report for the IP Range" 91 | msgstr "Raport dla zakresu IP" 92 | 93 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 94 | #: inc/filter.class.php:87 inc/filter.class.php:225 95 | msgid "Invalid data !!" 96 | msgstr "Nieprawidłowe dane !!" 97 | 98 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 99 | #: inc/config.class.php:64 100 | msgid "Assigned IP" 101 | msgstr "Przydzielone IP" 102 | 103 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 104 | #: inc/addressing.class.php:782 inc/config.class.php:69 105 | msgid "Free IP" 106 | msgstr "Niezajęte Ip" 107 | 108 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 109 | #: inc/addressing.class.php:774 inc/config.class.php:75 110 | msgid "Same IP" 111 | msgstr "Identyczne Ip" 112 | 113 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 114 | #: inc/addressing.class.php:778 inc/config.class.php:80 115 | msgid "Reserved IP" 116 | msgstr "Zarezerwowane IP" 117 | 118 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 119 | #: inc/filter.class.php:43 120 | msgid "Filter" 121 | msgid_plural "Filters" 122 | msgstr[0] "Filtr" 123 | msgstr[1] "Filtry" 124 | msgstr[2] "Filtrów" 125 | msgstr[3] "Filtry" 126 | 127 | #: inc/addressing.class.php:431 128 | msgid "Use the networks as filter" 129 | msgstr "" 130 | 131 | #: inc/addressing.class.php:434 132 | msgid "The display of items depends on these criterias" 133 | msgstr "" 134 | 135 | #: inc/addressing.class.php:438 136 | msgid "Default fields for reservation" 137 | msgstr "" 138 | 139 | #: inc/addressing.class.php:711 140 | msgid "Number of free IP" 141 | msgstr "" 142 | 143 | #: inc/addressing.class.php:715 144 | msgid "Number of reserved IP" 145 | msgstr "" 146 | 147 | #: inc/addressing.class.php:719 148 | msgid "Number of assigned IP (no doubles)" 149 | msgstr "" 150 | 151 | #: inc/addressing.class.php:723 152 | msgid "Number of doubles IP" 153 | msgstr "" 154 | 155 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 156 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 157 | #: inc/reserveip.class.php:198 158 | msgid "Ping: got a response - used IP" 159 | msgstr "" 160 | 161 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 162 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 163 | #: inc/reserveip.class.php:195 164 | msgid "Ping: no response - free IP" 165 | msgstr "" 166 | 167 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 168 | #: inc/pinginfo.class.php:200 169 | msgctxt "button" 170 | msgid "Manual launch of ping" 171 | msgstr "" 172 | 173 | #: inc/addressing.class.php:872 174 | msgid "Real free IP (Ping=KO)" 175 | msgstr "" 176 | 177 | #: inc/addressing.class.php:881 178 | msgid "Problem detected with the IP Range" 179 | msgstr "Wykryto problem w zakresie IP" 180 | 181 | #: inc/config.class.php:51 182 | msgid "System for ping" 183 | msgstr "Rodzaj ping-a" 184 | 185 | #: inc/config.class.php:54 186 | msgid "Linux ping" 187 | msgstr "Linux ping" 188 | 189 | #: inc/config.class.php:55 190 | msgid "Windows" 191 | msgstr "Windows" 192 | 193 | #: inc/config.class.php:56 194 | msgid "Linux fping" 195 | msgstr "Linux fping" 196 | 197 | #: inc/config.class.php:57 198 | msgid "BSD ping" 199 | msgstr "BSD ping" 200 | 201 | #: inc/config.class.php:58 202 | msgid "MacOSX ping" 203 | msgstr "MacOSX ping" 204 | 205 | #: inc/config.class.php:62 206 | msgid "Display" 207 | msgstr "Pokaż" 208 | 209 | #: inc/config.class.php:87 210 | msgid "Use Ping" 211 | msgstr "Użyj Ping" 212 | 213 | #: inc/filter.class.php:279 214 | msgid "Add a filter" 215 | msgstr "Dodaj filtr" 216 | 217 | #: inc/ping_equipment.class.php:108 218 | msgid "No IP for this equipment" 219 | msgstr "Brak adresu IP dla tego urządzenia" 220 | 221 | #: inc/pinginfo.class.php:53 222 | msgid "Launch ping for each ip report" 223 | msgstr "" 224 | 225 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 226 | #: inc/report.class.php:604 inc/report.class.php:705 227 | msgid "Automatic action has not be launched" 228 | msgstr "" 229 | 230 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 231 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 232 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 233 | #: inc/report.class.php:707 234 | msgid "Last ping attempt" 235 | msgstr "" 236 | 237 | #: inc/profile.class.php:44 inc/profile.class.php:74 238 | msgid "Generate reports" 239 | msgstr "Generowanie raportów" 240 | 241 | #: inc/profile.class.php:47 inc/profile.class.php:86 242 | msgid "Use ping on equipment form" 243 | msgstr "Użyj polecenia ping na formularzu sprzętu" 244 | 245 | #: inc/report.class.php:143 246 | msgid "Reservation" 247 | msgstr "" 248 | 249 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 250 | #: inc/report.class.php:711 251 | msgid "Reserve IP" 252 | msgstr "" 253 | 254 | #: inc/report.class.php:306 inc/report.class.php:328 255 | msgid "Reserved Address" 256 | msgstr "Zarezerwowany adress" 257 | 258 | #: inc/report.class.php:313 inc/report.class.php:611 259 | msgid "Success" 260 | msgstr "" 261 | 262 | #: inc/report.class.php:316 inc/report.class.php:354 263 | msgid "Reserved" 264 | msgstr "" 265 | 266 | #: inc/report.class.php:351 267 | msgid "Failed" 268 | msgstr "" 269 | 270 | #: inc/reserveip.class.php:142 271 | msgid "Object's name" 272 | msgstr "Nazwa obiektu" 273 | 274 | #: inc/reserveip.class.php:262 275 | msgid "Name already in use" 276 | msgstr "Nazwa jest już używana" 277 | 278 | #: inc/reserveip.class.php:306 279 | msgid "Validate the reservation" 280 | msgstr "Zatwierdź rezerwację" 281 | -------------------------------------------------------------------------------- /locales/es_AR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Christian Ruggeri , 2013 7 | # 8b0aae0845670f8dfc567f35acb0e157_986c70f <736627e7e195103702d6bf353f2e18f1_656814>, 2019 8 | # Luis Angel Uriarte , 2013 9 | msgid "" 10 | msgstr "" 11 | "Project-Id-Version: GLPI Project - addressing plugin\n" 12 | "Report-Msgid-Bugs-To: \n" 13 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 14 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 15 | "Last-Translator: 8b0aae0845670f8dfc567f35acb0e157_986c70f <736627e7e195103702d6bf353f2e18f1_656814>, 2019\n" 16 | "Language-Team: Spanish (Argentina) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/es_AR/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: es_AR\n" 21 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 22 | 23 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 24 | #: inc/report.class.php:141 25 | msgid "Ping result" 26 | msgstr "" 27 | 28 | #: hook.php:247 29 | msgid "Last ping OK" 30 | msgstr "" 31 | 32 | #: hook.php:249 33 | msgid "Last ping KO" 34 | msgstr "" 35 | 36 | #: hook.php:251 inc/pinginfo.class.php:174 37 | msgid "Ping informations not available" 38 | msgstr "" 39 | 40 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 41 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 42 | msgid "IP Adressing" 43 | msgid_plural "IP Adressing" 44 | msgstr[0] "Direccionamiento IP" 45 | msgstr[1] "Direccionamientos IP" 46 | msgstr[2] "Direccionamientos IP" 47 | 48 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 49 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 50 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 51 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 52 | #: inc/report.class.php:695 53 | msgid "IP ping" 54 | msgstr "Ping a IP" 55 | 56 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 57 | #: inc/report.class.php:480 inc/report.class.php:715 58 | #: inc/reserveip.class.php:42 59 | msgid "IP reservation" 60 | msgstr "" 61 | 62 | #: front/addressing.form.php:52 front/addressing.form.php:82 63 | msgid "Problem when adding, required fields are not here" 64 | msgstr "Problema al añadir, no están los campos requeridos" 65 | 66 | #: front/config.form.php:50 front/config.php:50 67 | msgid "Please activate the plugin" 68 | msgstr "Por favor, active el plugin" 69 | 70 | #: front/reserveip.form.php:39 71 | msgid "The address has been reserved" 72 | msgstr "" 73 | 74 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 75 | msgid "Ping free IP" 76 | msgstr "" 77 | 78 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 79 | #: inc/filter.class.php:121 inc/filter.class.php:316 80 | msgid "First IP" 81 | msgstr "Primera IP" 82 | 83 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 84 | #: inc/filter.class.php:161 inc/filter.class.php:317 85 | msgid "Last IP" 86 | msgstr "Última IP" 87 | 88 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 89 | #: inc/filter.class.php:219 90 | msgid "Report for the IP Range" 91 | msgstr "Informe para el rango de IP" 92 | 93 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 94 | #: inc/filter.class.php:87 inc/filter.class.php:225 95 | msgid "Invalid data !!" 96 | msgstr "¡¡ Datos inválidos !!" 97 | 98 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 99 | #: inc/config.class.php:64 100 | msgid "Assigned IP" 101 | msgstr "IP asignada" 102 | 103 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 104 | #: inc/addressing.class.php:782 inc/config.class.php:69 105 | msgid "Free IP" 106 | msgstr "IP libre" 107 | 108 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 109 | #: inc/addressing.class.php:774 inc/config.class.php:75 110 | msgid "Same IP" 111 | msgstr "Misma IP" 112 | 113 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 114 | #: inc/addressing.class.php:778 inc/config.class.php:80 115 | msgid "Reserved IP" 116 | msgstr "IP Reservada" 117 | 118 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 119 | #: inc/filter.class.php:43 120 | msgid "Filter" 121 | msgid_plural "Filters" 122 | msgstr[0] "Filtros" 123 | msgstr[1] "Filtros" 124 | msgstr[2] "Filtros" 125 | 126 | #: inc/addressing.class.php:431 127 | msgid "Use the networks as filter" 128 | msgstr "" 129 | 130 | #: inc/addressing.class.php:434 131 | msgid "The display of items depends on these criterias" 132 | msgstr "" 133 | 134 | #: inc/addressing.class.php:438 135 | msgid "Default fields for reservation" 136 | msgstr "" 137 | 138 | #: inc/addressing.class.php:711 139 | msgid "Number of free IP" 140 | msgstr "" 141 | 142 | #: inc/addressing.class.php:715 143 | msgid "Number of reserved IP" 144 | msgstr "" 145 | 146 | #: inc/addressing.class.php:719 147 | msgid "Number of assigned IP (no doubles)" 148 | msgstr "" 149 | 150 | #: inc/addressing.class.php:723 151 | msgid "Number of doubles IP" 152 | msgstr "" 153 | 154 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 155 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 156 | #: inc/reserveip.class.php:198 157 | msgid "Ping: got a response - used IP" 158 | msgstr "" 159 | 160 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 161 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 162 | #: inc/reserveip.class.php:195 163 | msgid "Ping: no response - free IP" 164 | msgstr "" 165 | 166 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 167 | #: inc/pinginfo.class.php:200 168 | msgctxt "button" 169 | msgid "Manual launch of ping" 170 | msgstr "" 171 | 172 | #: inc/addressing.class.php:872 173 | msgid "Real free IP (Ping=KO)" 174 | msgstr "" 175 | 176 | #: inc/addressing.class.php:881 177 | msgid "Problem detected with the IP Range" 178 | msgstr "Problema al detectar el rango de IP" 179 | 180 | #: inc/config.class.php:51 181 | msgid "System for ping" 182 | msgstr "Sistema para ping" 183 | 184 | #: inc/config.class.php:54 185 | msgid "Linux ping" 186 | msgstr "Ping Linux" 187 | 188 | #: inc/config.class.php:55 189 | msgid "Windows" 190 | msgstr "Windows" 191 | 192 | #: inc/config.class.php:56 193 | msgid "Linux fping" 194 | msgstr "FPing Linux" 195 | 196 | #: inc/config.class.php:57 197 | msgid "BSD ping" 198 | msgstr "Ping BSD" 199 | 200 | #: inc/config.class.php:58 201 | msgid "MacOSX ping" 202 | msgstr "Ping MacOSX" 203 | 204 | #: inc/config.class.php:62 205 | msgid "Display" 206 | msgstr "Mostrar" 207 | 208 | #: inc/config.class.php:87 209 | msgid "Use Ping" 210 | msgstr "Usar ping" 211 | 212 | #: inc/filter.class.php:279 213 | msgid "Add a filter" 214 | msgstr "Agregar un filtro" 215 | 216 | #: inc/ping_equipment.class.php:108 217 | msgid "No IP for this equipment" 218 | msgstr "No hay IP para este equipo" 219 | 220 | #: inc/pinginfo.class.php:53 221 | msgid "Launch ping for each ip report" 222 | msgstr "" 223 | 224 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 225 | #: inc/report.class.php:604 inc/report.class.php:705 226 | msgid "Automatic action has not be launched" 227 | msgstr "" 228 | 229 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 230 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 231 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 232 | #: inc/report.class.php:707 233 | msgid "Last ping attempt" 234 | msgstr "" 235 | 236 | #: inc/profile.class.php:44 inc/profile.class.php:74 237 | msgid "Generate reports" 238 | msgstr "Generar informes" 239 | 240 | #: inc/profile.class.php:47 inc/profile.class.php:86 241 | msgid "Use ping on equipment form" 242 | msgstr "Usar ping en equipo" 243 | 244 | #: inc/report.class.php:143 245 | msgid "Reservation" 246 | msgstr "" 247 | 248 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 249 | #: inc/report.class.php:711 250 | msgid "Reserve IP" 251 | msgstr "" 252 | 253 | #: inc/report.class.php:306 inc/report.class.php:328 254 | msgid "Reserved Address" 255 | msgstr "Dirección Reservada" 256 | 257 | #: inc/report.class.php:313 inc/report.class.php:611 258 | msgid "Success" 259 | msgstr "" 260 | 261 | #: inc/report.class.php:316 inc/report.class.php:354 262 | msgid "Reserved" 263 | msgstr "" 264 | 265 | #: inc/report.class.php:351 266 | msgid "Failed" 267 | msgstr "" 268 | 269 | #: inc/reserveip.class.php:142 270 | msgid "Object's name" 271 | msgstr "Nombre del objeto" 272 | 273 | #: inc/reserveip.class.php:262 274 | msgid "Name already in use" 275 | msgstr "Nombre en uso " 276 | 277 | #: inc/reserveip.class.php:306 278 | msgid "Validate the reservation" 279 | msgstr "Validar la reserva " 280 | -------------------------------------------------------------------------------- /locales/ru_RU.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | # Alexey Petukhov , 2015 7 | # Yarri Kor , 2016 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GLPI Project - addressing plugin\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 13 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 14 | "Last-Translator: Yarri Kor , 2016\n" 15 | "Language-Team: Russian (Russia) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/ru_RU/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: ru_RU\n" 20 | "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" 21 | 22 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 23 | #: inc/report.class.php:141 24 | msgid "Ping result" 25 | msgstr "" 26 | 27 | #: hook.php:247 28 | msgid "Last ping OK" 29 | msgstr "" 30 | 31 | #: hook.php:249 32 | msgid "Last ping KO" 33 | msgstr "" 34 | 35 | #: hook.php:251 inc/pinginfo.class.php:174 36 | msgid "Ping informations not available" 37 | msgstr "" 38 | 39 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 40 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 41 | msgid "IP Adressing" 42 | msgid_plural "IP Adressing" 43 | msgstr[0] "IP Adressing" 44 | msgstr[1] "IP Adressing" 45 | msgstr[2] "IP Adressing" 46 | msgstr[3] "IP Adressing" 47 | 48 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 49 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 50 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 51 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 52 | #: inc/report.class.php:695 53 | msgid "IP ping" 54 | msgstr "IP пинг" 55 | 56 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 57 | #: inc/report.class.php:480 inc/report.class.php:715 58 | #: inc/reserveip.class.php:42 59 | msgid "IP reservation" 60 | msgstr "" 61 | 62 | #: front/addressing.form.php:52 front/addressing.form.php:82 63 | msgid "Problem when adding, required fields are not here" 64 | msgstr "Ошибка при добавлении. Требуется заполнить поля." 65 | 66 | #: front/config.form.php:50 front/config.php:50 67 | msgid "Please activate the plugin" 68 | msgstr "Пожалуйста, активируйте дополнение" 69 | 70 | #: front/reserveip.form.php:39 71 | msgid "The address has been reserved" 72 | msgstr "" 73 | 74 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 75 | msgid "Ping free IP" 76 | msgstr "" 77 | 78 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 79 | #: inc/filter.class.php:121 inc/filter.class.php:316 80 | msgid "First IP" 81 | msgstr "Первый IP" 82 | 83 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 84 | #: inc/filter.class.php:161 inc/filter.class.php:317 85 | msgid "Last IP" 86 | msgstr "Последний IP" 87 | 88 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 89 | #: inc/filter.class.php:219 90 | msgid "Report for the IP Range" 91 | msgstr "Отчет по диапазону IP адресов" 92 | 93 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 94 | #: inc/filter.class.php:87 inc/filter.class.php:225 95 | msgid "Invalid data !!" 96 | msgstr "Неверные данные!!" 97 | 98 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 99 | #: inc/config.class.php:64 100 | msgid "Assigned IP" 101 | msgstr "Назначенные IP" 102 | 103 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 104 | #: inc/addressing.class.php:782 inc/config.class.php:69 105 | msgid "Free IP" 106 | msgstr "Свободные IP" 107 | 108 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 109 | #: inc/addressing.class.php:774 inc/config.class.php:75 110 | msgid "Same IP" 111 | msgstr "Одинаковые IP" 112 | 113 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 114 | #: inc/addressing.class.php:778 inc/config.class.php:80 115 | msgid "Reserved IP" 116 | msgstr "Зарезервированные IP" 117 | 118 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 119 | #: inc/filter.class.php:43 120 | msgid "Filter" 121 | msgid_plural "Filters" 122 | msgstr[0] "Фильтр" 123 | msgstr[1] "Фильтры" 124 | msgstr[2] "Фильтры" 125 | msgstr[3] "Фильтр" 126 | 127 | #: inc/addressing.class.php:431 128 | msgid "Use the networks as filter" 129 | msgstr "" 130 | 131 | #: inc/addressing.class.php:434 132 | msgid "The display of items depends on these criterias" 133 | msgstr "" 134 | 135 | #: inc/addressing.class.php:438 136 | msgid "Default fields for reservation" 137 | msgstr "" 138 | 139 | #: inc/addressing.class.php:711 140 | msgid "Number of free IP" 141 | msgstr "" 142 | 143 | #: inc/addressing.class.php:715 144 | msgid "Number of reserved IP" 145 | msgstr "" 146 | 147 | #: inc/addressing.class.php:719 148 | msgid "Number of assigned IP (no doubles)" 149 | msgstr "" 150 | 151 | #: inc/addressing.class.php:723 152 | msgid "Number of doubles IP" 153 | msgstr "" 154 | 155 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 156 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 157 | #: inc/reserveip.class.php:198 158 | msgid "Ping: got a response - used IP" 159 | msgstr "" 160 | 161 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 162 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 163 | #: inc/reserveip.class.php:195 164 | msgid "Ping: no response - free IP" 165 | msgstr "" 166 | 167 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 168 | #: inc/pinginfo.class.php:200 169 | msgctxt "button" 170 | msgid "Manual launch of ping" 171 | msgstr "" 172 | 173 | #: inc/addressing.class.php:872 174 | msgid "Real free IP (Ping=KO)" 175 | msgstr "" 176 | 177 | #: inc/addressing.class.php:881 178 | msgid "Problem detected with the IP Range" 179 | msgstr "Обнаруженные проблемы с IP диапазоном" 180 | 181 | #: inc/config.class.php:51 182 | msgid "System for ping" 183 | msgstr "Система для пинга" 184 | 185 | #: inc/config.class.php:54 186 | msgid "Linux ping" 187 | msgstr "Linux ping" 188 | 189 | #: inc/config.class.php:55 190 | msgid "Windows" 191 | msgstr "Windows" 192 | 193 | #: inc/config.class.php:56 194 | msgid "Linux fping" 195 | msgstr "Linux fping" 196 | 197 | #: inc/config.class.php:57 198 | msgid "BSD ping" 199 | msgstr "BSD ping" 200 | 201 | #: inc/config.class.php:58 202 | msgid "MacOSX ping" 203 | msgstr "MacOSX ping" 204 | 205 | #: inc/config.class.php:62 206 | msgid "Display" 207 | msgstr "Отобразить" 208 | 209 | #: inc/config.class.php:87 210 | msgid "Use Ping" 211 | msgstr "Использовать пинг" 212 | 213 | #: inc/filter.class.php:279 214 | msgid "Add a filter" 215 | msgstr "Добавить фильтр" 216 | 217 | #: inc/ping_equipment.class.php:108 218 | msgid "No IP for this equipment" 219 | msgstr "Нет IP для этого оборудования" 220 | 221 | #: inc/pinginfo.class.php:53 222 | msgid "Launch ping for each ip report" 223 | msgstr "" 224 | 225 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 226 | #: inc/report.class.php:604 inc/report.class.php:705 227 | msgid "Automatic action has not be launched" 228 | msgstr "" 229 | 230 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 231 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 232 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 233 | #: inc/report.class.php:707 234 | msgid "Last ping attempt" 235 | msgstr "" 236 | 237 | #: inc/profile.class.php:44 inc/profile.class.php:74 238 | msgid "Generate reports" 239 | msgstr "Создать отчет" 240 | 241 | #: inc/profile.class.php:47 inc/profile.class.php:86 242 | msgid "Use ping on equipment form" 243 | msgstr "Использовать ping на форме оборудования" 244 | 245 | #: inc/report.class.php:143 246 | msgid "Reservation" 247 | msgstr "" 248 | 249 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 250 | #: inc/report.class.php:711 251 | msgid "Reserve IP" 252 | msgstr "" 253 | 254 | #: inc/report.class.php:306 inc/report.class.php:328 255 | msgid "Reserved Address" 256 | msgstr "Зарезервированные адреса" 257 | 258 | #: inc/report.class.php:313 inc/report.class.php:611 259 | msgid "Success" 260 | msgstr "" 261 | 262 | #: inc/report.class.php:316 inc/report.class.php:354 263 | msgid "Reserved" 264 | msgstr "" 265 | 266 | #: inc/report.class.php:351 267 | msgid "Failed" 268 | msgstr "" 269 | 270 | #: inc/reserveip.class.php:142 271 | msgid "Object's name" 272 | msgstr "Названия объектов" 273 | 274 | #: inc/reserveip.class.php:262 275 | msgid "Name already in use" 276 | msgstr "Имя уже используется" 277 | 278 | #: inc/reserveip.class.php:306 279 | msgid "Validate the reservation" 280 | msgstr "Подтверждать резервирование" 281 | -------------------------------------------------------------------------------- /locales/en_GB.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR Addressing Development Team 3 | # This file is distributed under the same license as the GLPI - Addressing plugin package. 4 | # 5 | # Translators: 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: GLPI Project - addressing plugin\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2022-09-15 13:40+0200\n" 11 | "PO-Revision-Date: 2012-09-07 11:14+0000\n" 12 | "Last-Translator: FULL NAME \n" 13 | "Language-Team: English (United Kingdom) (http://www.transifex.com/infotelGLPI/GLPI_addressing/language/en_GB/)\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Language: en_GB\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | 20 | #: hook.php:215 inc/ping_equipment.class.php:92 inc/pinginfo.class.php:190 21 | #: inc/report.class.php:141 22 | msgid "Ping result" 23 | msgstr "Ping result" 24 | 25 | #: hook.php:247 26 | msgid "Last ping OK" 27 | msgstr "Last ping OK" 28 | 29 | #: hook.php:249 30 | msgid "Last ping KO" 31 | msgstr "Last ping KO" 32 | 33 | #: hook.php:251 inc/pinginfo.class.php:174 34 | msgid "Ping informations not available" 35 | msgstr "Ping informations not available" 36 | 37 | #: setup.php:81 inc/addressing.class.php:46 inc/ipcomment.class.php:44 38 | #: inc/pinginfo.class.php:42 inc/profile.class.php:108 39 | msgid "IP Adressing" 40 | msgid_plural "IP Adressing" 41 | msgstr[0] "IP Adressing" 42 | msgstr[1] "IP Adressing" 43 | 44 | #: ajax/addressing.php:60 inc/ping_equipment.class.php:71 45 | #: inc/ping_equipment.class.php:87 inc/report.class.php:179 46 | #: inc/report.class.php:184 inc/report.class.php:448 inc/report.class.php:453 47 | #: inc/report.class.php:585 inc/report.class.php:590 inc/report.class.php:690 48 | #: inc/report.class.php:695 49 | msgid "IP ping" 50 | msgstr "IP ping" 51 | 52 | #: ajax/addressing.php:69 inc/report.class.php:289 inc/report.class.php:346 53 | #: inc/report.class.php:480 inc/report.class.php:715 54 | #: inc/reserveip.class.php:42 55 | msgid "IP reservation" 56 | msgstr "IP reservation" 57 | 58 | #: front/addressing.form.php:52 front/addressing.form.php:82 59 | msgid "Problem when adding, required fields are not here" 60 | msgstr "Problem when adding, required fields are not here" 61 | 62 | #: front/config.form.php:50 front/config.php:50 63 | msgid "Please activate the plugin" 64 | msgstr "Please activate the plugin" 65 | 66 | #: front/reserveip.form.php:39 67 | msgid "The address has been reserved" 68 | msgstr "The address has been reserved" 69 | 70 | #: inc/addressing.class.php:92 inc/addressing.class.php:401 71 | msgid "Ping free IP" 72 | msgstr "Ping free IP" 73 | 74 | #: inc/addressing.class.php:140 inc/addressing.class.php:251 75 | #: inc/filter.class.php:121 inc/filter.class.php:316 76 | msgid "First IP" 77 | msgstr "First IP" 78 | 79 | #: inc/addressing.class.php:149 inc/addressing.class.php:300 80 | #: inc/filter.class.php:161 inc/filter.class.php:317 81 | msgid "Last IP" 82 | msgstr "Last IP" 83 | 84 | #: inc/addressing.class.php:183 inc/addressing.class.php:388 85 | #: inc/filter.class.php:219 86 | msgid "Report for the IP Range" 87 | msgstr "Report for the IP Range" 88 | 89 | #: inc/addressing.class.php:222 inc/addressing.class.php:396 90 | #: inc/filter.class.php:87 inc/filter.class.php:225 91 | msgid "Invalid data !!" 92 | msgstr "Invalid data !!" 93 | 94 | #: inc/addressing.class.php:236 inc/addressing.class.php:770 95 | #: inc/config.class.php:64 96 | msgid "Assigned IP" 97 | msgstr "Assigned IP" 98 | 99 | #: inc/addressing.class.php:288 inc/addressing.class.php:751 100 | #: inc/addressing.class.php:782 inc/config.class.php:69 101 | msgid "Free IP" 102 | msgstr "Free IP" 103 | 104 | #: inc/addressing.class.php:356 inc/addressing.class.php:733 105 | #: inc/addressing.class.php:774 inc/config.class.php:75 106 | msgid "Same IP" 107 | msgstr "Same IP" 108 | 109 | #: inc/addressing.class.php:376 inc/addressing.class.php:754 110 | #: inc/addressing.class.php:778 inc/config.class.php:80 111 | msgid "Reserved IP" 112 | msgstr "Reserved IP" 113 | 114 | #: inc/addressing.class.php:422 inc/addressing.class.php:812 115 | #: inc/filter.class.php:43 116 | msgid "Filter" 117 | msgid_plural "Filters" 118 | msgstr[0] "Filter" 119 | msgstr[1] "Filters" 120 | 121 | #: inc/addressing.class.php:431 122 | msgid "Use the networks as filter" 123 | msgstr "Use the networks as filter" 124 | 125 | #: inc/addressing.class.php:434 126 | msgid "The display of items depends on these criterias" 127 | msgstr "The display of items depends on these criterias" 128 | 129 | #: inc/addressing.class.php:438 130 | msgid "Default fields for reservation" 131 | msgstr "Default fields for reservation" 132 | 133 | #: inc/addressing.class.php:711 134 | msgid "Number of free IP" 135 | msgstr "Number of free IP" 136 | 137 | #: inc/addressing.class.php:715 138 | msgid "Number of reserved IP" 139 | msgstr "Number of reserved IP" 140 | 141 | #: inc/addressing.class.php:719 142 | msgid "Number of assigned IP (no doubles)" 143 | msgstr "Number of assigned IP (no doubles)" 144 | 145 | #: inc/addressing.class.php:723 146 | msgid "Number of doubles IP" 147 | msgstr "Number of doubles IP" 148 | 149 | #: inc/addressing.class.php:741 inc/addressing.class.php:794 150 | #: inc/ping_equipment.class.php:280 inc/report.class.php:594 151 | #: inc/reserveip.class.php:198 152 | msgid "Ping: got a response - used IP" 153 | msgstr "Ping: got a response - used IP" 154 | 155 | #: inc/addressing.class.php:747 inc/addressing.class.php:790 156 | #: inc/ping_equipment.class.php:277 inc/report.class.php:699 157 | #: inc/reserveip.class.php:195 158 | msgid "Ping: no response - free IP" 159 | msgstr "Ping: no response - free IP" 160 | 161 | #: inc/addressing.class.php:799 inc/addressing.class.php:801 162 | #: inc/pinginfo.class.php:200 163 | msgctxt "button" 164 | msgid "Manual launch of ping" 165 | msgstr "Manual launch of ping" 166 | 167 | #: inc/addressing.class.php:872 168 | msgid "Real free IP (Ping=KO)" 169 | msgstr "Real free IP (Ping=KO)" 170 | 171 | #: inc/addressing.class.php:881 172 | msgid "Problem detected with the IP Range" 173 | msgstr "Problem detected with the IP Range" 174 | 175 | #: inc/config.class.php:51 176 | msgid "System for ping" 177 | msgstr "System for ping" 178 | 179 | #: inc/config.class.php:54 180 | msgid "Linux ping" 181 | msgstr "Linux ping" 182 | 183 | #: inc/config.class.php:55 184 | msgid "Windows" 185 | msgstr "Windows" 186 | 187 | #: inc/config.class.php:56 188 | msgid "Linux fping" 189 | msgstr "Linux fping" 190 | 191 | #: inc/config.class.php:57 192 | msgid "BSD ping" 193 | msgstr "BSD ping" 194 | 195 | #: inc/config.class.php:58 196 | msgid "MacOSX ping" 197 | msgstr "MacOSX ping" 198 | 199 | #: inc/config.class.php:62 200 | msgid "Display" 201 | msgstr "Display" 202 | 203 | #: inc/config.class.php:87 204 | msgid "Use Ping" 205 | msgstr "Use Ping" 206 | 207 | #: inc/filter.class.php:279 208 | msgid "Add a filter" 209 | msgstr "Add a filter" 210 | 211 | #: inc/ping_equipment.class.php:108 212 | msgid "No IP for this equipment" 213 | msgstr "No IP for this equipment" 214 | 215 | #: inc/pinginfo.class.php:53 216 | msgid "Launch ping for each ip report" 217 | msgstr "Launch ping for each ip report" 218 | 219 | #: inc/pinginfo.class.php:173 inc/report.class.php:272 220 | #: inc/report.class.php:604 inc/report.class.php:705 221 | msgid "Automatic action has not be launched" 222 | msgstr "Automatic action has not be launched" 223 | 224 | #: inc/pinginfo.class.php:177 inc/pinginfo.class.php:178 225 | #: inc/pinginfo.class.php:182 inc/pinginfo.class.php:183 226 | #: inc/report.class.php:302 inc/report.class.php:323 inc/report.class.php:606 227 | #: inc/report.class.php:707 228 | msgid "Last ping attempt" 229 | msgstr "Last ping attempt" 230 | 231 | #: inc/profile.class.php:44 inc/profile.class.php:74 232 | msgid "Generate reports" 233 | msgstr "Generate reports" 234 | 235 | #: inc/profile.class.php:47 inc/profile.class.php:86 236 | msgid "Use ping on equipment form" 237 | msgstr "Use ping on equipment form" 238 | 239 | #: inc/report.class.php:143 240 | msgid "Reservation" 241 | msgstr "Reservation" 242 | 243 | #: inc/report.class.php:284 inc/report.class.php:340 inc/report.class.php:476 244 | #: inc/report.class.php:711 245 | msgid "Reserve IP" 246 | msgstr "Reserve IP" 247 | 248 | #: inc/report.class.php:306 inc/report.class.php:328 249 | msgid "Reserved Address" 250 | msgstr "Reserved Address" 251 | 252 | #: inc/report.class.php:313 inc/report.class.php:611 253 | msgid "Success" 254 | msgstr "Success" 255 | 256 | #: inc/report.class.php:316 inc/report.class.php:354 257 | msgid "Reserved" 258 | msgstr "Reserved" 259 | 260 | #: inc/report.class.php:351 261 | msgid "Failed" 262 | msgstr "Failed" 263 | 264 | #: inc/reserveip.class.php:142 265 | msgid "Object's name" 266 | msgstr "Object's name" 267 | 268 | #: inc/reserveip.class.php:262 269 | msgid "Name already in use" 270 | msgstr "Name already in use" 271 | 272 | #: inc/reserveip.class.php:306 273 | msgid "Validate the reservation" 274 | msgstr "Validate the reservation" 275 | -------------------------------------------------------------------------------- /src/Profile.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | namespace GlpiPlugin\Addressing; 31 | 32 | use CommonGLPI; 33 | use DbUtils; 34 | use Html; 35 | use ProfileRight; 36 | use Session; 37 | 38 | if (!defined('GLPI_ROOT')) { 39 | die("Sorry. You can't access directly to this file"); 40 | } 41 | 42 | /** 43 | * Class Profile 44 | */ 45 | class Profile extends \Profile 46 | { 47 | public static $rightname = "profile"; 48 | 49 | public static function getAllRights() 50 | { 51 | $rights = [ 52 | ['itemtype' => Addressing::class, 53 | 'label' => __('Generate reports', 'addressing'), 54 | 'field' => 'plugin_addressing'], 55 | ['itemtype' => Addressing::class, 56 | 'label' => __('Use ping on equipment form', 'addressing'), 57 | 'field' => 'plugin_addressing_use_ping_in_equipment']]; 58 | return $rights; 59 | } 60 | 61 | /** 62 | * Show profile form 63 | * 64 | * @param $items_id integer id of the profile 65 | * @param $target value url of target 66 | * 67 | * @return nothing 68 | **/ 69 | public function showForm($profiles_id = 0, $openform = true, $closeform = true) 70 | { 71 | echo "
"; 72 | if (($canedit = Session::haveRightsOr(self::$rightname, [CREATE, UPDATE, PURGE])) 73 | && $openform) { 74 | $profile = new \Profile(); 75 | echo ""; 76 | } 77 | 78 | $profile = new \Profile(); 79 | $profile->getFromDB($profiles_id); 80 | 81 | $rights = [ 82 | ['itemtype' => Addressing::class, 83 | 'label' => __('Generate reports', 'addressing'), 84 | 'field' => 'plugin_addressing']]; 85 | 86 | $profile->displayRightsChoiceMatrix($rights, ['canedit' => $canedit, 87 | 'default_class' => 'tab_bg_2', 88 | 'title' => __('General')]); 89 | 90 | echo ""; 91 | 92 | $effective_rights = ProfileRight::getProfileRights( 93 | $profiles_id, 94 | ['plugin_addressing_use_ping_in_equipment'] 95 | ); 96 | echo ""; 97 | echo ""; 98 | echo "\n"; 102 | echo "
".__('Use ping on equipment form', 'addressing').""; 99 | Html::showCheckbox(['name' => '_plugin_addressing_use_ping_in_equipment[1_0]', 100 | 'checked' => $effective_rights['plugin_addressing_use_ping_in_equipment']]); 101 | echo "
"; 103 | 104 | if ($canedit 105 | && $closeform) { 106 | echo "
"; 107 | echo Html::hidden('id', ['value' => $profiles_id]); 108 | echo Html::submit(_sx('button', 'Save'), ['name' => 'update', 'class' => 'btn btn-primary']); 109 | echo "
\n"; 110 | Html::closeForm(); 111 | } 112 | echo "
"; 113 | } 114 | 115 | public static function getIcon() 116 | { 117 | return Addressing::getIcon(); 118 | } 119 | 120 | public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) 121 | { 122 | if ($item->getType() == 'Profile') { 123 | if ($item->getField('interface') == 'central') { 124 | return self::createTabEntry(_n('IP Addressing', 'IP Addressing', 2, 'addressing')); 125 | } 126 | return ''; 127 | } 128 | return ''; 129 | } 130 | 131 | 132 | public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) 133 | { 134 | if ($item->getType() == 'Profile') { 135 | $profile = new self(); 136 | $ID = $item->getField('id'); 137 | //In case there's no right for this profile, create it 138 | self::addDefaultProfileInfos( 139 | $item->getID(), 140 | ['plugin_addressing' => 0, 141 | 'plugin_addressing_use_ping_in_equipment' => 0] 142 | ); 143 | $profile->showForm($ID); 144 | } 145 | return true; 146 | } 147 | 148 | 149 | /** 150 | * @param $profile 151 | **/ 152 | public static function addDefaultProfileInfos($profiles_id, $rights) 153 | { 154 | $profileRight = new ProfileRight(); 155 | $dbu = new DbUtils(); 156 | foreach ($rights as $right => $value) { 157 | if (!$dbu->countElementsInTable( 158 | 'glpi_profilerights', 159 | ["profiles_id" => $profiles_id, 160 | "name" => $right] 161 | )) { 162 | $myright['profiles_id'] = $profiles_id; 163 | $myright['name'] = $right; 164 | $myright['rights'] = $value; 165 | $profileRight->add($myright); 166 | 167 | //Add right to the current session 168 | $_SESSION['glpiactiveprofile'][$right] = $value; 169 | } 170 | } 171 | } 172 | 173 | /** 174 | * @param $ID integer 175 | */ 176 | public static function createFirstAccess($profiles_id) 177 | { 178 | self::addDefaultProfileInfos( 179 | $profiles_id, 180 | ['plugin_addressing' => ALLSTANDARDRIGHT, 181 | 'plugin_addressing_use_ping_in_equipment' => '1'] 182 | ); 183 | } 184 | 185 | 186 | /** 187 | * Initialize profiles 188 | */ 189 | public static function initProfile() 190 | { 191 | global $DB; 192 | 193 | $it = $DB->request([ 194 | 'FROM' => 'glpi_profilerights', 195 | 'WHERE' => [ 196 | 'profiles_id' => $_SESSION['glpiactiveprofile']['id'], 197 | 'name' => ['LIKE', '%plugin_addressing%'] 198 | ] 199 | ]); 200 | foreach ($it as $prof) { 201 | if (isset($_SESSION['glpiactiveprofile'])) { 202 | $_SESSION['glpiactiveprofile'][$prof['name']] = $prof['rights']; 203 | } 204 | } 205 | } 206 | 207 | public static function migrateProfiles() 208 | { 209 | global $DB; 210 | 211 | if (!$DB->tableExists('glpi_plugin_addressing_profiles')) { 212 | return true; 213 | } 214 | $dbu = new DbUtils(); 215 | $profiles = $dbu->getAllDataFromTable('glpi_plugin_addressing_profiles'); 216 | foreach ($profiles as $id => $profile) { 217 | switch ($profile['addressing']) { 218 | case 'r': 219 | $value = READ; 220 | break; 221 | case 'w': 222 | $value = ALLSTANDARDRIGHT; 223 | break; 224 | case 0: 225 | default: 226 | $value = 0; 227 | break; 228 | } 229 | self::addDefaultProfileInfos($profile['profiles_id'], ['plugin_addressing' => $value]); 230 | self::addDefaultProfileInfos( 231 | $profile['profiles_id'], 232 | ['plugin_addressing_use_ping_in_equipment' 233 | => $profile['use_ping_in_equipment']] 234 | ); 235 | } 236 | } 237 | 238 | 239 | public static function removeRightsFromSession() 240 | { 241 | foreach (self::getAllRights() as $right) { 242 | if (isset($_SESSION['glpiactiveprofile'][$right['field']])) { 243 | unset($_SESSION['glpiactiveprofile'][$right['field']]); 244 | } 245 | } 246 | } 247 | } 248 | --------------------------------------------------------------------------------