Файл: KOSMOS/inc/ica.php
Строк: 138
<?Error_Reporting (E_ALL & ~E_NOTICE);
if(isset($_GET[ok])){
$ica=my_esc($_GET['ok']);
$cena=100;
if($ku['rubies']>=$cena)
{
if(isset($_GET[da])){
mysql_query("UPDATE `kolhoz_user` SET `rubies` = '".($ku['rubies']-$cena)."' WHERE `id` = '$ku[id]'");
mysql_query("UPDATE `kolhoz_user` SET `ikonka` = '$ica' WHERE `id` = '$ku[id]'");
update_ku('ikonka',$ica);
header("location: ?ikonka&msg");
}
}
}
if(isset($_GET[msg])){
$msg='Иконка успешно изменена';
msg_game($msg);
}
?>
<div class="event"><h1>Выбор иконки</h1></div>
<div class="content">
<div class="block">
<font color="yellow">Каждая иконка стоит 100 рубинов</font><br><br>
<?if($_POST['pol']==0){
if($ku['pol']==1)
{
echo"<li><img alt='' width='16' height='16' src='images/iconka/1_male.png'> <a href='?ikonka&ok=1_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/fiance_male.png'> <a href='?ikonka&ok=fiance_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/love_male.png'> <a href='?ikonka&ok=love_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/demon_male.png'> <a href='?ikonka&ok=demon_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/angel_male.png'> <a href='?ikonka&ok=angel_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/boks_male.png'> <a href='?ikonka&ok=boks_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/glamyr_male.png'> <a href='?ikonka&ok=glamyr_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/alladin_male.png'> <a href='?ikonka&ok=alladin_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/bayker_male.png'> <a href='?ikonka&ok=bayker_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/shrek_male.png'> <a href='?ikonka&ok=shrek_male&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/user_male_50.png'> <a href='?ikonka&ok=user_male_50&da'> купить</a></li>";
}
elseif($ku['pol']==0)
{
echo"<li><img alt='' width='16' height='16' src='images/icons/holiday_female.png'> <a href='?ikonka&ok=holiday_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/fiance_female.png'> <a href='?ikonka&ok=fiance_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/love_female.png'> <a href='?ikonka&ok=love_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/demon_female.png'> <a href='?ikonka&ok=demon_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/angel_female.png'> <a href='?ikonka&ok=angel_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/boks_female.png'> <a href='?ikonka&ok=boks_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/bayker_female.png'> <a href='?ikonka&ok=bayker_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/alladin_female.png'> <a href='?ikonka&ok=alladin_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/glamyr_female.png'> <a href='?ikonka&ok=glamyr_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/shrek_female.png'> <a href='?ikonka&ok=shrek_female&da'> купить</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/user_female_50.png'> <a href='?ikonka&ok=user_female_50&da'> купить</a></li>";
if($ku['id']==1){echo"<li><img alt='' width='16' height='16' src='images/icons/user-silhouette.png'> <a href='?ikonka&ok=user-silhouette'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/20082_on.png'> <a href='?ikonka&ok=20082_on'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/20951_on.png'> <a href='?ikonka&ok=20951_on'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/user-silhouette.png'> <a href='?ikonka&ok=user-silhouette'> выбрать</a></li>";}
}else{
?><?if($_POST['pol']==1)
if($ku['status']==3){echo"<li><img alt='' width='16' height='16' src='images/icons/20082_on.png'> <a href='?ikonka&ok=20082_on'> выбрать</a></li>";}
echo"<li><img alt='' width='16' height='16' src='images/icons/10_.png'> <a href='?ikonka&ok=10_'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/11_.png'> <a href='?ikonka&ok=11_'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/12_.png'> <a href='?ikonka&ok=12_'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/13_.png'> <a href='?ikonka&ok=13_'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/14_.png'> <a href='?ikonka&ok=14_'> выбрать</a></li>";
echo"<li><img alt='' width='16' height='16' src='images/icons/15_.png'> <a href='?ikonka&ok=15_'> выбрать</a></li>";
}
}
include_once 'inc/foot.php';
?>