From 6071119f2e205dc2d58b27c990e12b306b755026 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 3 Jun 2008 23:15:16 +0000 Subject: * luc/statistics: add file/license headers --- .../controller/luci_statistics/luci_statistics.lua | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'applications/luci-statistics/luasrc/controller/luci_statistics') diff --git a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua index 3b1bb99d71..ae1679bee7 100644 --- a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua +++ b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua @@ -1,3 +1,18 @@ +--[[ + +Luci statistics - statistics controller module +(c) 2008 Freifunk Leipzig / Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +]]-- + module("luci.controller.luci_statistics.luci_statistics", package.seeall) function index() @@ -20,11 +35,6 @@ function index() end end - -- override call(): call requested action function with supplied parameters - function _call( func, tree, plugin ) - return function() getfenv()[func]( tree, plugin ) end - end - -- override i18n(): try to translate stat_ or fall back to function _i18n( str ) return luci.i18n.translate( "stat_" .. str, str ) @@ -124,7 +134,7 @@ function statistics_networkplugins() end -function statistics_render( tree ) +function statistics_render() require("luci.statistics.rrdtool") require("luci.template") -- cgit v1.2.3