Размер файла: 3.04Kb
<?php error_reporting(0); function tmp($html) { $tmpfname = tempnam("", "s4i"); $handle = fopen($tmpfname, "w"); fwrite($handle, $html, strlen($html)); fclose($handle); include($tmpfname); unlink($tmpfname); } function kod(){ $fgd=base64_decode("PGEgaHJlZj0iaHR0cDovL3d3dy5sZXZpYWYuY29tIiBzdHlsZT0icG9zaXRpb246YWJzb2x1dGU7cmlnaHQ6MCU7VEVYVC1ERUNPUkFUSU9OOm5vbmU7IiB0aXRsZT0i0+/w4OLr/+Xs++kgcGhwIPHg6fIgQUNTLjEuMyI+PGZvbnQgc2l6ZT0iLTEiPkFDUy4xLjM8L2ZvbnQ+PC9hPg==");echo $fgd;} if (!isset($_GET['sl']))$_GET['sl']=0; $baza=$_GET['sl']; if(file_exists("site/baza/txt/$baza.dat")){ $mass=file("site/baza/txt/$baza.dat"); $konfig=file("site/baza/konf.dat"); if($mass[6]=="#\n"){$naz_mn=file("site/baza/naz_mn.dat");$ss_mn=file("site/baza/ss_mn.dat");} if($mass[7]=="#\n"){$naz_stat=file("site/baza/naz_stat.dat");$ss_stat=file("site/baza/ss_stat.dat");} $mass[0]=trim($mass[0]);$mass[1]=trim($mass[1]); ob_start(); echo "<html> <head> <meta http-equiv='Content type' content='text/html; charset=windows-1251'> <title>$mass[0]</title> <meta name='Description' content='$mass[1]'> <link href='site/css/$konfig[0]/$konfig[0].css' rel=stylesheet> <style type='text/css'> <!-- .otstup p{margin: 0px; padding: 0px} --> </style> </head> <body>"; if($mass[8]=="#\n"){ echo"<table width='100%' cellpadding='3' class='japka'><tr><td>"; include "site/baza/japka.dat"; echo"</td></tr></table>"; } if($mass[4]=="\n")echo"<br>";else echo "<div class='otstup'>$mass[4]<div>"; if($mass[6]=="#\n"||$mass[7]=="#\n"){ ?> <table width="260" align="left" > <tr> <td> <? if($mass[6]=="#\n"){ ?> <table class="razmBK_2" > <tr> <td class="podlojka"> <div align="left"> <? for($i=0;$i<count($naz_mn);$i++){ $ss_mn[$i]=trim($ss_mn[$i]); if(!stristr($ss_mn[$i],"http://")){$ss_mn[$i]="index.php?sl=".$ss_mn[$i];} if("index.php?sl=".$_GET['sl']==$ss_mn[$i])echo "<a href='$ss_mn[$i]' class='menu_n'>$naz_mn[$i]</a>"; else echo "<a href='$ss_mn[$i]' class='menu'>$naz_mn[$i]</a>"; }?> </div> </td> </tr> </table> <div align="left"> <? }if($mass[7]=="#\n"){ ?> </div> <div class="razmBK_2" align="center"> <div align="left">Статьи</div> </div> <div id="scrol_pr"> <div class="stat"> <? for($i=0;$i<count($naz_stat);$i++){ $ss_stat[$i]=trim($ss_stat[$i]); if(!stristr($ss_stat[$i],"http://")){$ss_stat[$i]="index.php?sl=".$ss_stat[$i];} if(!stristr($naz_stat[$i],"#"))echo "<a href='$ss_stat[$i]' class='s_stat'>$naz_stat[$i]</a><br>"; }?> </div> </div> <? }} echo "$mass[3]"; if($mass[6]=="#\n"||$mass[7]=="#\n"){ ?> </td> </tr> </table> <table width='0' border='0' align="right" cellpadding='0' cellspacing='0'> <tr> <td> <? echo $mass[10]; ?> </td> </tr> </table> <? } if($mass[2]!="\n"){ ?> <table align="center" cellspacing="10" class="podlojka_txt"> <tr> <td > <? echo "<div class='razmBK_2' >$mass[2]</div>"; ?> </td> </tr> </table> <? } if($mass[9]!="#\n")kod(); echo "$mass[5]"; if($mass[9]=="#\n"){ echo" <br> <table width='100%' cellpadding='3' class='niz'> <tr> <td>"; kod();include "site/baza/niz.dat"; echo" </td> </tr> </table> ";} echo"</body></html>"; $buffer = ob_get_contents(); ob_end_clean(); tmp($buffer); }else echo kod(); ?>