Güzel bir irc sohbet modülü

modüles klasörüne atın aktif edin yalnız kanal ve server ayarlarını yapmanız gerekiyor

ücretsiz kanal için benim kullandığım ayar ile kendinize 2 oda açabilirsiniz

index.php de

host yazan yeri webchat.evolu.net olarak ayarlayın

olarak kaydedin

ortalarda

command1 ve comman2 ye kanal isimlerini yazın

2 tane kanalınız olsun

altta Anonymus u Misafir olarak değiştirin


örnek :
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$index = 1;
function connect($con_user, $con_second, $screen_res) {
global $module_name;
include("header.php");

switch($screen_res) 
{
default:
select_res();
break;

case "2":
echo "<applet codebase=\"modules/ircchat\" code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=480 height=420>";
break;
case "3":
echo "<applet codebase=\"modules/ircchat\" code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=680 height=550>";
break;
case "4":
echo "<applet codebase=\"modules/ircchat\" code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=920 height=840>";
break;

case"5":
echo "<applet codebase=\"modules/ircchat\" code=IRCApplet.class archive=\"irc.jar,pixx.jar\" width=1250 height=1000>";
break;
} 
echo "<param name=\"CABINETS\" value=\"irc.cab,securedirc.cab,pixx.cab\">";
echo "<param name=\"nick\" value=\"$con_user\">";
echo "<param name=\"alternatenick\" value=\"$con_second\">";
echo "<param name=\"name\" value=\"www.efsane.tk\">";
echo "<param name=\"host\" value=\"webchat.evolu.net\">";
echo "<param name=\"gui\" value=\"pixx\">"; 
echo "<param name=\"quitmessage\" value=\"www.HakDostu.tk\">";
echo "<param name=\"asl\" value=\"true\">";
echo "<param name=\"useinfo\" value=\"true\">";
echo "<param name=\"style:bitmapsmileys\" value=\"true\">"; 
echo "<param name=\"style:smiley1\" value=\":) img/sourire.gif\">";
echo "<param name=\"style:smiley2\" value=\":-) img/sourire.gif\">";
echo "<param name=\"style:smiley3\" value=\":-D img/content.gif\">";
echo "<param name=\"style:smiley4\" value=\":d img/content.gif\">";
echo "<param name=\"style:smiley5\" value=\":-O img/OH-2.gif\">"; 
echo "<param name=\"style:smiley6\" value=\":o img/OH-1.gif\">";
echo "<param name=\"style:smiley7\" value=\":-P img/langue.gif\">";
echo "<param name=\"style:smiley8\" value=\":p img/langue.gif\">";
echo "<param name=\"style:smiley9\" value=\";-) img/clin-oeuil.gif\">";
echo "<param name=\"style:smiley10\" value=\";) img/clin-oeuil.gif\">";
echo "<param name=\"style:smiley11\" value=\":-( img/triste.gif\">";
echo "<param name=\"style:smiley12\" value=\":( img/triste.gif\">";
echo "<param name=\"style:smiley13\" value=\":-| img/OH-3.gif\">";
echo "<param name=\"style:smiley14\" value=\":| img/OH-3.gif\">";
echo "<param name=\"style:smiley15\" value=\":'( img/pleure.gif\">";
echo "<param name=\"style:smiley16\" value=\":$ img/rouge.gif\">";
echo "<param name=\"style:smiley17\" value=\":-$ img/rouge.gif\">";
echo "<param name=\"style:smiley18\" value=\"(H) img/cool.gif\">";
echo "<param name=\"style:smiley19\" value=\"(h) img/cool.gif\">";
echo "<param name=\"style:smiley20\" value=\":-@ img/enerve1.gif\">";
echo "<param name=\"style:smiley21\" value=\":@ img/enerve2.gif\">";
echo "<param name=\"style:smiley22\" value=\":-S img/roll-eyes.gif\">";
echo "<param name=\"style:smiley23\" value=\":s img/roll-eyes.gif\">";
echo "<param name=\"style:backgroundimage\" value=\"true\">";
echo "<param name=\"style:backgroundimage1\" value=\"all all 0 background.gif\">";
echo "<param name=\"style:sourcefontrule1\" value=\"all all Serif 12\">";
echo "<param name=\"style:floatingasl\" value=\"true\">";
echo "<param name=\"pixx:timestamp\" value=\"true\">";
echo "<param name=\"pixx:highlight\" value=\"true\">";
echo "<param name=\"pixx:highlightnick\" value=\"true\">";
echo "<param name=\"pixx:nickfield\" value=\"true\">";
echo "<param name=\"pixx:styleselector\" value=\"true\">";
echo "<param name=\"pixx:setfontonstyle\" value=\"true\">";
echo "<param name=\"command1\" value=\"join #Haber\">";
echo "<param name=\"command2\" value=\"join #HakDostu\">";

echo "</applet>";
include("footer.php");
}
function select_res()
{
global $module_name;
include("header.php");
echo "<center>";
echo "<form action=/modules.php method=\"get\">";
echo "<input type=\"hidden\" name=\"name\" value=\"ircchat\">"; 
echo "800x600<input type=\"radio\" name=\"res\" value=\"800x600\"><BR>";
echo "1024x768<input type=\"radio\" name=\"res\" value=\"1024x768\" checked><BR>";
echo "1280x1024<input type=\"radio\" name=\"res\" value=\"1280x1024\"><BR>";
echo "1600x1200<input type=\"radio\" name=\"res\" value=\"1600x1200\"><BR>";
echo "<input type=\"submit\" VALUE=\"Ekran ayarınız\">"; 
echo "<center>";
include("footer.php");
}
 
 
if(!is_array($user)) {
$user_get = base64_decode($user);
$user_get = explode(":", $user_get);
$user_name = "$user_get[1]";
} else {
$user_name = "$user[1]";
}
if($user_name == "") {$user_name="Misafir";}
$second_name = substr($user_name, 0, 8);
$second_name = $second_name . "_";
 
switch($_GET['res'])
{
default:
select_res();
break;
case "800x600":
connect($user_name, $second_name, 2);
break;
case "1024x768":
connect($user_name, $second_name, 3);
break;
case "1280x1024":
connect($user_name, $second_name, 4);
break;
case "1600x1200":
connect($user_name, $second_name, 5);
break;
}
include("footer.php");
?>


demo : Hak Dostu - Erişim Engellendi



SİTE
P J I R C - the best free IRC java applet there is


DOWNLOAD
SourceForge.net: pJirc-Nuke: Files