Файл: public_html/altardef.php
Строк: 43
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Алтарь защиты';
include './system/h.php';
?>
<?
if($_GET['act']==def) {
if($clan['altar4']<1){
header('location:?');
}
if($clan['altar4']==0) {
if($clan['g']>99999) {
mysql_query("UPDATE `clans` SET `altar4` = 1 WHERE `id` = ".$clan['id']."");
if($clan['altar4']==0) {
if($clan['g']>99999) {
mysql_query("UPDATE `clans` SET `g` = g - 100000 WHERE `id` = ".$clan['id']."");
}
}
}
}
}
?>
<center><img src="/images/icon/def.png">Алтарь защиты<img src="/images/icon/def.png"></center>
<table><tr>
<img src="http://tiwar.ru/images/altars/def.png">
<?
if($clan['altar4']==0) {
?>
<font color="red"> Алтарь не построен</font>
<?
}
?>
<?
if($clan['altar4']==1) {
?>
<font color="lime"> + 3000 к защите участникам клана</font>
<?
}
?>
</table></tr>
<?
if($clan['altar4']==0) {
?>
<center><span class="btn"><span class="end"><a class="label" href="/altardef.php?act=def">Построить алтарь 100000 <img src="/images/icon/gold.png"></a></span></span></center>
<?
}
?>
<?
include './system/f.php';
?>