Code

Updated filenames
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 09:16:38 +0000 (09:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 09:16:38 +0000 (09:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19702 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl [new file with mode: 0644]
gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc [new file with mode: 0644]
gosa-plugins/goto/admin/systems/goto/Device/class_installRecipe.inc [deleted file]
gosa-plugins/goto/admin/systems/goto/Device/installRecipe.tpl [deleted file]

diff --git a/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/Device/InstallRecipe.tpl
new file mode 100644 (file)
index 0000000..9daeafb
--- /dev/null
@@ -0,0 +1 @@
+test
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc
new file mode 100644 (file)
index 0000000..a4595f5
--- /dev/null
@@ -0,0 +1,81 @@
+<?php
+
+class installRecipe extends plugin
+{
+    public $member = array();
+    public $ksTemplate = "";
+    public $ksKeyboardlayout = "";
+    public $ksSystemLocale = "";
+    public $ksTimezone = "";
+    public $ksTimeUTC = "";
+    public $ksNTPServer = "";
+    public $ksMirror = "";
+    public $ksMirrorTorrent = "";
+    public $ksRootEnabled = "";
+    public $ksRootPasswordHash = "";
+    public $ksKernelPackage = "";
+    public $ksPartitionTable = "";
+
+    public $objectclasses = array('installRecipe');
+    public $attributes = array("member","ksTemplate","ksKeyboardlayout","ksSystemLocale",
+            "ksTimezone","ksTimeUTC","ksNTPServer","ksMirror","ksMirrorTorrent",
+            "ksRootEnabled","ksRootPasswordHash","ksKernelPackage","ksPartitionTable");
+
+    function __construct(&$config, $dn)
+    {
+        plugin::plugin($config, $dn);
+    }
+
+    function execute()
+    {
+        plugin::execute();    
+        $smarty = get_smarty();
+        foreach($this->attributes as $attr){
+            $smarty->assign($attr, $this->$attr);
+        }
+        return($smarty->fetch(get_template_path('goto/Device/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/Device/class_installRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_installRecipe.inc
deleted file mode 100644 (file)
index a4595f5..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-class installRecipe extends plugin
-{
-    public $member = array();
-    public $ksTemplate = "";
-    public $ksKeyboardlayout = "";
-    public $ksSystemLocale = "";
-    public $ksTimezone = "";
-    public $ksTimeUTC = "";
-    public $ksNTPServer = "";
-    public $ksMirror = "";
-    public $ksMirrorTorrent = "";
-    public $ksRootEnabled = "";
-    public $ksRootPasswordHash = "";
-    public $ksKernelPackage = "";
-    public $ksPartitionTable = "";
-
-    public $objectclasses = array('installRecipe');
-    public $attributes = array("member","ksTemplate","ksKeyboardlayout","ksSystemLocale",
-            "ksTimezone","ksTimeUTC","ksNTPServer","ksMirror","ksMirrorTorrent",
-            "ksRootEnabled","ksRootPasswordHash","ksKernelPackage","ksPartitionTable");
-
-    function __construct(&$config, $dn)
-    {
-        plugin::plugin($config, $dn);
-    }
-
-    function execute()
-    {
-        plugin::execute();    
-        $smarty = get_smarty();
-        foreach($this->attributes as $attr){
-            $smarty->assign($attr, $this->$attr);
-        }
-        return($smarty->fetch(get_template_path('goto/Device/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/Device/installRecipe.tpl b/gosa-plugins/goto/admin/systems/goto/Device/installRecipe.tpl
deleted file mode 100644 (file)
index 9daeafb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-test