Revision 382,
1.7 KB
checked in by niltonneto, 16 years ago
(diff) |
Inclusão do módulo JabberIt? Messenger, novo módulo de mensagens
instantâneas do Expresso. É uma customização do projeto original
Jeti, e foi desenvolvido em Java.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[382] | 1 | <?php |
---|
| 2 | |
---|
| 3 | $size_of_acl = sizeof($GLOBALS['phpgw_info']['user']['acl']); |
---|
| 4 | |
---|
| 5 | for( $i = 0; $i < $size_of_acl && $GLOBALS['phpgw_info']['user']['acl'] != "jabberit_messenger"; $i++ ) |
---|
| 6 | { |
---|
| 7 | if ( $GLOBALS['phpgw_info']['user']['acl'][$i]['appname'] == 'jabberit_messenger' && ( $GLOBALS['phpgw_info']['flags']['currentapp'] == 'expressoMail1_2' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'jabberit_messenger' )) |
---|
| 8 | { |
---|
| 9 | |
---|
| 10 | $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; |
---|
| 11 | $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; |
---|
| 12 | |
---|
| 13 | if(strrpos($webserver_url,'/') === false || strrpos($webserver_url,'/') != (strlen($webserver_url)-1)) |
---|
| 14 | $webserver_url .= '/'; |
---|
| 15 | |
---|
| 16 | $webserver_url = $webserver_url . 'jabberit_messenger/'; |
---|
| 17 | |
---|
| 18 | require_once PHPGW_SERVER_ROOT . '/jabberit_messenger/inc/jabberit_sessions.inc.php'; |
---|
| 19 | |
---|
| 20 | $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url'] = $webserver_url; |
---|
| 21 | |
---|
| 22 | require_once dirname(__FILE__) . '/load_lang.php'; |
---|
| 23 | |
---|
| 24 | print '<script type="text/javascript">var path_jabberit= "'.$webserver_url.'"</script>'; |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | $js = array( |
---|
| 28 | 'connector', |
---|
| 29 | 'xtools', |
---|
| 30 | 'dragdrop', |
---|
| 31 | 'windows', |
---|
| 32 | 'ldap', |
---|
| 33 | 'images', |
---|
| 34 | 'show_hidden', |
---|
| 35 | 'load', |
---|
| 36 | ); |
---|
| 37 | |
---|
| 38 | require_once dirname(__FILE__) . '/Controller.class.php'; |
---|
| 39 | |
---|
| 40 | $controller = new Controller; |
---|
| 41 | $script = ''; |
---|
| 42 | foreach( $js as $key => $val ) |
---|
| 43 | { |
---|
| 44 | $val = array('act' => 'j.' . $val ); |
---|
| 45 | $script .= $controller->exec($val); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | printf("<script type=\"text/javascript\">%s</script>", $script); |
---|
| 49 | |
---|
| 50 | print '<link rel="stylesheet" type="text/css" href="' . $webserver_url . 'templates/default/css/window.css">'; |
---|
| 51 | print '<link rel="stylesheet" type="text/css" href="' . $webserver_url . 'templates/default/css/common.css">'; |
---|
| 52 | |
---|
| 53 | break; |
---|
| 54 | } |
---|
| 55 | } |
---|
| 56 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.