В shop.php:
elseif(isset($_GET['shop']) && $_GET['shop']=='pit3')

{
$lr=rl($ku['pit3']);
$lrl=$ku['pit3']+1;
$lkn=$ku['pit3'];
if($ku['pit3']==0)$lr=100;
if(isset($_GET['level']) && $lkn<12)
{
if(isset($_GET['ok']))
{
if($ku['rubies']>=$lr)
{
mysql_query("UPDATE `kolhoz_user` SET `pit3` = '$lrl' WHERE `id` = '$ku[id]'");
mysql_query("UPDATE `kolhoz_user` SET `rubies` = '".($ku['rubies']-$lr)."' WHERE `id` = '$ku[id]'");
}
else
{
$rm=$lr-$ku['rubies'];
$_SESSION['no_rubies']=$rm;
}
header("Location:?shop=pit3");
}
echo "<div class='event'><h1>Подтверждение</h1></div><div class='content'><ul class='block'><li><span>".($ku['pit3']==0?"Приобретение":"Прокачка")."</span>: <span><span class='epic'>Лицензия Пилота</span>".($ku['pit3']>0?", повышение уровня до $lrl":null)."</span><br/><span>цена</span>: <span><img width='16' height='16' src='images/icons/ruby.png' alt='o'> <span class='title'>$lr</span></span></li><li class='pt'><img alt='o' width='16' height='16' src='images/icons/tick.png'> <a href='?shop=pit3&level&ok'><span>Да, подтверждаю</span></a></li><li><img alt='o' width='16' height='16' src='images/icons/cross.png'> <a href='?shop=pit3'><span>Нет, отказываюсь</span></a></li></ul>";
}
else include_once 'inc/pit3.php';
include_once 'inc/foot.php';
--
В бд:
ALTER TABLE `kolhoz_user` ADD `pit3` VARCHAR( 32 ) NOT NULL ;
В converter.php
if(isset($pit3_act))$count1=$count1+$pit3_act;
Вроде усе