[261] | 1 | <?php |
---|
| 2 | /***************************************************\ |
---|
| 3 | * Im - Instant Messenger * |
---|
| 4 | * Authors - Alexandre Correia * |
---|
| 5 | * Rodrigo Souza * |
---|
| 6 | \***************************************************/ |
---|
| 7 | |
---|
| 8 | $GLOBALS['phpgw_info']['flags']['currentapp'] = 'instant_messenger'; |
---|
| 9 | $GLOBALS['phpgw_info']['flags']['im_version'] = '0.3'; |
---|
| 10 | |
---|
| 11 | include("../header.inc.php"); |
---|
| 12 | $im_version = $GLOBALS['phpgw_info']['flags']['im_version']; |
---|
| 13 | |
---|
| 14 | $template_1 = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 15 | $template_1->set_file(Array('instant_messenger' => 'index.tpl')); |
---|
| 16 | $template_1->set_block('instant_messenger','index'); |
---|
| 17 | $template_1->pfp('out','index'); |
---|
| 18 | |
---|
| 19 | require_once PHPGW_SERVER_ROOT . '/instant_messenger/inc/im_sessions.inc.php'; |
---|
| 20 | |
---|
| 21 | $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; |
---|
| 22 | $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; |
---|
| 23 | if ( strrpos($webserver_url, '/') === false || strrpos($webserver_url, '/') != (strlen($webserver_url)-1) ) |
---|
| 24 | $webserver_url .= '/'; |
---|
| 25 | |
---|
| 26 | $webserver_url = $webserver_url . 'instant_messenger/'; |
---|
| 27 | |
---|
| 28 | print '<script type="text/javascript">var path_im = "'.$webserver_url.'";</script>'; |
---|
| 29 | |
---|
| 30 | // Footer |
---|
| 31 | $GLOBALS['phpgw']->common->phpgw_footer(); |
---|
| 32 | |
---|
| 33 | if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') ) |
---|
| 34 | exit; |
---|
| 35 | |
---|
| 36 | ?> |
---|
| 37 | <!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">--> |
---|
| 38 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 39 | <head> |
---|
| 40 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
---|
| 41 | <title>IM</title> |
---|
| 42 | </head> |
---|