View file forum/print.php

File size: 1.55Kb
<?php
#-----------------------------------------------------#
#          ********* WAP-MOTORS *********             #
#             Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]         #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#	
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";

if (ctype_digit($id) && ctype_digit($fid) && file_exists(BASEDIR."local/dataforum/$id.dat")) {

$file = file(BASEDIR."local/dataforum/$id.dat");
$dd=explode("|", $file[0]);

echo '<big><b>'.$dd[3].'</b></big><br><br>'; 


foreach($file as $forvalue){$q++;

$dt = explode("|",$forvalue);

echo $q.'. <b>'.nickname($dt[0]).'</b> ('.date_fixed($dt[9]).')<br>';
echo bb_code($dt[4]).'<br><br>';

}

echo 'URL: <a href="'.$config_home.'/forum/index.php?fid='.$fid.'&amp;id='.$id.'&amp;'.SID.'">'.$config_home.'/forum/index.php?fid='.$fid.'&amp;id='.$id.'&amp;'.SID.'</a>';
	
}else{header ("Location: index.php?".SID);}

ob_end_flush();
exit;
?>