From: hickert Date: Thu, 24 Jul 2008 10:47:45 +0000 (+0000) Subject: Updated dak plugin. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9478e0d1a53300a94996ed80ce11a236f99b89d4;p=gosa.git Updated dak plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11993 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dak/addons/dak/class_dakplug.inc b/gosa-plugins/dak/addons/dak/class_dakplug.inc new file mode 100644 index 000000000..3b5dabece --- /dev/null +++ b/gosa-plugins/dak/addons/dak/class_dakplug.inc @@ -0,0 +1,30 @@ +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() {} + +} + +?> diff --git a/gosa-plugins/dak/addons/dak/main.inc b/gosa-plugins/dak/addons/dak/main.inc index 287cd0961..3ffdd5f8a 100644 --- a/gosa-plugins/dak/addons/dak/main.inc +++ b/gosa-plugins/dak/addons/dak/main.inc @@ -18,20 +18,20 @@ 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.= "\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); } ?>