<?
include_once("config.php");
include_once("session_class.php");
include_once("persinfo_class.php");
error_reporting(E_ALL ^ E_NOTICE);
session_start();
$session = new Sessions;

if(in_array(userip(),array('63.91.58.124','8.72.95.166'))) {
 $enter=1; $id=12;$session->id_person=$id;
}
if ($session->is_session(session_id())){
	$id=$session->id_person;$enter=1; 
} 
if ($enter && ($_REQUEST['id'] OR $_REQUEST['id2'])) {

if (!in_array($id,array(12,430,58,43,870,411))) die(403);
$myinfo=new persinfo ($id);
if ($_REQUEST['id']) $value=new thinginfo(strval($_REQUEST['id']));
else $value=fullthing(strval($_REQUEST['id2']));
	
	$harnames=getharnames();$cityname=getcitiesnames();

if (!$value->name) {echo "Не найдено";die;}

$t="

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
\"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">
<title>АНТИБК | Библиотека</title>
<link href=\"../i/register/main1.css\" rel=\"stylesheet\" type=\"text/css\">
<style type=\"text/css\">
.style6 {	color: #DFD3A3;
	font-size: 9px;
}
.inup3 {
	border: 1px dashed #D3CAA0;
	font-size: 12px;

}
A:link {
	FONT-WEIGHT: bold; COLOR: #5B3E33; TEXT-DECORATION: none
}
A:visited {
	FONT-WEIGHT: bold; COLOR: #633525; TEXT-DECORATION: none
}
A:active {
	FONT-WEIGHT: bold; COLOR: #77684d; TEXT-DECORATION: none
}
A:hover {
	COLOR: #000000; TEXT-DECORATION: underline
}
</style>
</head>
<body bgcolor=\"#000000\" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  <tr valign=top>
    <td><table width=\"100%\" height=\"135\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
        <tr>
          <td background=\"../i/register/sitebk_02.jpg\" scope=\"col\" align=center><a href=\"/forum.php?n=\" onClick=\"this.blur()\"><img src=\"../i/register/sitebk_03ru.gif\" width=\"194\" height=\"135\" border=0></a></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor='#3D3D3B'>
  <tr valign=top>
    <td></td>
    <td align=center><SCRIPT>
wsize=document.body.clientWidth;
if (wsize >= 800 ) wsize=Math.floor(wsize*0.8);
if (wsize < 700) wsize=700;
document.write('<table cellspacing=0 cellpadding=0 bgcolor=#f2e5b1 border=0 width='+(wsize-20)+'>');
</SCRIPT>
  <tr valign=top>
    <td width=\"29\" rowspan=2 background=\"../i/register/n21_08_1.jpg\"><img src=\"../i/encicl/pictlr_crutch.jpg\" width=\"29\" height=\"256\"></td>
    <td width=\"118\" align=\"left\"><img id=\"imleft\" src=\"../i/encicl/pictl_crutch.jpg\" width=\"118\" height=\"257\"><BR>
    </td>
    <td rowspan=2 align=\"left\"><!-- Begin of text -->      
      <p><b><br>
        &gt;&gt;</b> <a href=\"../index.html\">Содержание</a> / <a href=\"../subjects.html\">Предметы</a> / <a href=\"../ammunition.html\">Амуниция</a> / <a href=\"../crutch.html\">Костыли</a> / <b><i>".$value->name."</i></b> 
      <p>
      <h2>".$value->name."</h2>
      <br />
      <img src=\"../i/encicl/ln3.jpg\" width=\"400\" height=\"1\">
      </p>
      
      <div align=\"center\"> 
        <table width=\"504\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
          <tr>
            <td align=\"left\"  width=\"12\" height=\"10\"><img src=\"../i/encicl/ll12_30.gif\" width=\"12\" height=\"10\"></td>
            <td width=\"100%\" background=\"../i/encicl/ram12_34.gif\"></td>
            <td width=\"12\" height=\"10\" align=\"right\"><img src=\"../i/encicl/ll12_30.gif\" width=\"12\" height=\"10\"></td>
          </tr>
          <tr>
            <td width=\"12\" background=\"../i/encicl/line_left_13.gif\">&nbsp;</td>
            <td width=\"480\"><img src=\"../i/items/big/3d".$value->pic.".jpg\" alt=\"\" width=\"480\" height=\"360\" border=1 id=\"bigim\"></td>
            <td width=\"12\" background=\"../i/encicl/line_right_13.gif\">&nbsp;</td>
          </tr>
          <tr>
           		  <td align=\"left\" width=\"12\" height=\"10\"><img src=\"../i/encicl/ll12_30.gif\" width=\"12\" height=\"10\"></td>
                  <td width=\"100%\" style=\"background-image:url(../i/encicl/ram12_34down.gif); background-position:bottom\"></td>
                  <td width=\"12\" align=\"right\"><img src=\"../i/encicl/ll12_30.gif\" width=\"12\" height=\"10\"></td>
          </tr>
        </table>
         </div>
      <p align=\"center\">&nbsp;</p>
      <BR>
      <table width=\"504\" border=\"0\" align=center cellpadding=\"0\" cellspacing=\"0\">
        <tr>
          <td align=left valign=\"top\">
	
<table width=\"95%\"  border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" class=\"inup3\">
<tr>
"; 
echo $t;
printinfo($value,$myinfo,0,'','',$value->gos_price." кр. ".($value->ekr?'('.$value->ekr." екр)":""));
$t='';
$t.="
</tr>
</table>

	</tr>
      </table>
      <p>
      <!-- End of text -->
    <td style='padding-left: 3' align=right><img id=\"imright\" height=144 src=\"../i/encicl/pict_crutch.jpg\" width=139 border=0></td>
    <td valign=top background=\"../i/register/nnn21_03_1.jpg\">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
  <tr valign=top>
    <td></td>
    <td valign=center style=\"padding-bottom:50\" align=\"right\"><IMG height=236 src=\"../i/encicl/pictr_crutch.jpg\" width=128 border=0></td>
    <td width=\"23\" valign=top background=\"../i/register/nnn21_03_1.jpg\">&nbsp;</td>
  </tr>
</table>
</td>
<td></td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=#000000>
  <TR>
    <TD colspan=3 width=\"100%\" height=13 background=\"../i/register/sitebk_07.jpg\"></TD>
  </TR>
  <tr valign=top>
    <td width=\"20%\"><div align=\"center\">
        <SCRIPT><!--
		d=document;a='';a+=';r='+escape(d.referrer)
		js=10//--></SCRIPT>
        <SCRIPT language=JavaScript1.1><!--
		a+=';j='+navigator.javaEnabled()
		js=11//--></SCRIPT>
        <SCRIPT language=JavaScript1.2><!--
		s=screen;a+=';s='+s.width+'*'+s.height
		a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth)
		js=12//--></SCRIPT>
        <SCRIPT language=JavaScript1.3><!--
		js=13//--></SCRIPT>
        <SCRIPT><!--
		d.write('<a href=\"http://top.mail.ru/jump?from=341269\"'+
		' target=_top><img src=\"http://top.list.ru/counter'+
		'?id=341269;t=50;js='+js+a+';rand='+Math.random()+
		'\" alt=\"Рейтинг@Mail.ru\"'+' border=0 height=31 width=88></a>')
		if(js>11)d.write('<'+'!-- ')//--></SCRIPT>
        <NOSCRIPT>
        <A href=\"http://top.mail.ru/jump?from=341269\" target=_top><IMG height=31 alt=Рейтинг@Mail.ru src=\"\" width=88 border=0></A>
        </NOSCRIPT>
        <SCRIPT><!--
		if(js>11)d.write('--'+'>')//--></SCRIPT>
      </div></td>
    <td align=center valign=middle><div align=\"center\"><NOBR><span class=\"style6\">Copyright © 2002—2004 «www.Combats.ru»</span></NOBR></div></td>
    <td width=\"20%\"></td>
  </tr>
</table>
</body>
</html>

";
echo $t;
/*$filename='shmottemp.html';
@touch ($filename);
echo "Удаляем: {$filename}<br />";
@unlink($filename);
echo "Сохраняем: {$filename}<br />";
$fp = @fopen($filename, 'w');
echo "Сгенерирован: {$filename}<br />";
@fwrite($fp, $t); @fclose($fp);
*/
}

?>