THESE ARE THE ERRORS
<br />
<b>Notice</b>: Undefined offset: 0 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -1 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -2 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -3 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -4 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -5 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -6 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -7 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -8 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -9 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
<br />
<b>Notice</b>: Undefined offset: -10 in <b>C:\Inetpub\wwwroot\TSWeb\files\login.php</b> on line <b>48</b><br />
Notice: Undefined variable: message in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 38
Notice: Undefined offset: 0 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -1 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -2 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -3 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -4 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -5 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -6 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -7 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -8 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -9 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -10 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -11 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -12 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -13 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -14 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -15 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -16 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -17 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -18 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -19 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -20 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -21 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -22 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -23 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -24 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -25 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -26 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -27 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -28 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -29 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -30 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -31 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -32 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -33 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -34 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -35 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -36 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -37 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -38 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -39 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Notice: Undefined offset: -40 in C:\Inetpub\wwwroot\TSWeb\files\chat.php on line 49
Code: Select all
<?
header("Expires: ".gmdate("D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
<?
/* Modified for Flashkit by swissLyons: http://www.flashbuilder.ch based on the http://www.peopleforfun.com version */
/* Original script by Nicola Delbono <key5@key5.com> */
?>
<?
$nickname = str_replace ("\n"," ", $nickname);
$nickname = str_replace ("<", " ", $nickname);
$nickname = str_replace (">", " ", $nickname);
$nickname = stripslashes ($nickname);
?>
&output=
<?
$chat_file = "chat.txt";
$chat_lenght = 40;
$max_single_msg_lenght = 100000;
$max_file_size = $chat_lenght * $max_single_msg_lenght;
$file_size= filesize($chat_file);
if ($file_size > $max_file_size) {
$lines = file($chat_file);
$a = count($lines);
$u = $a - $chat_lenght;
for($i = $a; $i >= $u ;$i--){
$msg_old = $linesї$i] . $msg_old;
}
$deleted = unlink($chat_file);
$fp = fopen($chat_file, "a+");
$fw = fwrite($fp, $msg_old);
fclose($fp);
}
$msg = str_replace ("\n"," ", $message);
$msg = stripslashes ($msg);
if ($msg != ""){
$fp = fopen($chat_file, "a+");
$fw = fwrite($fp, "$nickname : $msg\n");
fclose($fp);}
$lines = file($chat_file);
$a = count($lines);
$u = $a - $chat_lenght;
for($i = $a; $i >= $u ;$i--){
echo $linesї$i];
}
?>HERE IS THE LOGIN.php
Code: Select all
<?
header("Expires: ".gmdate("D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
<?
/* Modified for Flashkit by swissLyons: http://www.flashbuilder.ch based on the http://www.peopleforfun.com version */
/* Original script by Nicola Delbono <key5@key5.com> */
?>
<?
$nickname = str_replace ("\n"," ", $nickname);
$nickname = str_replace ("<", " ", $nickname);
$nickname = str_replace (">", " ", $nickname);
$nickname = stripslashes ($nickname);
?>
&login=
<?
$date = date( "H:i");
$chat_file = "login.txt";
$chat_lenght =10;
$max_single_msg_lenght = 50000;
$max_file_size = $chat_lenght * $max_single_msg_lenght;
$file_size= filesize($chat_file);
if ($file_size > $max_file_size) {
$lines = file($chat_file);
$a = count($lines);
$u = $a - $chat_lenght;
for($i = $a; $i >= $u ;$i--){
$msg_old = $linesї$i] . $msg_old;
}
$deleted = unlink($chat_file);
$fp = fopen($chat_file, "a+");
$fw = fwrite($fp, $msg_old);
fclose($fp);
}
if ($nickname != ""){
$fp = fopen($chat_file, "a+");
$fw = fwrite($fp, "$date - $nickname enters \n");
fclose($fp);}
$lines = file($chat_file);
$a = count($lines);
$u = $a - $chat_lenght;
for($i = $a; $i >= $u ;$i--){
echo $linesї$i];
}
?>Please HELP ! ! ! ! [/php_man]