Code

Updated mysql connection and query handling, ensure that strings are save.wq
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 14:23:09 +0000 (14:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 14:23:09 +0000 (14:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19281 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/tabs_conference.inc

index 3527ab2935ef0e9cb4941758635d148b3019fc37..d95ece6bfcec68705990f9f46b05dff67dbf6320 100644 (file)
@@ -2,41 +2,41 @@
 
 class conferencetabs extends tabs
 {
-  var $base= "";
-
-  function conferencetabs($config, $data, $dn, $category)
-  {
-         tabs::tabs($config, $data, $dn,$category);
-         $this->base= $this->by_object['conference']->base; 
-
-    /* Add references/acls/snapshots */
-    $this->addSpecialTabs();
-  }
-
-  function check($ignore_account= FALSE)
-  {
-       return (tabs::check(TRUE));
-  }
-  
-
-  function save($ignore_account= FALSE)
-  {
-       $baseobject= $this->by_object['conference'];
-    $cn      = preg_replace('/,/', '\,', $baseobject->cn);
-    $cn      = preg_replace('/"/', '\"', $cn);
-       $new_dn= @LDAP::convert('cn='.$cn.','.get_ou("conference", "phoneConferenceRDN").$baseobject->base);
-
-       if(strtolower($this->dn)==strtolower($new_dn)){
-               $this->dn=$new_dn;
-       }
-
-       if($this->dn != $new_dn && $this->dn != "new"){
-               $baseobject->recursive_move($this->dn, $new_dn);
-       }
-       $this->dn= $new_dn;
-
-       tabs::save(TRUE);
-  }
+    var $base= "";
+
+    function conferencetabs($config, $data, $dn, $category)
+    {
+        tabs::tabs($config, $data, $dn,$category);
+        $this->base= $this->by_object['conference']->base; 
+
+        /* Add references/acls/snapshots */
+        $this->addSpecialTabs();
+    }
+
+    function check($ignore_account= FALSE)
+    {
+        return (tabs::check(TRUE));
+    }
+
+
+    function save($ignore_account= FALSE)
+    {
+        $baseobject= $this->by_object['conference'];
+        $cn      = preg_replace('/,/', '\,', $baseobject->cn);
+        $cn      = preg_replace('/"/', '\"', $cn);
+        $new_dn= @LDAP::convert('cn='.$cn.','.get_ou("conference", "phoneConferenceRDN").$baseobject->base);
+
+        if(strtolower($this->dn)==strtolower($new_dn)){
+            $this->dn=$new_dn;
+        }
+
+        if($this->dn != $new_dn && $this->dn != "new"){
+            $baseobject->recursive_move($this->dn, $new_dn);
+        }
+        $this->dn= $new_dn;
+
+        tabs::save(TRUE);
+    }
 
 }