Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<tr><td class="d" width="10%">&nbsp;<?php print $lang[4];?>&nbsp;</td><td class="d" width="80%">&nbsp;<?php print $lang[33];?>&nbsp;</td><td class="d" width="10%">&nbsp;<?php print $lang[68];?>&nbsp;</td></tr>
2
<?php
3
 
4
$j=0;$print_lines=array();
5
$fs=open_file($log_file,1);
6
 
7
if(isset($line)){
8
$line=(int)$line;
9
$fs[$line]='';
10
$fm=implode("\n",$fs);
11
save_file($log_file,$fm,0);}
12
 
13
$no_messages="<tr class=\"$row_bg\"><td colspan=\"3\" class=\"l\">$lang[36]</td>";
14
 
15
for($i=0;$i<count($fs);$i++){
16
if($j==$keep_lines){break;}
17
 
18
if(isset($fs[$i])&&strlen($fs[$i])>9){
19
$row=explode(":|:",$fs[$i]);
20
 
21
$message=strip_tags($row[3]);
22
$print_lines[$j]="<tr class=\"$row_bg\"><td class=\"l\"><b>$row[2]</b><br /><span class=\"k\">[$row[4]]</span></td><td class=\"k\">$message</td><td class=\"k\" nowrap=\"nowrap\"><a href=\"info.php?reason=link\" onclick=\"return go_url('admin.php?line=$i',5,0)\" title=\"$lang[71] $lang[33]\">$lang[71]</a></td>";
23
$j++;change_row_color();}
24
}
25
 
26
for($i=count($print_lines);$i>=0;$i--){
27
if(isset($print_lines[$i])&&strlen($print_lines[$i])>9){
28
print $print_lines[$i];
29
print "</tr>\n";}
30
elseif(count($print_lines)==0){print $no_messages."</tr>\n";}
31
}
32
 
33
?>