source: trunk/jabberit_messenger/inc/class.db_im.inc.php @ 1805

Revision 1805, 19.1 KB checked in by alexandrecorreia, 14 years ago (diff)

Ticket #612 - Adequando as preferências do JMessenger para o padrao Expresso.

  • Property svn:executable set to *
Line 
1<?php
2  /***************************************************************************\
3  *  Expresso - Expresso Messenger                                            *
4  *     - Alexandre Correia / Rodrigo Souza                                                               *
5  *     - JETI - http://jeti-im.org/                                                                              *
6  * ------------------------------------------------------------------------- *
7  *  This program is free software; you can redistribute it and/or modify it  *
8  *  under the terms of the GNU General Public License as published by the    *
9  *  Free Software Foundation; either version 2 of the License, or (at your   *
10  *  option) any later version.                                               *
11  \***************************************************************************/
12
13define('PHPGW_INCLUDE_ROOT','../');     
14define('PHPGW_API_INC','../phpgwapi/inc');
15require_once(PHPGW_API_INC . '/class.db.inc.php');
16require_once "class.fileDefine.inc.php";
17       
18class db_im
19{       
20        private $db;
21        private $db_name;
22        private $db_host;
23        private $db_port;
24        private $db_user;
25        private $db_pass;
26        private $db_type;
27        private $user_id;
28        private $fileD;
29       
30        public final function __construct()
31        {
32                $this->fileD = new fileDefine();
33                $this->db_name = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_name'];
34                $this->db_host = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_host'];
35                $this->db_port = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_port'];
36                $this->db_user = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_user'];
37                $this->db_pass = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_pass'];
38                $this->db_type = $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_type'];
39                $this->user_id = $_SESSION['phpgw_info']['jabberit_messenger']['user_id'];             
40                $this->connectDB();
41        }
42
43        private final function connectDB()
44        {
45                $this->db = new db();
46                $this->db_name = ( !$this->db_name ) ? $_SESSION['phpgwinfo']['db_name'] : $this->db_name;
47                $this->db_host = ( !$this->db_host ) ? $_SESSION['phpgwinfo']['db_host'] : $this->db_host;
48                $this->db_port = ( !$this->db_port ) ? $_SESSION['phpgwinfo']['db_port'] : $this->db_port;
49                $this->db_user = ( !$this->db_user ) ? $_SESSION['phpgwinfo']['db_user'] : $this->db_user;
50                $this->db_pass = ( !$this->db_pass ) ? $_SESSION['phpgwinfo']['db_pass'] : $this->db_pass;
51                $this->db_type = ( !$this->db_type ) ? $_SESSION['phpgwinfo']['db_type'] : $this->db_type;
52               
53                $this->db->connect($this->db_name,$this->db_host,$this->db_port,$this->db_user,$this->db_pass,$this->db_type);         
54        }       
55
56        public final function editHostJabber($pItem)
57        {
58                $hostsJabber = unserialize($this->getHostsJabber());
59                $findHosts      = explode(":", $pItem['item']);
60                $return = "";   
61               
62                for( $i = 0 ; $i < count($hostsJabber); $i++ )
63                        if( $hostsJabber[$i]['org'] == $findHosts[0] && $hostsJabber[$i]['jabberName'] == $findHosts[1] )
64                        {
65                                $return = "org:" . $hostsJabber[$i]['org'] . ";" .
66                                                  "jabberName:" . $hostsJabber[$i]['jabberName'] . ";" .                                                         
67                                                  "serverLdap:" . $hostsJabber[$i]['serverLdap'] . ";" .
68                                                  "contextLdap:" . $hostsJabber[$i]['contextLdap'] . ";" .
69                                                  "user:" . $hostsJabber[$i]['user'] . ";" .
70                                                  "password:" . $hostsJabber[$i]['password'] ;                                                                                                                                                                                           
71                        }
72
73                return trim($return);
74        }
75       
76        public final function getApplicationsEnabled()
77        {
78               
79                $this->db->query("SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' and config_name ='apps_jabberit'");
80                if($this->db->num_rows())
81                {
82                        $tmp = "";
83                        while($this->db->next_record())
84                        {
85                                $tmp[]= $this->db->row();
86                        }
87                        return $tmp[0]['config_value'];
88                }
89                return false;
90        }
91       
92        public final function getApplicationsList()
93        {
94                $this->db->query("SELECT * FROM phpgw_applications WHERE app_enabled = '1' order by app_name");
95                if($this->db->num_rows())
96                {
97                        while ($this->db->next_record())
98                        {
99                                $app = $this->db->f('app_name');
100                                $title = @$GLOBALS['phpgw_info']['apps'][$app]['title'];
101                                if (empty($title))
102                                {
103                                        $title = lang($app) == $app.'*' ? $app : lang($app);
104                                }
105                                $apps[$app] = array(
106                                        'title'  => $title,
107                                        'name'   => $app,
108                                        'status' => $this->db->f('app_enabled')
109                                );
110                        }
111                }
112                return $apps;
113        }
114
115        public final function get_accounts_acl()
116        {
117                $query  = "SELECT acl_account FROM phpgw_acl WHERE acl_location IN (SELECT CAST(acl_account AS varchar) FROM phpgw_acl WHERE acl_appname = 'jabberit_messenger') ";
118                $query .= "UNION SELECT acl_account FROM phpgw_acl WHERE acl_appname = 'jabberit_messenger'";
119               
120                if( $this->db->query($query) ) 
121                {
122                        $users = array();
123                        $new_users = array();
124                        while($this->db->next_record())
125                                $users[] = $this->db->row();
126
127                        if(is_array($users))
128                                foreach($users as $tmp)
129                                        $new_users[] = $tmp['acl_account'];
130                       
131                        return $new_users;
132                }
133               
134                return false;
135        }
136       
137        public final function getGroupsBlocked()
138        {
139                $return = "";
140               
141                if( $this->db )
142                {
143                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";       
144                       
145                        if($this->db->query($query))
146                        {
147
148                                if ( $this->db->query($query) )
149                                {       
150                                        while($this->db->next_record())
151                                                $result[] = $this->db->row();
152                                }
153                               
154                                if( count($result) > 0 )
155                                        $return = $result[0]['config_value'];
156                        }
157                }
158               
159                return $return;
160        }
161       
162        public final function getGroupsSearch()
163        {
164                $return = "";
165       
166                if( $this->db )
167                {
168                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'groups_search_jabberit';";
169                       
170                        if($this->db->query($query))
171                        {
172                                while($this->db->next_record())
173                                        $result[] = $this->db->row();                           
174                        }
175
176                        if( count($result) > 0 )
177                                $return = $result[0]['config_value'];
178                }
179               
180                return $return;
181        }
182       
183        public final function getHostsJabber()
184        {
185                $return = "";
186       
187                if( $this->db )
188                {
189                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'map_org_realm_jabberit';";
190                       
191                        if($this->db->query($query))
192                        {
193                                while($this->db->next_record())
194                                        $result[] = $this->db->row();                           
195                        }
196
197                        if( count($result) > 0 )
198                                $return = $result[0]['config_value'];
199                }
200               
201                return $return;
202        }
203       
204        public final function getPreferences()
205        {
206                $result = array();
207                $query = "SELECT * FROM phpgw_preferences WHERE preference_owner = '".$this->user_id."' AND preference_app = 'jabberit_messenger'";
208               
209                if ( $this->db->query($query) )
210                {       
211                        while($this->db->next_record())
212                                $result[] = $this->db->row();
213       
214                        if( count($result) > 0 )
215                        {
216                                $_return = unserialize($result[0]['preference_value']);
217                               
218                                if( is_array($_return) )
219                                        return $_return['preferences'];
220                                else
221                                        return $_return;
222                        }
223                }
224
225                return "openWindowJabberit:true;openWindowJabberitPopUp:false;flagAwayIM:5";
226        }
227
228        public final function setApplications($pApplications)
229        {
230                $apps = serialize($pApplications);
231               
232                if( $this->db )
233                {
234                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' and config_name ='apps_jabberit'";
235                               
236                        $this->db->query($query);
237                                       
238                        if(!$this->db->next_record())
239                        {
240                                $query = "INSERT INTO phpgw_config(config_app,config_name,config_value) VALUES('phpgwapi','apps_jabberit','".$apps."')";
241                                $this->db->query($query);
242                                return true;
243                        }
244                        else
245                        {
246                                $query = "UPDATE phpgw_config SET config_value = '".$apps."' WHERE config_app = 'phpgwapi' AND config_name = 'apps_jabberit'";
247                                $this->db->query($query);
248                                return true;
249                        }
250                }
251                return false;   
252        }
253       
254        public final function setAttributesLdap($pAttributes)
255        {
256                $values = $pAttributes['conf'];
257                $attributesOrg = "";           
258
259                if( $this->db )
260                {
261                        $query = "SELECT * from phpgw_config WHERE config_app = 'phpgwapi' and config_name = 'attributes_org_ldap_jabberit'";
262
263                        if ( $this->db->query($query) )
264                        {       
265                                while($this->db->next_record())
266                                        $result[] = $this->db->row();
267               
268                                if(count($result) > 0)
269                                        $attributesOrg = $result[0]['config_value'];
270                        }
271
272                        if( trim($attributesOrg) == "" )
273                        {
274                                $query = "INSERT INTO phpgw_config(config_app,config_name,config_value) VALUES('phpgwapi','attributes_org_ldap_jabberit','".$values."')";
275                                $this->db->query($query);
276                               
277                                $attr = explode(";", $values);
278                                $values = "<return><ou attr='".$attr[1]."'>".$attr[0]."</ou></return>";
279                                return $values;
280                        }
281                        else
282                        {
283                                $org = explode(",", $attributesOrg);
284                                $newValue = explode(";", $values);
285                               
286                                foreach( $org as $tmp )
287                                {
288                                        $attr = explode(";",$tmp);
289                                        if( strtolower(trim($attr[0])) == strtolower(trim($newValue[0])) )
290                                                return false;
291                                }
292
293                                $values = $values . "," . $attributesOrg;
294                                $query = "UPDATE phpgw_config SET config_value = '".$values."' WHERE config_app = 'phpgwapi' AND config_name = 'attributes_org_ldap_jabberit'";
295                                $this->db->query($query);
296
297                                $return = explode(",",$values);
298                                natcasesort($return);
299
300                                $values = "<return>";
301                               
302                                foreach($return as $tmp)
303                                {
304                                        $attr = explode(";", $tmp);
305                                        $values .= "<ou attr='" . $attr[1] . "'>" . $attr[0] . "</ou>";
306                                }
307                                       
308                                $values .= "</return>";
309                               
310                                return $values;                         
311                        }
312                }
313                return false;
314        }
315
316        public final function setAddGroupsSearch($pData)
317        {
318                if( $pData)
319                {
320                        if( $this->db )
321                        {
322                                $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND  config_name = 'groups_search_jabberit';";
323                               
324                                if( $this->db->query($query) )
325                                {
326                                        while( $this->db->next_record())
327                                                $result[] = $this->db->row();                           
328                                }
329                               
330                                if( count($result) == 0 )
331                                {
332                                        $query = "INSERT INTO phpgw_config(config_app,config_name,config_value) VALUES('phpgwapi','groups_search_jabberit','".serialize($pData)."');";
333                                        $this->db->query($query);
334                                        return true;
335                                }
336                                else
337                                {
338                                        $resultQuery = unserialize($result[0]['config_value']);
339                                        $keys = array_keys($pData);
340
341                                        $resultQuery[$keys[0]] = $pData[$keys[0]];
342
343                                        $query = "UPDATE phpgw_config SET config_value = '".serialize($resultQuery)."' WHERE config_app = 'phpgwapi' AND config_name = 'groups_search_jabberit';";
344                                        $this->db->query($query);
345                                        return true;
346                                }
347                        }                       
348                }
349        }
350
351        public final function setGroupsLocked($pGroups)
352        {
353                $groups = "";
354               
355                if( is_array($pGroups) )
356                {
357                        foreach($pGroups as $tmp)               
358                                if(trim($tmp) != "")
359                                        $groups .= $tmp . ";";
360               
361                        $groups = substr($groups, 0, strlen($groups) - 1 );             
362                }
363               
364                if( $this->db )
365                {
366                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";       
367                       
368                        if($this->db->query($query))
369                        {
370
371                                if ( $this->db->query($query) )
372                                {       
373                                        while($this->db->next_record())
374                                                $result[] = $this->db->row();
375                                }
376
377                                if( count($result) == 0 )
378                                {
379                                        $query = "INSERT INTO phpgw_config(config_app,config_name,config_value) VALUES('phpgwapi','groups_locked_jabberit','".$groups."');";
380                                        $this->db->query($query);
381                                        return true;
382                                }
383                                else
384                                {
385                                        $query = "UPDATE phpgw_config SET config_value = '".trim($groups)."' WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";
386                                        $this->db->query($query);
387                                        return true;
388                                }
389                        }
390                }
391               
392                return false;
393        }
394       
395        public final function setHostJabber($pParam)
396        {
397                $confHostsJabber =  array();
398
399                foreach($pParam as $key => $itens)
400                        $confHostsJabber[$key] = ( $key === 'org' ) ? strtoupper($itens) : $itens;
401
402                if( $this->db )
403                {
404                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'map_org_realm_jabberit';";
405                       
406                        if( $this->db->query($query) )
407                        {
408                                while($this->db->next_record())
409                                        $result[] = $this->db->row();                           
410                        }
411                       
412                        if( count($result) == 0 )
413                        {
414                                $return = "<return><confServer ou='".strtoupper($confHostsJabber['org'])."' serverName='".$confHostsJabber['jabberName']."'>".strtoupper($confHostsJabber['org']).":".$confHostsJabber['jabberName']."</confServer></return>";                         
415                                $hostsJabber[0] = $confHostsJabber;
416                               
417                                $this->fileD->ldapExternal($hostsJabber);
418                                 
419                                $query = "INSERT INTO phpgw_config(config_app, config_name, config_value) VALUES('phpgwapi','map_org_realm_jabberit','".serialize($hostsJabber)."')";
420                                $this->db->query($query);                               
421                        }
422                        else
423                        {
424                                $resultQuery = unserialize($result[0]['config_value']);
425                                $foundOrg = false;
426                               
427                                foreach($resultQuery as $key => $itens)
428                                {
429                                        $foundString = array_search($confHostsJabber['org'], $itens);
430                                        if( $foundString )
431                                        {
432                                                $foundOrg = $foundString;
433                                                $ky = $key;
434                                        }
435                                }       
436
437                                if( ! $foundOrg )
438                                        $resultQuery[] = $confHostsJabber;     
439                                else
440                                        $resultQuery[$ky] = $confHostsJabber;
441
442                                $return = "<return>";
443                               
444                                foreach( $resultQuery as $itens )
445                                        $return .= "<confServer ou='".$itens['org']."' serverName='".$itens['jabberName']."'>".$itens['org'].":".$itens['jabberName']."</confServer>";
446                               
447                                $return .= "</return>";
448                               
449                                $this->fileD->ldapExternal($resultQuery);
450                               
451                                $query = "UPDATE phpgw_config SET config_value = '".serialize($resultQuery)."' WHERE config_name = 'map_org_realm_jabberit';";
452                                $this->db->query($query);
453                        }
454                        return $return;
455                }       
456                return false;
457        }
458       
459        public final function setOuGroupsLocked($pGroup)
460        {
461               
462                function strallpos($haystack, $needle, $offset = 0)
463                {
464                    $result = array();
465                    for($i = $offset; $i< strlen($haystack); $i++ )
466                    {
467                        $pos = strpos($haystack,$needle,$i);
468                        if($pos !== FALSE)
469                        {
470                            $offset =  $pos;
471                            if($offset >= $i)
472                                $result[] = $i = $offset;
473                        }
474                    }
475               
476                return $result;
477                }
478
479                $group = $pGroup['group'];
480                $gidnumber = $pGroup['gidnumber'];
481                $organization = strtoupper(trim($pGroup['ou']));
482
483                $posAll = strallpos($organization, "OU=" );
484                $orgs = array();
485
486                for( $i = 0 ; $i < count($posAll); $i++ )
487                {
488                        $pos = strpos($organization, ",");
489                        $tmpString = substr($organization, $posAll[$i] + 3);
490                        $orgs[] = substr($tmpString, 0, strpos($tmpString, ","));
491                }
492
493                $organization = implode("/", array_reverse($orgs));
494
495                if( $this->db )
496                {
497                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";       
498                       
499                        if($this->db->query($query))
500                        {
501
502                                if ( $this->db->query($query) )
503                                {       
504                                        while($this->db->next_record())
505                                                $result[] = $this->db->row();
506                                }
507
508                                $groupsLocked = explode(";",$result[0]['config_value']);
509                                       
510                                foreach( $groupsLocked as $tmp )
511                                {
512                                        $aux = explode(":", $tmp);
513                                        if(($group.":".$gidnumber) == ($aux[0].":".$aux[1]))
514                                        {
515                                                if( $aux[2] )
516                                                {
517                                                        $ou_groups = explode(",",$aux[2]);
518                                                        natcasesort($ou_groups);
519                                                        $key = array_search($organization, $ou_groups);
520                                                       
521                                                        if( $key === false )
522                                                                array_push($ou_groups, $organization);
523                                                       
524                                                        $groups .= $group.":".$gidnumber.":";
525                                                       
526                                                        $return = "<return>";                                           
527                                                       
528                                                        foreach($ou_groups as $tmp)
529                                                        {
530                                                                $return .= "<ou attr='".$tmp."'>".$tmp."</ou>";
531                                                                $groups .= $tmp .",";   
532                                                        }
533                                                       
534                                                        $return .= "</return>";
535                                                       
536                                                        $groups  = substr($groups,0,strlen($groups)-1);
537                                                        $groups .= ";";
538                                                }
539                                                else
540                                                {
541                                                        $groups .= $group.":".$gidnumber.":".$organization.";";
542                                                        $return = "<return><ou attr='".$organization."'>".$organization."</ou></return>";
543                                                }
544                                        }
545                                        else
546                                                $groups .= $tmp . ";" ;
547                                }
548
549                                $groups = substr($groups,0,strlen($groups)-1);
550
551                                $query = "UPDATE phpgw_config SET config_value = '".trim($groups)."' WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";
552                                $this->db->query($query);
553                               
554                                return $return;
555                        }
556                }
557               
558                return false;
559        }
560       
561        public final function removeAttributesLdap($pOrg)
562        {
563                $organization = $pOrg['org'];
564               
565                if( $this->db )
566                {
567                        $query = "SELECT * from phpgw_config WHERE config_app = 'phpgwapi' and config_name = 'attributes_org_ldap_jabberit'";
568                               
569                        if ( $this->db->query($query) )
570                        {       
571                                while( $this->db->next_record() )
572                                        $result[] = $this->db->row();
573               
574                                if( count($result) > 0 )
575                                        $attributesOrg = $result[0]['config_value'];
576                        }
577
578                        $attributesOrg = explode(",", $attributesOrg);
579                        $newValue = "";
580                        foreach($attributesOrg as $tmp)
581                        {
582                                $attr = explode(";",$tmp);
583                                 
584                                if( strtolower(trim($attr[0])) != strtolower(trim($organization)))
585                                {
586                                        $newValue .= $attr[0] . ";" . $attr[1] . ",";
587                                }
588                        }
589                       
590                        $newValue = substr($newValue, 0,(strlen($newValue) -1 ));
591                       
592                        if( trim($newValue) != "")
593                                $query = "UPDATE phpgw_config SET config_value = '".$newValue."' WHERE config_app = 'phpgwapi' AND config_name = 'attributes_org_ldap_jabberit'";
594                        else
595                                $query = "DELETE from phpgw_config where config_name = 'attributes_org_ldap_jabberit'";
596                               
597                        if( $this->db->query($query))
598                                return true;
599                        else
600                                return false;
601                }
602                return false;   
603        }
604
605        public final function removeHostsJabber($pItem)
606        {
607                $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'map_org_realm_jabberit';";
608
609                if( $this->db )
610                {
611                        if($this->db->query($query))
612                        {
613                                while($this->db->next_record())
614                                        $result[] = $this->db->row();
615                                       
616                                if( count($result) > 0 )
617                                {
618                                        $confHostsOrgs = unserialize($result[0]['config_value']);
619                                        $hosts = explode(":", $pItem['item']);
620                                        $key = "";
621
622                                        if( count($confHostsOrgs) > 0 )
623                                        {
624                                                for( $i = 0; $i < count($confHostsOrgs); $i++)
625                                                        if( $confHostsOrgs[$i]['org'] == $hosts[0] && $confHostsOrgs[$i]['jabberName'] == $hosts[1])
626                                                                $key = $i;     
627
628                                                array_splice($confHostsOrgs, $key, 1);
629                               
630                                                if(count($confHostsOrgs) > 0)
631                                                {                                       
632                                                        $this->fileD->ldapExternal($confHostsOrgs);
633                                                        $query = "UPDATE phpgw_config SET config_value = '".serialize($confHostsOrgs)."' WHERE config_name = 'map_org_realm_jabberit';";
634                                                }
635                                                else
636                                                {
637                                                        $this->fileD->ldapExternal("");
638                                                        $query = "DELETE FROM phpgw_config WHERE config_name = 'map_org_realm_jabberit';";
639                                                }
640                                        }
641                                        else
642                                        {       
643                                                $this->fileD->ldapExternal("");                                         
644                                                $query = "DELETE FROM phpgw_config WHERE config_name = 'map_org_realm_jabberit';";
645                                        }
646
647                                        if( $this->db->query($query) )
648                                                return "true";
649                                }               
650                        }                       
651                }
652                return "false";
653        }
654
655        public final function removeOuGroupsLocked($pGroup)
656        {
657                $group = $pGroup['group'];
658                $gidnumber = $pGroup['gidnumber'];
659                $organization = strtoupper($pGroup['ou']);
660                $return = false;
661               
662                if( $this->db )
663                {
664                        $query = "SELECT * FROM phpgw_config WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";       
665                       
666                        if($this->db->query($query))
667                        {
668
669                                if ( $this->db->query($query) )
670                                {       
671                                        while($this->db->next_record())
672                                                $result[] = $this->db->row();
673                                }
674
675                                $groupsLocked = explode(";",$result[0]['config_value']);
676                               
677                                foreach( $groupsLocked as $tmp )
678                                {
679                                        $aux = explode(":",$tmp);
680                                       
681                                        if(($group.":".$gidnumber) == ($aux[0].":".$aux[1]))
682                                        {
683                                                $ous = explode(",", $aux[2]);
684                                                $key = array_search($organization, $ous);
685
686                                                if( $key !== false )
687                                                        unset($ous[$key]);
688
689                                                $groups .= $group.":".$gidnumber.":";
690                                               
691                                                foreach($ous as $ouTmp)
692                                                        $groups .= $ouTmp .",";
693                                               
694                                                $groups  = substr($groups,0,strlen($groups)-1);
695                                                $groups .= ";";
696                                        }
697                                        else
698                                                $groups .= $tmp . ";" ;                                                                 
699                                }
700                                       
701                                $groups  = substr($groups,0,strlen($groups)-1);
702                       
703                                $query = "UPDATE phpgw_config SET config_value = '".trim($groups)."' WHERE config_app = 'phpgwapi' AND config_name = 'groups_locked_jabberit';";
704
705                                if( $this->db->query($query))
706                                        $return = true;
707                        }
708                }       
709               
710                return $return;
711        }
712
713}
714?>
Note: See TracBrowser for help on using the repository browser.