From f9954ebc3e316dbabf83d94a73a2252773c5837d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 16 Sep 2010 06:37:22 +0000 Subject: [PATCH] Added recipe class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19692 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/devices/class_installRecipe.inc | 81 +++++++++++++++++++ .../systems/goto/devices/installRecipe.tpl | 1 + 2 files changed, 82 insertions(+) create mode 100644 gosa-plugins/goto/admin/systems/goto/devices/class_installRecipe.inc create mode 100644 gosa-plugins/goto/admin/systems/goto/devices/installRecipe.tpl diff --git a/gosa-plugins/goto/admin/systems/goto/devices/class_installRecipe.inc b/gosa-plugins/goto/admin/systems/goto/devices/class_installRecipe.inc new file mode 100644 index 000000000..ba0dcd51d --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/devices/class_installRecipe.inc @@ -0,0 +1,81 @@ +attributes as $attr){ + $smarty->assign($attr, $this->$attr); + } + return($smarty->fetch(get_template_path('goto/devices/installRecipe.tpl', TRUE))); + } + + + function save() + { + plugin::save(); + $this->cleanup(); + $ldap=$this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->cd($this->dn); + $ldap->modify($this->attrs); + echo $ldap->get_error(); + } + + static function plInfo() + { + return (array( + "plShortName" => _("Device"), + "plDescription" => _("Registered device"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 1, + "plSection" => array("administration"), + "plCategory" => array("registeredDevice"), + "plProvidedAcls" => array( + "member" => _("Member"), + "ksTemplate" => _("Template"), + "ksKeyboardlayout" => _("Keyboard layout"), + "ksSystemLocale" => _("System locale"), + "ksTimezone" => _("Timezone"), + "ksTimeUTC" => _("Time"), + "ksNTPServer" => _("NTP-Server"), + "ksMirror" => _("Kickstart mirror"), + "ksMirrorTorrent" => _("Kickstart torrent mirror"), + "ksRootEnabled" => _("Root login enabled"), + "ksRootPasswordHash" => _("Root password hash"), + "ksKernelPackage" => _("Kernal package"), + "ksPartitionTable" => _("Partition table") + ) + ) + ); + } +} + +?> diff --git a/gosa-plugins/goto/admin/systems/goto/devices/installRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/devices/installRecipe.tpl new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/devices/installRecipe.tpl @@ -0,0 +1 @@ +test -- 2.30.2