mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Moved header for all pages to page_utils
This commit is contained in:
parent
539dcd322c
commit
6d7de7bd57
34 changed files with 114 additions and 93 deletions
|
|
@ -4,12 +4,11 @@
|
|||
|
||||
-- Ntop lua class example
|
||||
|
||||
|
||||
|
||||
-- Set package.path information to be able to require lua module
|
||||
dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
local page_utils = require("page_utils")
|
||||
|
||||
function printTable(table,key)
|
||||
|
||||
|
|
@ -32,7 +31,9 @@ end
|
|||
require "lua_utils"
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue