Файл: activ.php
Строк: 638
<?
define('PROTECTOR', 1);
include('files/db.php');
include($path.'files/auth.php');
if ($user_id==0){
header('location: index.php');exit;
}
$textl='Активность';
include($path.'files/core.php');
$activ=mysql_query("SELECT * FROM `users_activ` WHERE `usr`='".$udata['id']."'");
$act=mysql_fetch_array($activ);
if(isset($_GET['compl']))
{
$cl=mysql_real_escape_string($_GET['compl']);
if($cl>0 and $cl<12)
{
if($cl==1)
{
if($act['act_1']==1)
{
$ac=$udata['activ']+5;
mysql_query("UPDATE `users_activ` SET `act_1`='2' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==2)
{
if($act['act_2']==1)
{
$ac=$udata['activ']+5;
mysql_query("UPDATE `users_activ` SET `act_2`='2' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==3)
{
if($act['act_3']==3)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_3`='4' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==4)
{
if($act['act_4']==5)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_4`='6' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==5)
{
if($act['act_5']==3)
{
$ac=$udata['activ']+5;
mysql_query("UPDATE `users_activ` SET `act_5`='4' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==6)
{
if($act['act_6']==5)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_6`='6' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==7)
{
if($act['act_7']==1)
{
$ac=$udata['activ']+15;
mysql_query("UPDATE `users_activ` SET `act_7`='2' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==8)
{
if($act['act_8']==1)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_8`='2' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==9)
{
if($act['act_9']==5)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_9`='6' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==10)
{
if($act['act_10']==1)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_10`='2' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
elseif($cl==11)
{
if($act['act_11']==3)
{
$ac=$udata['activ']+10;
mysql_query("UPDATE `users_activ` SET `act_11`='4' WHERE `usr`='".$udata['id']."'");
mysql_query("UPDATE `users` SET `activ`='".$ac."' WHERE `id`='".$udata['id']."'");
}
}
if($udata['activ']<20 and $ac>=20)
{
$alm=$udata['money']+30;
mysql_query("UPDATE `users` SET `money`='".$alm."' WHERE `id`='".$udata['id']."'");
mysql_query("INSERT INTO `user_log` SET
`usr`='".$udata['id']."',
`text`='Вы набрали 20% активности. Ваша награда: <img src=img/main/p5.png>30</font>'
");
}
elseif($udata['activ']<50 and $ac>=50)
{
$alm=$udata['tank']+10;
mysql_query("UPDATE `users` SET `tank`='".$alm."' WHERE `id`='".$udata['id']."'");
mysql_query("INSERT INTO `user_log` SET
`usr`='".$udata['id']."',
`text`='Вы набрали 50% активности. Ваша награда: <img src=img/main/23f.png>10</font>'
");
}
elseif($udata['activ']<100 and $ac>=100)
{
$dat_s=date('d');
if($dat_s>=17 and $dat_s<=22)
{
$activ=mysql_query("SELECT * FROM `users_event` WHERE `usr`='".$udata['id']."'");
$act=mysql_fetch_array($activ);
$point=$act['point']+10;
mysql_query("UPDATE `users_event` SET `point`='".$point."' WHERE `id`='".$act['id']."'");
}
$alm=$udata['jem']+2;
mysql_query("UPDATE `users` SET `jem`='".$alm."' WHERE `id`='".$udata['id']."'");
mysql_query("INSERT INTO `user_log` SET
`usr`='".$udata['id']."',
`text`='Вы набрали 100% активности. Ваша награда: <img src=img/main/p13.png>2</font>'
");
}
}
header('location: ?');exit;
}
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<div class="v3 bts brs bls b p v12">Навигация</div><div class="v4 bts brs bls bbs p t1">
<img src=img/main/i26.png class="menu"> <a href=game.php>главная</a> / <a href=?>Бонус</a>
</div>';
echo '<div class="v8"><div class="v3 bts brs bls b p v12">Активность</div><div class="v2 bts brs bls bbs p t3">';
echo'<table width=100%>
<tr><td width=90%>
<div style="width:100%; height: 14px" class="v8 bts bbs brs bls">';
if($udata['activ']<=20){echo'<div style="background: #ff3333; width: '.$udata['activ'].'%; height: 14px">';}
elseif($udata['activ']>20 and $udata['activ']<=50){echo'<div style="background: #ff8800; width: '.$udata['activ'].'%; height: 14px">';}
elseif($udata['activ']>50){echo'<div style="background: #ffff00; width: '.$udata['activ'].'%; height: 14px">';}
echo'</div>
</div>
</td>
<td class="p">'.$udata['activ'].'%</td>
</tr>
</table>
</div>
<div class="v2 brs bls bbs p t3">
';
echo '<table width=100% border=1px>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Ежедневный Бонус</b></font><br>
<font color=#00cc00><i>Забрать ежедневный бонус</i></font>
</td>';
echo '<td align=center>';
if($act['act_1']==0){echo '<img src=img/main/2.png>';}
elseif($act['act_1']>=1){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_1']==1){echo'<a href=?compl=1><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+5</div></a>';}
elseif($act['act_1']!=1){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+5</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Усиление</b></font><br>
<font color=#00cc00><i>Воспользоваться услугами шамана</i></font>
</td>';
echo '<td align=center>';
if($act['act_2']==0){echo '<img src=img/main/2.png>';}
elseif($act['act_2']>=1){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_2']==1){echo'<a href=?compl=2><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+5</div></a>';}
elseif($act['act_2']!=1){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+5</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Зверолов</b></font><br>
<font color=#00cc00><i>Провести 3 боя в окрестностях</i></font>
</td>';
echo '<td align=center>';
if($act['act_3']<3){echo '<img src=img/main/2.png>';}
elseif($act['act_3']>=3){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_3']==3){echo'<a href=?compl=3><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_3']!=3){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Охотник</b></font><br>
<font color=#00cc00><i>Пройти Великую Охоту 5 раз</i></font>
</td>';
echo '<td align=center>';
if($act['act_4']<5){echo '<img src=img/main/2.png>';}
elseif($act['act_4']>=5){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_4']==5){echo'<a href=?compl=4><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_4']!=5){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Дружба</b></font><br>
<font color=#00cc00><i>Сделайте 3 подарка своим друзьям</i></font>
</td>';
echo '<td align=center>';
if($act['act_5']<3){echo '<img src=img/main/2.png>';}
elseif($act['act_5']>=3){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_5']==3){echo'<a href=?compl=5><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+5</div></a>';}
elseif($act['act_5']!=3){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+5</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Лесной Плут</b></font><br>
<font color=#00cc00><i>Одержать победу в 5 боях в Лесной Арене</i></font>
</td>';
echo '<td align=center>';
if($act['act_6']<5){echo '<img src=img/main/2.png>';}
elseif($act['act_6']>=5){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_6']==5){echo'<a href=?compl=6><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_6']<5){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Гильдеец</b></font><br>
<font color=#00cc00><i>Совершить вклад в гильдию</i></font>
</td>';
echo '<td align=center>';
if($act['act_7']<1){echo '<img src=img/main/2.png>';}
elseif($act['act_7']>=1){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_7']==1){echo'<a href=?compl=7><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+15</div></a>';}
elseif($act['act_7']!=1){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+15</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Мореплаватель</b></font><br>
<font color=#00cc00><i>Пройти 1 путь от острова к острову</i></font>
</td>';
echo '<td align=center>';
if($act['act_8']<1){echo '<img src=img/main/2.png>';}
elseif($act['act_8']>=1){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_8']==1){echo'<a href=?compl=8><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_8']!=1){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Квестовик</b></font><br>
<font color=#00cc00><i>Выполнить 5 ежедневных квестов</i></font>
</td>';
echo '<td align=center>';
if($act['act_9']<5){echo '<img src=img/main/2.png>';}
elseif($act['act_9']>=5){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_9']==5){echo'<a href=?compl=9><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_9']!=5){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Мастер Зоны</b></font><br>
<font color=#00cc00><i>Принять участие в Боевой Зоне</i></font>
</td>';
echo '<td align=center>';
if($act['act_10']<1){echo '<img src=img/main/2.png>';}
elseif($act['act_10']>=1){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_10']==1){echo'<a href=?compl=10><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_10']!=1){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '<tr>';
echo '<td width=60%><font color=#ff9900><b>Пещерник</b></font><br>
<font color=#00cc00><i>Пройти 3 Подземелья</i></font>
</td>';
echo '<td align=center>';
if($act['act_11']<3){echo '<img src=img/main/2.png>';}
elseif($act['act_11']>=3){echo '<img src=img/main/1.png>';}
echo'</td>';
echo '<td>';
if($act['act_11']==3){echo'<a href=?compl=11><div style="position: relative;
font-weight: bold;
color: #ffff00;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px;" align=center>+10</div></a>';}
elseif($act['act_11']!=3){echo'<a href=?><div style="position: relative;
font-weight: bold;
color: #00ffff;
text-decoration: none;
text-shadow: 0 -1px 1px #cc5500;
user-select: none;
padding: 3px 0 3px 3px;
outline: none;
border-radius: 1px;
background: #348533;
background-size: 100% 100%, auto;
background-position: 50% 50%;
box-shadow: inset #34f533 0 -1px 1px, inset 0 1px 1px #34f533, #34f533 0 0 0 1px, #000 0 10px 15px -10px;
margin-left: 5px;
margin-right: 5px;
margin-top: 4px; opacity: 0.3;" align=center>+10</div></a>';}
echo'</td>';
echo '</tr>';
echo '</table>';
echo '</div></div>';
include($path.'files/down.php');
?>