View file chat.php

File size: 790B
<?php
$room=$_GET['room'];
include "head.php"; echo '<meta http-equiv="refresh" content="15; URL=chat.php?room='.$room.'&page=1"/>'; echo '<center><a href="write.php?room='.$room.'&page=1">Write</a>|<a href="chat.php?room='.$room.'&page=1">Refresh</a><br/>
<a href="chat.php?room='.$room.'&page=1&history">history..</a><br/>';
include 'chat_data.php';
include "rooms.php";
echo '</center>';
if($room=="1"){$f=fopen("1.txt","w+"); fwrite($f,$count); fclose($f); }else if($room=="2"){$f=fopen("2.txt","w+"); fwrite($f,$count); fclose($f); }else if($room=="3"){$f=fopen("3.txt","w+"); fwrite($f,$count); fclose($f); }else
if($room=="4"){$f=fopen("4.txt","w+"); fwrite($f,$count); fclose($f); }else if($room=="5"){$f=fopen("5.txt","w+"); fwrite($f,$count); fclose($f); }
include "foot.php";
?>