mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
nedge dhcp static leases
This commit is contained in:
parent
c0d472a5e7
commit
665f7bf8c5
4 changed files with 36 additions and 9 deletions
|
|
@ -2505,6 +2505,10 @@ function getIPv4Pattern()
|
|||
return "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$"
|
||||
end
|
||||
|
||||
function getMacPattern()
|
||||
return "^([0-9a-fA-F][0-9a-fA-F]:){5}[0-9a-fA-F]{2}$"
|
||||
end
|
||||
|
||||
function getURLPattern()
|
||||
return "^https?://.+$"
|
||||
end
|
||||
|
|
@ -3547,6 +3551,17 @@ function path_get_page(path)
|
|||
return path
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
function printWarningAlert(message)
|
||||
print[[<div class="alert alert-warning alert-dismissable" role="alert">]]
|
||||
print[[<a class="close" data-dismiss="alert" aria-label="close">×</a>]]
|
||||
print[[<i class="fa fa-warning fa-sm"></i> ]]
|
||||
print[[<strong>]] print(i18n("warning")) print[[</strong> ]]
|
||||
print(message)
|
||||
print[[</div>]]
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
--
|
||||
-- IMPORTANT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue