<?
//v1.1 www.exoops.info 2006/05
//v1.1 www.exoops.info 2006/03
include_once("../../mainfile.php");
include_once(XOOPS_ROOT_PATH . "/class/module.textsanitizer.php");
if (file_exists("./language/".$bcoosConfig['language']."/language.php")) {
	include("./language/".$bcoosConfig['language']."/language.php");
	} else {
	include("./language/english/language.php");
	}
include_once(XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/cache/config.php");
global $_POST;
$thisUser = $_POST['nic'];
$thisPass = $_POST['pas'];
	if (!$thisUser) $thisUser = _MA_XIRC_GUEST;
	if ($thisPass)  $nickserv = '<param name="command2" value="/msg nickserv identify '.$thisPass.'">';
$theme = getTheme();
         $height = ($irc_cfg['height']+5);
	 $width  = ($irc_cfg['width']+5);
	 
?>
 <html>
  <head>
  <title><?php echo $bcoosConfig['title']; ?></title>
   <script type="text/javascript">
   <!--
   window.innerHeight = '<?php echo $height; ?>';
   window.innerWidth = '<?php echo $width; ?>';
   //-->
   </script>
	<link href="<?php echo XOOPS_ROOT_PATH.'/themes/'.$theme.'/style.css';?>" rel="stylesheet" type="text/css" />
	<link rel="icon" href="<?php echo XOOPS_URL."/icon.png";?>" type="image/png">
	<link rel="shortcut icon" href="<?php echo XOOPS_URL."/icon.png";?>" type="image/png">
  </head>
  <body style="padding:0px;margin:0px;">
   <table align=center border="0"><tr>
    <td>
       <applet name="xirc" code=IRCApplet.class archive="irc.jar,pixx.jar" codebase="sources/java/" width="<?php echo $irc_cfg['width'];?>" height="<?php echo $irc_cfg['height'];?>">
       <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
       <!-- Server List -->
       <param name="host" value="<?php echo $irc_cfg['host'];?>">
       <param name="alternateserver1" value="<?php echo $irc_cfg['alternateserver'];?> <?php echo $irc_cfg['port'];?>">
       <param name="port" value="<?php echo $irc_cfg['port'];?>">
       <param name="autoconnection" value="<?php echo $irc_cfg['autoconnection'];?>">
       <param name="gui" value="pixx">
       <param name="command1" value="/join <?php echo $irc_cfg['channel'];?>">
       <?
         echo $nickserv;
       ?>
       <!-- Name Settings -->
       <param name="nick" value="<?php echo $thisUser;?>">
       <param name="alternatenick" value="<?php echo $thisUser."??"; ?> ">
       <param name="name" value="<?php echo $thisUser; ?>">
       <param name="userid" value="<?php echo $thisUser ."@". XOOPS_URL;?>">
       <!-- Language List -->
       <param name="pixx:lngextension" value="txt">
       <param name="pixx:language" value="<?php echo $irc_cfg['deflang'];?>"
       <!-- STYLE -->
       <param name="style:backgroundimage" value="<?php echo $irc_cfg['bgimage'];?>">
       <param name="style:backgroundimage1" value="all all 1 ../img/<?php echo $irc_cfg['bgimage1'];?>">
       <param name="pixx:styleselector" value="<?php echo $irc_cfg['styleselector'];?>">
       <param name="style:sourcefontrule1" value="all all <?php echo $irc_cfg['channelfont'];?>">
       <param name="style:floatingasl" value="true">
       <param name="pixx:showabout" value="<?php echo $irc_cfg['showabout'];?>">
       <param name="pixx:showhelp" value="<?php echo $irc_cfg['showhelp'];?>">
       <param name="pixx:helppage" value="<?php echo $irc_cfg['helppage'];?>">
       <param name="pixx:showconnect" value="<?php echo $irc_cfg['showconnect'];?>">
       <param name="pixx:showchanlist" value="<?php echo $irc_cfg['showchanlist'];?>">
       <param name="pixx:showstatus" value="<?php echo $irc_cfg['showstatus'];?>">
       <param name="pixx:showclose" value="<?php echo $irc_cfg['showclose'];?>">
       <param name="pixx:nicklistwidth" value="<?php echo $irc_cfg['nicklistwidth'];?>">
       <param name="pixx:color11" value="<?php echo $irc_cfg['color11'];?>">
       <param name="pixx:nickfield" value="<?php echo $irc_cfg['nickfield'];?>">
       <param name="highlight" value="<?php echo $irc_cfg['highlight'];?>">
       <param name="pixx:highlightnick" value="<?php echo $irc_cfg['highlightnick'];?>">
       <param name="pixx:timestamp" value="<?php echo $irc_cfg['timestamp'];?>">
       <!-- Images -->
       <param name="style:bitmapsmileys" value="<?php echo $irc_cfg['showsmileys'];?>">
       <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">
       	       <param name="style:smiley24" value="(a) img/ange.gif">
		<param name="style:smiley25" value="()= img/arbre.gif">
		<param name="style:smiley26" value=":O img/argh.gif">
		<param name="style:smiley27" value="(O) img/ballon.gif">
		<param name="style:smiley28" value="(b) img/biere.gif">
		<param name="style:smiley29" value="(B) img/bombe.gif">
		<param name="style:smiley30" value="(p) img/bouche.gif">
		<param name="style:smiley31" value="||| img/bouqin.gif">
		<param name="style:smiley32" value="(r) img/cadeau.gif">
		<param name="style:smiley33" value="(g) img/chien.gif">
		<param name="style:smiley34" value="(c) img/coeur.gif">
		<param name="style:smiley35" value="(cX) img/coeur-brise.gif">
		<param name="style:smiley36" value="(X) img/comprends-pas.gif">
		<param name="style:smiley37" value="(d) img/diable.gif">
		<param name="style:smiley38" value="(F) img/femme.gif">
		<param name="style:smiley39" value="(i) img/fille.gif">
		<param name="style:smiley40" value="(f) img/fleur.gif">
		<param name="style:smiley41" value="(r) img/garcon.gif">
		<param name="style:smiley42" value="$| img/grognon.gif">
		<param name="style:smiley43" value="(@) img/lettre.gif">
		<param name="style:smiley44" value="(l) img/lit.gif">
		<param name="style:smiley45" value="(e) img/love.gif">
		<param name="style:smiley46" value="(L) img/lune.gif">
		<param name="style:smiley47" value=":/ img/mecontent.gif">
		<param name="style:smiley48" value="(w) img/newbie.gif">
		<param name="style:smiley49" value="(j) img/ordi.gif">
		<param name="style:smiley50" value="(p) img/poisson.gif">
		<param name="style:smiley51" value="(P) img/pomme.gif">
		<param name="style:smiley52" value="(o) img/portable.gif">
		<param name="style:smiley53" value="(n) img/pouce-non.gif">
		<param name="style:smiley54" value="(s) img/pouce-oui.gif">
		<param name="style:smiley55" value="(A) img/sapin.gif">
		<param name="style:smiley56" value="|) img/sleep.gif">
		<param name="style:smiley57" value="(S) img/soleil.gif">
		<param name="style:smiley58" value="(T) img/terre.gif">
		<param name="style:smiley59" value=">=| img/verre-eau.gif">
		<param name="style:smiley60" value=">==| img/verre-vin.gif">
		<param name="style:smiley61" value="(y) img/yinyang.gif">
       <!-- Extra -->
       <param name="pixx:soundbeep" value="../snd/<?php echo $irc_cfg['soundbeep'];?>">
       <param name="pixx:soundquery" value="../snd/<?php echo $irc_cfg['soundquery'];?>">
       <param name="pixx:messagefield" value="<?php echo $irc_cfg['messagefield'];?>">
       <param name="pixx:useinfo" value="<?php echo $irc_cfg['useinfo'];?>">
       <param name="pixx:useidentserver" value="<?php echo $irc_cfg['useidentserver'];?>">
       <param name="quitmessage" value="<?php echo $irc_cfg['quitmessage'];?>">
          <param name="pixx:showchannelmodeapply" value="false">
		<param name="pixx:showchanneltopicmodes" value="false">
       <param name="pixx:automaticqueries" value="true">
       <param name="pixx:configurepopup" value="true">
       <param name="pixx:popupmenustring1" value="Whois">
       <param name="pixx:popupmenustring2" value="Kick + Ban">
       <param name="pixx:popupmenustring3" value="Private Chat">
       <param name="pixx:popupmenucommand1_1" value="/whois %1">
       <param name="pixx:popupmenucommand2_1" value="/mode %2 -o %1">
       <param name="pixx:popupmenucommand2_2" value="/mode %2 +b %1">
       <param name="pixx:popupmenucommand2_3" value="/kick %2 %1">
       <param name="pixx:popupmenucommand3_1" value="/query %1">
       <b><?php echo _MA_XIRC_NEED_JAVA;?>.</b>
       </applet>
    </td>
   </tr>
  </table>
 </body>
</html>
