mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Updated policy code
This commit is contained in:
parent
366a15a973
commit
e066506aeb
3 changed files with 37 additions and 8 deletions
25
scripts/lua/modules/continent_codes.lua
Normal file
25
scripts/lua/modules/continent_codes.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
--
|
||||
-- (C) 2021 - ntop.org
|
||||
--
|
||||
-- This file contains the list of continent codes and name
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
|
||||
-- ################################################################################
|
||||
|
||||
-- https://www.php.net/manual/en/function.geoip-continent-code-by-name.php
|
||||
-- https://doc.bccnsoft.com/docs/php-docs-7-en/function.geoip-continent-code-by-name.html
|
||||
|
||||
local continent_codes = {
|
||||
['AF'] = "Africa",
|
||||
['AN'] = "Antarctica",
|
||||
['AS'] = "Asia",
|
||||
['EU'] = "Europe",
|
||||
['NA'] = "North America",
|
||||
['OC'] = "Oceania",
|
||||
['SA'] = "South America"
|
||||
}
|
||||
|
||||
-- ################################################################################
|
||||
|
||||
return continent_codes
|
||||
Loading…
Add table
Add a link
Reference in a new issue