Файл: public_html/claquest.php
Строк: 320
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Клановые задание';
include './system/h.php';
?>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<div class="menulist"><center><h2>Клановые задание</h2></center></div><br>
<center><img src="/clan/icon-quest.png"></center><?/*
<center><h2>Дуэлянты!</h2></center>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<br><p><i><center><img src="http://btvar.ru/images/icon/quest.png">Проведите 200 боёв в дуэлях!!<img src="http://btvar.ru/images/icon/quest.png"></center></i></p><br><center><font color="violet">Награда
10000 <img src="/images/icon/gold.png"> , 100000 <img src="/images/icon/level.png"></font></center><br><center><font color="lime">Прогресс <?=$clan['1']?> / 200</font></center><br>
<?
if($clan['1']<200) {
echo "<center><span class='btn'><span class='end'><a class='label' href='/duel.php/'>Перейти к выполнению</a></span></span></center>";
}
?>
<?
if($clan['1'] > 199) {
echo "<center><span class='btn'><span class='end'><a class='label' href ='/claquest.php?act=z'>Забрать награду</a></span></span></center>";
}*/
?>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<?/*
if($_GET['act']=='z') {
if($clan['1']>199){
$_SESSION['msg']="Задание не выполненно!";
header('location:?');
}
if($clan['1']>199)
mysql_query("UPDATE `clans` SET `g` = g + 10000 WHERE `id` = ".$clan['id']."");
if($clan['1']>199)
mysql_query("UPDATE `clans` SET `exp` = exp + 100000 WHERE `id` = ".$clan['id']."");
if($clan['1']>199)
mysql_query("UPDATE `clans` SET `1` = 0 WHERE `id` = ".$clan['id']."");
if($clan['1']>199)
mysql_query("INSERT INTO `chat` SET `clan`='".$clan['id']."',`text`=' [color=lime]Задание (Дуэлянты!) выполненно , в казну зачисленно 10000 [img=/images/icon/gold.png] , и 100000 [img=/images/icon/level.png] [/color] выполнил (".$user['login'].") ', `time`='".time()."'");
}
*/
?>
<hr>
<center><h2>Общительные титаны!</h2></center>
<br><p><i><center><img src="http://btvar.ru/images/icon/quest.png">Отправте 100 сообщений в общий чат!<img src="http://btvar.ru/images/icon/quest.png"></center></i></p><br><center><font color="violet">Награда
20000 <img src="/images/icon/gold.png"> , 200000 <img src="/images/icon/level.png"></font></center><br><center><font color="lime">Прогресс <?=$clan['2']?> / 100</font></center><br>
<?
if($clan['2']<100) {
echo "<center><span class='btn'><span class='end'><a class='label' href='/chat.php/'>Перейти к выполнению</a></span></span></center>";
}
?>
<?
if($clan['2'] > 99) {
echo "<center><span class='btn'><span class='end'><a class='label' href ='/claquest.php?act=v'>Забрать награду</a></span></span></center>";
}
?>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<?
if($_GET['act']=='v') {
if($clan['2']>99){
$_SESSION['msg']="Задание не выполненно!";
header('location:?');
}
if($clan['2']>99)
mysql_query("UPDATE `clans` SET `g` = g + 20000 WHERE `id` = ".$clan['id']."");
if($clan['2']>99)
mysql_query("UPDATE `clans` SET `exp` = exp + 200000 WHERE `id` = ".$clan['id']."");
if($clan['2']>99)
mysql_query("UPDATE `clans` SET `2` = 0 WHERE `id` = ".$clan['id']."");
if($clan['2']>99)
mysql_query("INSERT INTO `chat` SET `clan`='".$clan['id']."',`text`=' [color=lime]Задание (Общительные титаны!) выполненно , в казну зачисленно 20000 [img=/images/icon/gold.png] , и 200000 [img=/images/icon/level.png] [/color] выполнил (".$user['login'].") ', `time`='".time()."'");
}
?>
<hr>
<center><h2>Безсконечность</h2></center>
<br><p><i><center><img src="http://btvar.ru/images/icon/quest.png">Обменяйте 10000000 мифрила<img src="http://btvar.ru/images/icon/quest.png"></center></i></p><br><center><font color="violet">Награда 30000 <img src="/images/icon/gold.png"> , 300000 <img src="/images/icon/level.png"></font></center><br><center><font color="lime">Прогресс <?=$clan['3']?> / 10000000</font></center><br>
<?
if($clan['3']<10000000) {
echo "<center><span class='btn'><span class='end'><a class='label' href='/mifril.php/'>Перейти к выполнению</a></span></span></center>";
}
?>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<?
if($clan['3'] > 9999999) {
echo "<center><span class='btn'><span class='end'><a class='label' href ='/claquest.php?act=n'>Забрать награду</a></span></span></center>";
}
?>
<?
if($_GET['act']=='n') {
if($clan['3']>9999999){
$_SESSION['msg']="Задание не выполненно!";
header('location:?');
}
if($clan['3']>9999999)
mysql_query("UPDATE `clans` SET `g` = g + 30000 WHERE `id` = ".$clan['id']."");
if($clan['3']>9999999)
mysql_query("UPDATE `clans` SET `exp` = exp + 300000 WHERE `id` = ".$clan['id']."");
if($clan['3']>9999999)
mysql_query("UPDATE `clans` SET `3` = 0 WHERE `id` = ".$clan['id']."");
if($clan['3']>9999999)
mysql_query("INSERT INTO `chat` SET `clan`='".$clan['id']."',`text`=' [color=lime]Задание (Безсконечность) выполненно , в казну зачисленно 30000 [img=/images/icon/gold.png] , и 300000 [img=/images/icon/level.png] [/color] выполнил (".$user['login'].") ', `time`='".time()."'");
}
?>
<hr>
<center><h2>Захватчик</h2></center>
<br><p><i><center><img src="http://btvar.ru/images/icon/quest.png">Атакуйте башню 10000 раз<img src="http://btvar.ru/images/icon/quest.png"></center></i></p><br><center><font color="violet">Награда 40000 <img src="/images/icon/gold.png"> , 400000 <img src="/images/icon/level.png"></font></center><br><center><font color="lime">Прогресс <?=$clan['4']?> / 10000</font></center><br>
<?
if($clan['4']<10000) {
echo "<center><span class='btn'><span class='end'><a class='label' href='/bashnya/'>Перейти к выполнению</a></span></span></center>";
}
?>
<?
if($clan['4'] > 9999) {
echo "<center><span class='btn'><span class='end'><a class='label' href ='/claquest.php?act=p'>Забрать награду</a></span></span></center>";
}
?>
<center><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"><img src="https://static.mrush.mobi/view/image/art/bg-hr.png"><img src="https://static.mrush.mobi/view/image/art/bg-arr-c.png"></center>
<?
if($_GET['act']=='p') {
if($clan['4']>9999){
$_SESSION['msg']="Задание не выполненно!";
header('location:?');
}
if($clan['4']>9999)
mysql_query("UPDATE `clans` SET `g` = g + 40000 WHERE `id` = ".$clan['id']."");
if($clan['4']>9999)
mysql_query("UPDATE `clans` SET `exp` = exp + 400000 WHERE `id` = ".$clan['id']."");
if($clan['4']>9999)
mysql_query("UPDATE `clans` SET `4` = 0 WHERE `id` = ".$clan['id']."");
if($clan['4']>9999)
mysql_query("INSERT INTO `chat` SET `clan`='".$clan['id']."',`text`=' [color=lime]Задание (Захватчик) выполненно , в казну зачисленно 40000 [img=/images/icon/gold.png] , и 400000 [img=/images/icon/level.png] [/color] выполнил (".$user['login'].") ', `time`='".time()."'");
}
?>
</center></center>
<?
include './system/f.php';
exit();
?>