Salut tous. Voila,j'ai le script suivant, et j aimerai reussir a recuperer se que j aurai a la place de <?=$chan[1]; ?> sur une autre page.
Par exemple,si <?=$chan[1]; ?> est lemot "Coucou" reussir a avoir le mot "Coucou" qui s affichera sur la page qui sera affiché.
Voila la ligne de mon script PHP:
<td width="15%" bgcolor="#<?=$color?>"> <a href="chat.php?catagory=JF&room=<?=$chan[1]; ?>"><?=$chan[1]; ?></a></td>
Et voici mon script complet :
<?
/*
################ VSIRC Roomlister v1.0 ################
IRC Roomlister..
This script is created by M.Kollaard and M.D.Bakker
For information you can always send a email to:
(info@vilestyle.net) or (helpdesk@vilestyle.net)
Copyrighted (c) 2003-2008 VSNetworks©
When you modify the contents in this script
Please Add THe Copyrights Line..
Have Fun with it...
################ VSIRC ServiceBot v1.2 ################
*/
//set_time_limit(off);
$botnick = "Synapse";
$server = "e-deality.com";
$port = "6667";
$channel = "gn";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="nl">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<p>#<?=stripslashes($channel);?></p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="8%" bgcolor="#00CCFF"> Users:</td>
<td width="15%" bgcolor="#00CCFF"> Roomname:</td>
<td width="77%" bgcolor="#00CCFF"> Topic:</td>
</tr>
<?
$fp = fsockopen($server, $port, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
fputs($fp,"USER $botnick $botnick 127.0.0.1
hp\n" );
$nick = $botnick . rand(10000,99999);
fputs($fp,"NICK $nick\n" );
while (!feof($fp)) {
usleep(50);
$fget = @fgets($fp, 128);
//echo "$fget <br>\n";
$match = explode(" ", $fget);
$fget = ereg_replace ("\n", "", $fget);
$fget = ereg_replace ("\r", "", $fget);
if ($match[1] == "001" ) {
fputs($fp,"LIST\n" );
} else if ($match[0] == "PING" ) {
fputs($fp, "PONG :" . $match[1]);
} else if ($match[1] == "433" ) {
$nick = $botnick . rand(10000,99999);
fputs($fp,"NICK $nick\n" );
} else if ($match[1] == "323" ) {
fputs($fp, "QUIT :bye!\n" );
break;
} else if ($match[1] == "322" ) {
$match[3] = ereg_replace ("#", "", $match[3]);
if (eregi ("$channel(.*)", $match[3], $chan)) {
$topic = explode(":", $fget);
unset($topic[0]);
unset($topic[1]);
$topic = implode(":", $topic);
$topic = explode(" ", $topic);
unset($topic[0]);
$topic = implode(" ", $topic);
if ($color == "FFFFCC" ) { $color = "FFFFFF"; } else { $color = "FFFFCC"; }
?>
<tr>
<td width="8%" bgcolor="#<?=$color?>"> <?=$match[4]; ?></td>
<td width="15%" bgcolor="#<?=$color?>"> <a href="chat.php?catagory=JF&room=<?=$chan[1]; ?>"><?=$chan[1]; ?></a></td>
<td width="77%" bgcolor="#<?=$color?>"> <?=$topic;?></td>
</tr>
<?
}
}
}
fclose($fp);
}
?>
</table>
</body>
</html>
Je vous remercie tous d avance.
Tibow
---------------
Tibow... The Only One