From a582bf5866c8dbb6d497c0f860475a6eeb73b096 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 7 Jun 2011 15:22:41 +1000 Subject: "rrdtool" theme for graphing basic stats in development --- templates/themes/rrdtool/info.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/themes/rrdtool/info.php (limited to 'templates/themes/rrdtool/info.php') diff --git a/templates/themes/rrdtool/info.php b/templates/themes/rrdtool/info.php new file mode 100644 index 00000000..fa1844e9 --- /dev/null +++ b/templates/themes/rrdtool/info.php @@ -0,0 +1,37 @@ + 'Path', + 'name' => 'path', + 'type' => 'text', + 'default' => str_replace('\\', '/', dirname(__FILE__)) . '/data', + 'size' => '50' + ); + + $__boards = listBoards(); + $__default_boards = Array(); + foreach($__boards as $__board) + $__default_boards[] = $__board['uri']; + + $theme['config'][] = Array( + 'title' => 'Boards', + 'name' => 'boards', + 'type' => 'text', + 'comment' => '(boards to graph; space seperated)', + 'size' => 24, + 'default' => implode(' ', $__default_boards) + ); + + // Unique function name for building everything + $theme['build_function'] = 'rrdtool_build'; +?> \ No newline at end of file -- cgit v1.3