10-20 WR-Board Lite LUX 1.8 ?

www.ipserver.su vps

     newmsg.dat , - . , . - ( ).

( WR-Board 1.8 ). :

<? //     php-       10-20  .
   // ,  : https://www.wr-script.ru/board/
   //       https://www.wr-script.ru

$showten=10; //    10  20
$datadir="board_LUX_1.9"; //    
$brdskin="skin-liteblue"; //  

//  10-20  
$shapka20="<TABLE align=center cellPadding=3 cellSpacing=0 width=98%>";
$shapka10="<TABLE align=center cellPadding=3 cellSpacing=0 width=98%>";
if (is_file("$datadir/data/newmsg.dat") and $showten>="1") { //     
$linesn = file("$datadir/data/newmsg.dat"); $in=count($linesn);
if ($in > 0) {
$newdat=file("$datadir/data/newmsg.dat");
$in=count($newdat)-1; $iall=$in; $ia=$in+1;
print"<TABLE cellPadding=2 cellSpacing=1 align=center width=98%>";
if ($showten=="20") {print "<TR class=toptable height=18><TD colspan=4 align=center><B> 
$ia :</B></TD></TR><TR><TD valign=top>$shapka20";}
    else {print "<TR><TD> </td><TD align=center><TABLE align=center cellPadding=3 cellSpacing=0 
    width=468><TR class=toptable height=18><TD colspan=4 align=center><B> $ia :</B></TD></TR>";}

do {$dtn=explode("|", $newdat[$in]);
$tdt=explode("[ktname]", $dtn[1]);

$url="$datadir/index.php?id=$dtn[10]";
$dtn[5]=substr($dtn[5],0,150); //    150 
$dtn[5]=str_replace("<br>","\r\n",$dtn[5]);
$dtn[7]=date("H:i",$dtn[7]);
if ($dtn[4]=="") {$colorsp="#ff3333";} else {$colorsp="#1414CD";}
if (round($iall/2)==($in+1) & $showten>10) {print"</table></td><td width=50% valign=top>$shapka10";}
if ($dtn[9]=="vip") {$st1="<B>"; $st2="VIP- \r\n";} else {$st1=""; $st2="";}
print"
<TR height=20 onmouseover=trtover(this) onmouseout=trtout(this)>
<TD><FONT color=$colorsp><B>$dtn[4]</B></FONT></TD>
<TD>$dtn[6]</TD>
<TD width=100%>$st1<A href='$url' title='$dtn[5] \r\r\n $tdt[0] --> 
$tdt[1] \r\r\n $st2\r\n  $dtn[6] .'>$dtn[3]</A></TD>
<TD><IMG alt='' border=0 src='$datadir/$brdskin/go.gif'></TD>
</TR>";
$in--;
} while($in >"-1");
} print"</table></td></tr></table>";
}

?>

? , : www.wr-script.ru/forum/ - ;-)

-
- 13 2016 .



, , ( , + ). !

: www.wr-script.ru, 2004-2024.

. WR-Script.ru!

WEB-

WR-Счётчик