source: branches/2.2.0.1/jabberir_messenger/jmessenger/inc/preferences.php @ 4453

Revision 4453, 1.4 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1726 - Adicionando jabberit_messenger da comunidade.

  • Property svn:executable set to *
Line 
1<?php
2
3  /***************************************************************************\
4  *  Expresso - Expresso Messenger                                            *
5  *     - Alexandre Correia / Rodrigo Souza                                                               *
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
13        $GLOBALS['phpgw_info']['flags'] = array(
14                                                                                        'currentapp' => 'jabberit_messenger',
15                                                                                        'noheader'   => True,
16                                                                                        'nonavbar'   => True
17                                                                                        );
18        if( is_dir('../phpgwapi/inc') )
19                require_once("../header.inc.php");
20        else
21                require_once("../../header.inc.php");                   
22
23        function setPreferences($pArgs)
24        {
25                if( $GLOBALS['phpgw_info']['user']['preferences']['jabberit_messenger']['preferences'] )
26                        $GLOBALS['phpgw']->preferences->change('jabberit_messenger','preferences',$pArgs);
27                else
28                        $GLOBALS['phpgw']->preferences->add('jabberit_messenger','preferences',$pArgs);
29
30                if ( $GLOBALS['phpgw']->preferences->save_repository() )
31                        return "true";
32                else
33                        return "false";
34        }       
35
36?>
Note: See TracBrowser for help on using the repository browser.