diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:22:41 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-06-07 15:22:41 +1000 |
| commit | a582bf5866c8dbb6d497c0f860475a6eeb73b096 (patch) | |
| tree | fcceb2c550ef56f073d5b0921c10a7d2e9cc51bc /templates/themes/rrdtool/info.php | |
| parent | 8baf6ca1245fd02c227c183e04c836b69235b9f7 (diff) | |
"rrdtool" theme for graphing basic stats in development
Diffstat (limited to 'templates/themes/rrdtool/info.php')
| -rw-r--r-- | templates/themes/rrdtool/info.php | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ +<?php + $theme = Array(); + + // Theme name + $theme['name'] = 'RRDtool'; + // Description (you can use Tinyboard markup here) + $theme['description'] = 'Graph basic statistics using the PHP RRDtool extension.'; + $theme['version'] = 'v0.1'; + + // Theme configuration + $theme['config'] = Array(); + + $theme['config'][] = Array( + 'title' => '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 |
