This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
chat.php
66 lines (53 loc) · 2.2 KB
/
chat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/*
+------------------------------------------------
| TBDev.net BitTorrent Tracker PHP
| =============================================
| by CoLdFuSiOn
| (c) 2003 - 2011 TBDev.Net
| http://www.tbdev.net
| =============================================
| svn: http://sourceforge.net/projects/tbdevnet/
| Licence Info: GPL
+------------------------------------------------
| $Date$
| $Revision$
| $Author$
| $URL$
+------------------------------------------------
*/
require_once 'include/bittorrent.php';
require_once 'include/user_functions.php';
dbconn();
loggedinorreturn();
$lang = array_merge( load_language('global'), load_language('chat') );
$nick = ($CURUSER ? $CURUSER['username'] : ('Guest' . rand(1000, 9999)));
$irc_url = '';
$irc_channel = '';
$HTMLOUT = '';
$HTMLOUT .= "<p>{$lang['chat_channel']}<a href='irc://{$irc_url}'>{$irc_channel}</a>{$lang['chat_on']}<a href='#'>tbdev.net</a> {$lang['chat_network']}</p>
<div class='borderwrap' align='center'>
<div class='maintitle'>{$TBDEV['site_name']}</div>
<div class='row1' align='center'>
<applet code='IRCApplet.class' codebase='./javairc' archive='irc.jar,pixx.jar' width='640' height='400'>
<param name='CABINETS' value='irc.cab,securedirc.cab,pixx.cab' />
<param name='nick' value='{$nick}' />
<param name='alternatenick' value='{$nick}???' />
<param name='fullname' value='Java User' />
<param name='host' value='{$irc_url}' />
<param name='gui' value='pixx' />
<param name='quitmessage' value='{$TBDEV['site_name']} forever!' />
<param name='asl' value='true' />
<param name='command1' value='/join {$irc_channel}' />
<param name='style:bitmapsmileys' value='true' />
<param name='style:floatingasl' value='true' />
<param name='pixx:highlight' value='true' />
<param name='pixx:highlightnick' value='true' />
<param name='pixx:nickfield' value='true' />
<param name='style:smiley1' value='~:) {$TBDEV['pic_base_url']}smilies/sleep.gif' />
</applet>
</div>
</div>";
///////////////////// HTML OUTPUT ////////////////////////////
print stdhead("{$lang['chat_chat']}"). $HTMLOUT .stdfoot();
?>