From: hickert Date: Thu, 29 Jul 2010 14:23:09 +0000 (+0000) Subject: Updated mysql connection and query handling, ensure that strings are save.wq X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b8d3829f9ee934161c8d6903b61680746e4af26;p=gosa.git Updated mysql connection and query handling, ensure that strings are save.wq git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19281 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/conference/tabs_conference.inc b/gosa-plugins/gofon/gofon/conference/tabs_conference.inc index 3527ab293..d95ece6bf 100644 --- a/gosa-plugins/gofon/gofon/conference/tabs_conference.inc +++ b/gosa-plugins/gofon/gofon/conference/tabs_conference.inc @@ -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); + } }