Location: PHPKode > projects > H-tracker > chat.php
<?
//
//  H-Tracker v0.2
//    http://h-tracker.org
//    Based on TorrentTrader (http://www.torrenttrader.org)
//
//

require "backend/functions.php";
dbconn(false);
loggedinonly();

$nick = ($CURUSER ? $CURUSER["username"] : ("Guest" . rand(1000, 9999)));
$ircNick = $CURUSER['username'] . "";
$ircServer = $site_config['IRCSERVER'] ; 
$ircChannel = $site_config['IRCCHANNEL'] ;  
stdhead("Chat");
begin_frame("$SITENAME IRC Chat");
?>
<applet name="pjirc" codebase="pjirc" code="IRCApplet.class" archive="irc.jar, pixx.jar" width="98%" height="400">
<param name="CABINETS" value="irc.cab, securedirc.cab, pixx.cab"/>
<param name="nick" value="<?=$ircNick?>"/>
<param name="fullname" value="<?=$SITENAME?> User"/>
<param name="host" value="<?=$ircServer?>"/>
<param name="command1" value="/join <?=$ircChannel?>"/>
<param name="gui" value="pixx"/>
document.write('<param name="coding" value="3"/>');
<param name="style:bitmapsmileys" value="true"/>
<param name="pixx:styleselector" value="true">
<param name="pixx:color6" value="D2DDEA">  
<param name="pixx:helppage" value="http://h-tracker.org">
<param name="style:smiley1" value=":) img/sourire.gif"/>
<param name="style:smiley2" value=":-) img/sourire.gif"/>
<param name="style:smiley3" value=":-D img/content.gif"/>
<param name="style:smiley4" value=":d img/content.gif"/>
<param name="style:smiley5" value=":-O img/OH-2.gif"/>
<param name="style:smiley6" value=":o img/OH-1.gif"/>
<param name="style:smiley7" value=":-P img/langue.gif"/>
<param name="style:smiley8" value=":p img/langue.gif"/>
<param name="style:smiley9" value=";-) img/clin-oeuil.gif"/>
<param name="style:smiley10" value=";) img/clin-oeuil.gif"/>
<param name="style:smiley11" value=":-( img/triste.gif"/>
<param name="style:smiley12" value=":( img/triste.gif"/>
<param name="style:smiley13" value=":-| img/OH-3.gif"/>
<param name="style:smiley14" value=":| img/OH-3.gif"/>
<param name="style:smiley15" value=":'( img/pleure.gif"/>
<param name="style:smiley16" value=":$ img/rouge.gif"/>
<param name="style:smiley17" value=":-$ img/rouge.gif"/>
<param name="style:smiley18" value="(H) img/cool.gif"/>
<param name="style:smiley19" value="(h) img/cool.gif"/>
<param name="style:smiley20" value=":-@ img/enerve1.gif"/>
<param name="style:smiley21" value=":@ img/enerve2.gif"/>
<param name="style:smiley22" value=":-S img/roll-eyes.gif"/>
<param name="style:smiley23" value=":s img/roll-eyes.gif"/>
</applet>
<br/>
<input type="button" value="Smile" onclick="document.pjirc.setFieldText(document.pjirc.getFieldText()+':)');document.pjirc.requestSourceFocus()"/>
<input type="button" value="Chanlist" onclick="document.pjirc.sendString('/list')"/>
<input type="button" value="Quit" onclick="document.pjirc.sendString('/quit')"/>

<?
end_frame();
stdfoot();
?>
Return current item: H-tracker