From: hickert Date: Thu, 5 Aug 2010 09:01:21 +0000 (+0000) Subject: Added statistics plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e6f763d8ba21769fd8565701bdf5f2fd62fe20e3;p=gosa.git Added statistics plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19362 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc new file mode 100644 index 000000000..f6faff637 --- /dev/null +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -0,0 +1,33 @@ +fetch(get_template_path('statistics.tpl', TRUE))); + } + + function check() + { + $messages = plugin::check(); + return($messages); + } + + function save_object() + { + plugin::save_object(); + } +} +?> diff --git a/gosa-core/plugins/generic/statistics/main.inc b/gosa-core/plugins/generic/statistics/main.inc new file mode 100644 index 000000000..ae48640d1 --- /dev/null +++ b/gosa-core/plugins/generic/statistics/main.inc @@ -0,0 +1,51 @@ +save_object(); + $display= $statistics->execute (); + $display.= "\n"; + + /* Store changes in session */ + session::set('statistics',$statistics); +} +?> diff --git a/gosa-core/plugins/generic/statistics/statistics.tpl b/gosa-core/plugins/generic/statistics/statistics.tpl new file mode 100644 index 000000000..e69de29bb