summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 588434b)
raw | patch | inline | side by side (parent: 588434b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Dec 2005 09:29:27 +0000 (09:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Dec 2005 09:29:27 +0000 (09:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2373 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_glpiAccount.inc | [new file with mode: 0644] | patch | blob |
plugins/admin/systems/glpi.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc
--- /dev/null
@@ -0,0 +1,82 @@
+<?php
+
+class glpiAccount extends plugin
+{
+ /* CLI vars */
+ var $cli_summary= "Manage server basic objects";
+ var $cli_description= "Some longer text\nfor help";
+ var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+
+ /* attribute list for save action */
+ var $ignore_account= TRUE;
+ var $attributes= array();
+ var $objectclasses= array("whatever");
+
+ /* Contructor
+ Sets default values and checks if we already hae an existing glpi account
+ */
+ function glpiAccount ($config, $dn= NULL)
+ {
+ plugin::plugin ($config, $dn);
+ print $this->is_account;
+ print $this->initialy_was_account;
+ }
+
+ function execute()
+ {
+ /* Call parent execute */
+ plugin::execute();
+
+ /* Fill templating stuff */
+ $smarty= get_smarty();
+ $display= "";
+
+ /* Do we need to flip is_account state? */
+ if (isset($_POST['modify_state'])){
+ $this->is_account= !$this->is_account;
+ }
+
+ /* Show tab dialog headers */
+ if ($this->is_account){
+ $display= $this->show_header(_("Remove DNS service"),
+ _("This server has DNS features enabled. You can disable them by clicking below."));
+ } else {
+ $display= $this->show_header(_("Add DNS service"),
+ _("This server has DNS features disabled. You can enable them by clicking below."));
+ return ($display);
+ }
+
+ $display.= $smarty->fetch(get_template_path('glpi.tpl', TRUE));
+ return($display);
+ }
+
+ function remove_from_parent()
+ {
+ }
+
+
+ /* Save data to object */
+ function save_object()
+ {
+ plugin::save_object();
+ }
+
+
+ /* Check supplied data */
+ function check()
+ {
+ $message= array();
+
+ return ($message);
+ }
+
+
+ /* Save to LDAP */
+ function save()
+ {
+ }
+
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/plugins/admin/systems/glpi.tpl b/plugins/admin/systems/glpi.tpl
--- /dev/null
@@ -0,0 +1 @@
+dasfasd