summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c7ec8e)
raw | patch | inline | side by side (parent: 2c7ec8e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 10:47:45 +0000 (10:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 10:47:45 +0000 (10:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11993 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dak/addons/dak/class_dakplug.inc | [new file with mode: 0644] | patch | blob |
gosa-plugins/dak/addons/dak/main.inc | patch | blob | history |
diff --git a/gosa-plugins/dak/addons/dak/class_dakplug.inc b/gosa-plugins/dak/addons/dak/class_dakplug.inc
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+
+class dakplug extends plugin
+{
+
+ var $tabs = NULL;
+
+ public function __construct($config,NULL)
+ {
+ $this->tabs = new dak_tabs($config, $config->data['TABS']['DAK_TABS'],"");
+ }
+
+ public function execute()
+ {
+ return($this->tabs->execute());
+ }
+
+ public function save_object()
+ {
+ $this->tabs->save_object();
+ }
+
+ public function save() {}
+ public function remove_from_parent() {}
+ public function check() {}
+
+}
+
+?>
index 287cd0961a65f74579848a149d94a960cd1e40f9..3ffdd5f8a8f7a6743769d7867a8a91ce53ae09ae 100644 (file)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if (!$remove_lock){
- if (!session::is_set('dak_tabs') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- session::set('dak_tabs',new dak_tabs($config, $config->data['TABS']['DAK_TABS'],""));
+ if (!session::is_set('dak_plug') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+ session::set('dak_plug',new dakplug($config));
}
- $dak_tabs = session::get('dak_tabs');
+ $dak_plug = session::get('dak_plug');
/* Execute formular */
-# $display= $dak_tabs->save_object();
- $display= $dak_tabs->execute ();
+ $display= $dak_plug->save_object();
+ $display= $dak_plug->execute ();
$display.= "<input type=\"hidden\" name=\"ignore\">\n";
/* Page header*/
- $display= print_header(get_template_path('images/dak.png'), _("DAK")).$display;
+ $display= print_header(get_template_path($dak_plug->plIcon), _("DAK")).$display;
/* Store changes in session */
- session::set('dak_tabs',$dak_tabs);
+ session::set('dak_plug',$dak_plug);
}
?>