Add utility function

This commit is contained in:
emanuele-f 2017-07-19 19:14:43 +02:00
parent 5dfbf87bba
commit e9681c206f

View file

@ -3399,6 +3399,13 @@ function printntopngRelease(info)
print(" Edition</td></tr>\n")
end
-- ###########################################
-- avoids manual HTTP prefix and /lua concatenation
function page_url(path)
return ntop.getHttpPrefix().."/lua/"..path
end
-- ###########################################
--
-- IMPORTANT