6 |
kaklik |
1 |
<?php
|
|
|
2 |
include "config.php";
|
|
|
3 |
include "incl/header.inc";
|
|
|
4 |
check_user();
|
|
|
5 |
?>
|
|
|
6 |
</head><body class="y">
|
|
|
7 |
<table align="center" width="96%" class="t" cellpadding="0" cellspacing="0"><tr><td>
|
|
|
8 |
<table width="99%" cellpadding="0" cellspacing="0"><tr><td class="f">
|
|
|
9 |
<table width="100%" cellpadding="8" cellspacing="1">
|
|
|
10 |
<tr><td colspan="3" align="center" class="c"><?php print $room_name;?></td></tr>
|
|
|
11 |
<tr><td class="d" width="10%"> <?php print $lang[31];?> </td><td class="d" width="10%"> <?php print $lang[32];?> </td><td class="d" width="80%"> <?php print $lang[33];?> </td></tr>
|
|
|
12 |
<?php
|
|
|
13 |
$fs=open_file($log_file,1);
|
|
|
14 |
|
|
|
15 |
$print_lines=array();$j=0;
|
|
|
16 |
|
|
|
17 |
$no_messages="<tr class=\"$row_bg\"><td colspan=\"3\" class=\"l\">$lang[36]</td>";
|
|
|
18 |
|
|
|
19 |
for($i=0;$i<count($fs);$i++){
|
|
|
20 |
if($j==$keep_lines){break;}
|
|
|
21 |
|
|
|
22 |
if(isset($fs[$i])&&strlen($fs[$i])>9){
|
|
|
23 |
$row=explode(":|:",$fs[$i]);
|
|
|
24 |
|
|
|
25 |
$pop_user=$row[2];
|
|
|
26 |
|
|
|
27 |
$user_time=show_time($row[0]);
|
|
|
28 |
$print_lines[$j]="<tr class=\"$row_bg\"><td class=\"l\">$user_time</td><td class=\"l\"><b>$pop_user</b></td><td>$row[3]</td>";
|
|
|
29 |
$j++;change_row_color();}
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
for($i=count($print_lines);$i>=0;$i--){
|
|
|
33 |
if(isset($print_lines[$i])&&strlen($print_lines[$i])>9){
|
|
|
34 |
print $print_lines[$i];
|
|
|
35 |
print "</tr>\n";}
|
|
|
36 |
elseif(count($print_lines)==0){print $no_messages."</tr>\n";}
|
|
|
37 |
}
|
|
|
38 |
?></table></td></tr></table>
|
|
|
39 |
<span class="k"><a href="info.php?why=link" onclick="self.scrollTo(0,0);return false"><?php print $lang[25];?></a></span>
|
|
|
40 |
<br /><br /></td></tr></table></body></html>
|