source: trunk/phpgwapi/inc/class.expressolivre.inc.php @ 2704

Revision 2704, 668 bytes checked in by rodsouza, 14 years ago (diff)

Ticket #1058 - Adicionando scripts referente ao pacote ExpressoLivre?.

Line 
1<?php
2
3class ExpressoLivre
4{
5        function __construct( )
6        {
7        }
8
9        function configuration( )
10        {
11                $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ?
12                        $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/';
13
14                if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) )
15                        $webserver_url .= '/';
16
17                return str_replace(
18                        array( '{', '}' ),
19                        array( '{ ', ' }' ),
20                        json_encode(
21                                array(
22                                        'url' => $webserver_url,
23                                        'template' => $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ],
24                                        'theme' => $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ]
25                                )
26                        )
27                );
28        }
29}
30
31?>
Note: See TracBrowser for help on using the repository browser.