source: trunk/instant_messenger/client.php @ 305

Revision 305, 845 bytes checked in by niltonneto, 16 years ago (diff)

Correçoes

Line 
1<?php
2        $js = array(
3                'connector',
4                'xtools',
5                'dragdrop',
6                'windows',
7                'show_hidden',
8                'ldap',
9                'jabber',
10                'images',
11                'client'
12        );
13
14        require_once dirname(__FILE__) . '/inc/load_lang.php';
15        require_once dirname(__FILE__) . '/inc/Controller.class.php';
16
17        $controller = new Controller;
18        $script = '';
19        foreach ( $js as $key => $val )
20        {
21                $val = array('act' => 'j.' . $val);
22                $script .= $controller->exec($val);
23        }
24
25?>
26<html><head><script>
27function im_init(pTimes)
28{
29        if ( !pTimes )
30                pTimes = 0;
31        if ( pTimes == 5 )
32                return false;
33        if ( window.InstantMessengerClient )
34                InstantMessengerClient();
35        else
36                setTimeout("im_init("+(++pTimes)+")", (pTimes + 1) * 2000);
37}
38window.onload = function()
39{
40        var path_im = window.path_im = top.path_im;
41        <?php echo $script; ?>
42        setTimeout("im_init()",1000);
43};
44</script></head><body></body></html>
Note: See TracBrowser for help on using the repository browser.