From: hickert Date: Thu, 22 Dec 2005 09:22:06 +0000 (+0000) Subject: removed old glpi class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=588434bf3c6fe4ad2c7e6c30f1e68d434e59fc0b;p=gosa.git removed old glpi class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2372 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index afebb9352..c7e9e1d3f 100644 --- a/html/main.php +++ b/html/main.php @@ -318,7 +318,7 @@ $display= $header.$smarty->fetch(get_template_path('framework.tpl')); } */ -if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST']))&&(!empty($display))) { +if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->data['MAIN']['W3CTEST']))&&(!empty($display))&&(is_callable("tidy_parse_string"))) { tidy_parse_string(utf8_decode($display)); $err = nl2br(htmlentities(tidy_get_error_buffer())); diff --git a/plugins/personal/connectivity/class_glpiAccount.inc b/plugins/personal/connectivity/class_glpiAccount.inc deleted file mode 100644 index 60f314cdc..000000000 --- a/plugins/personal/connectivity/class_glpiAccount.inc +++ /dev/null @@ -1,139 +0,0 @@ - "Eins ist toll", "zwei" => "Zwei ist noch besser"); - - /* attribute list for save action */ - var $attributes= array(); - var $objectclasses= array("glpiAccount"); - - function glpiAccount ($config, $dn= NULL) - { - plugin::plugin ($config, $dn); - } - - function execute() - { - /* Call parent execute */ - //plugin::execute(); - - /* Show tab dialog headers */ - $display= ""; - - /* Show main page */ - $smarty= get_smarty(); - - if ($this->is_account){ - $smarty->assign("glpiState", "checked"); - } else { - $smarty->assign("glpiState", ""); - $smarty->assign("wstate", "disabled"); - } - - if ($this->parent != NULL){ - $smarty->assign("tabbed", 1); - } - - $smarty->assign('glpiACL', chkacl($this->acl, 'gosaglpi')); - - $display.= $smarty->fetch (get_template_path('glpi.tpl', TRUE, dirname(__FILE__))); - return ($display); - } - - function remove_from_parent() - { - /* Cancel if there's nothing to do here */ - if (!$this->initially_was_account){ - return; - } - - plugin::remove_from_parent(); - $ldap= $this->config->get_ldap_link(); - - $ldap->cd($this->dn); - @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, - $this->attributes, "Save"); - $ldap->modify($this->attrs); - show_ldap_error($ldap->get_error()); - - /* Optionally execute a command after we're done */ - $this->handle_post_events('remove'); - } - - - /* Save data to object */ - function save_object() - { - /* Do we need to flip is_account state? */ - if (isset($_POST['connectivityTab'])){ - if (isset($_POST['glpi'])){ - if (!$this->is_account && $_POST['glpi'] == "B"){ - $this->is_account= TRUE; - } - } else { - $this->is_account= FALSE; - } - } - - plugin::save_object(); - if (isset($_POST["glpiStatus"])){ - $this->glpiStatus = "disabled"; - } else { - $this->glpiStatus = "enabled"; - } - } - - - /* Save to LDAP */ - function save() - { - plugin::save(); - - /* Write back to ldap */ - $ldap= $this->config->get_ldap_link(); - $ldap->cd($this->dn); - $ldap->modify($this->attrs); - show_ldap_error($ldap->get_error()); - - /* Optionally execute a command after we're done */ - if ($this->initially_was_account == $this->is_account){ - if ($this->is_modified){ - $this->handle_post_events("mofify"); - } - } else { - $this->handle_post_events("add"); - } - - } - -} - -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?>