source: tags/instant_messenger/client.php @ 318

Revision 318, 875 bytes checked in by niltonneto, 16 years ago (diff)

Commit feito pelo desenvolvedor (rodrigosouza).

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