2018-01-28 16:40:49 +00:00
|
|
|
|
<?
|
|
|
|
|
session_start();
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if (!isset($_SESSION['uid'])) {
|
|
|
|
|
header('Location: index.php');
|
|
|
|
|
die();
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
include('config.php');
|
|
|
|
|
include('functions.php');
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if ($_POST['oauth'] && $_POST['bnid']) {
|
|
|
|
|
$bn = mysql_fetch_array(mysql_query('SELECT `id`, `pass` FROM `bank` WHERE `id` = "' . (int)$_POST['bnid'] . '" AND `owner` = "' . $user['id'] . '" LIMIT 1'));
|
|
|
|
|
if (isset($bn['id'])) {
|
|
|
|
|
if ($bn['pass'] == md5($_POST['passwords'])) {
|
|
|
|
|
setcookie('inder', $bn['id'], time() + 60 * 60 * 24 * 7, '', GAMEDOMAIN);
|
|
|
|
|
$banks['id'] = $bn['id'];
|
|
|
|
|
echo 'Успешная авторизация ...';
|
|
|
|
|
} else {
|
|
|
|
|
echo 'Неверный пароль ...';
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
} else {
|
2018-01-29 19:24:30 +00:00
|
|
|
|
echo 'Счёт не найден ...';
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if ($_GET['destruct'] && $_GET['id'] == $user['id']) {
|
|
|
|
|
setcookie('inder', '', time() + 60 * 60 * 24 * 7, '', GAMEDOMAIN);
|
|
|
|
|
$banks['id'] = null;
|
|
|
|
|
header('Location: /relikt.php');
|
|
|
|
|
echo 'Работа со счётом завершена ...';
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if (isset($_GET['use'])) {
|
|
|
|
|
if ($_GET['use'] == 1) {
|
|
|
|
|
include('magic/usability_vip/invisible.php');
|
|
|
|
|
} elseif ($_GET['use'] == 2) {
|
|
|
|
|
include('magic/usability_vip/devastate.php');
|
|
|
|
|
} elseif ($_GET['use'] == 3) {
|
|
|
|
|
include('magic/usability_vip/defence.php');
|
|
|
|
|
} elseif ($_GET['use'] == 4) {
|
|
|
|
|
include('magic/usability_vip/attack.php');
|
|
|
|
|
} elseif ($_GET['use'] == 5) {
|
|
|
|
|
include('magic/usability_vip/attack_blood.php');
|
|
|
|
|
} elseif ($_GET['use'] == 6) {
|
|
|
|
|
include('magic/usability_vip/sleep.php');
|
|
|
|
|
} elseif ($_GET['use'] == 7) {
|
|
|
|
|
include('magic/usability_vip/travmoff.php');
|
|
|
|
|
} elseif ($_GET['use'] == 8) {
|
|
|
|
|
include('magic/usability_vip/no_attack.php');
|
|
|
|
|
} elseif ($_GET['use'] == 9) {
|
|
|
|
|
include('magic/usability_vip/un_sleep.php');
|
|
|
|
|
} elseif ($_GET['use'] == 10) {
|
|
|
|
|
include('magic/usability_vip/pers_blood.php');
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if (isset($_GET['used'])) {
|
|
|
|
|
if ($_GET['used'] == 1) {
|
|
|
|
|
include('magic/usability_user/sleep15.php');
|
|
|
|
|
} elseif ($_GET['used'] == 2) {
|
|
|
|
|
include('magic/usability_user/sleep30.php');
|
|
|
|
|
} elseif ($_GET['used'] == 3) {
|
|
|
|
|
include('magic/usability_user/close_battle.php');
|
|
|
|
|
} elseif ($_GET['used'] == 4) {
|
|
|
|
|
include('magic/usability_user/heal20.php');
|
|
|
|
|
} elseif ($_GET['used'] == 5) {
|
|
|
|
|
include('magic/usability_user/heal35.php');
|
|
|
|
|
} elseif ($_GET['used'] == 6) {
|
|
|
|
|
include('magic/usability_user/heal50.php');
|
|
|
|
|
} elseif ($_GET['used'] == 7) {
|
|
|
|
|
include('magic/usability_user/travmoff.php');
|
|
|
|
|
} elseif ($_GET['used'] == 8) {
|
|
|
|
|
include('magic/usability_user/attack.php');
|
|
|
|
|
} elseif ($_GET['used'] == 9) {
|
|
|
|
|
include('magic/usability_user/attack_blood.php');
|
|
|
|
|
} elseif ($_GET['used'] == 11) {
|
|
|
|
|
include('magic/usability_user/note.php');
|
|
|
|
|
} elseif ($_GET['used'] == 12) {
|
|
|
|
|
include('magic/usability_user/open_battle.php');
|
|
|
|
|
} elseif ($_GET['used'] == 13) {
|
|
|
|
|
include('magic/usability_user/reamdeath.php');
|
|
|
|
|
} elseif ($_GET['used'] == 14) {
|
|
|
|
|
include('magic/usability_user/clone.php');
|
|
|
|
|
} elseif ($_GET['used'] == 15) {
|
|
|
|
|
include('magic/usability_user/unclone.php');
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if (isset($_GET['useds'])) {
|
|
|
|
|
if ($_GET['useds'] == 1) {
|
|
|
|
|
include('magic/usability_klan/sleep15.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 2) {
|
|
|
|
|
include('magic/usability_klan/sleep30.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 3) {
|
|
|
|
|
include('magic/usability_klan/close_battle.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 4) {
|
|
|
|
|
include('magic/usability_klan/heal20.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 5) {
|
|
|
|
|
include('magic/usability_klan/heal35.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 6) {
|
|
|
|
|
include('magic/usability_klan/heal50.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 7) {
|
|
|
|
|
include('magic/usability_klan/travmoff.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 8) {
|
|
|
|
|
include('magic/usability_klan/attack.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 9) {
|
|
|
|
|
include('magic/usability_klan/attack_blood.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 11) {
|
|
|
|
|
include('magic/usability_klan/note.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 12) {
|
|
|
|
|
include('magic/usability_klan/open_battle.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 13) {
|
|
|
|
|
include('magic/usability_klan/reamdeath.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 14) {
|
|
|
|
|
include('magic/usability_klan/clone.php');
|
|
|
|
|
} elseif ($_GET['useds'] == 15) {
|
|
|
|
|
include('magic/usability_klan/unclone.php');
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
function show_byu($type)
|
|
|
|
|
{
|
|
|
|
|
global $user;
|
|
|
|
|
$r = '';
|
|
|
|
|
$type = $type + 20;
|
|
|
|
|
if ($user['klan'] != '') {
|
|
|
|
|
$clan = mysql_fetch_array(mysql_query('SELECT `id`, `glava` FROM `clans` WHERE `id` = "' . $user['klan'] . '" LIMIT 1'));
|
|
|
|
|
if ($clan['glava'] == $user['id']) {
|
|
|
|
|
$r = '<div style="text-align: center;"><a href="javascript:void(0);" class="byu_klan" id="' . $type . '">купить 1 шт.</a></div>';
|
|
|
|
|
} else {
|
|
|
|
|
$r = '<div style="text-align: center;"><a href="javascript:void(0);">Вы не глава</a></div>';
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
} else {
|
2018-01-29 19:24:30 +00:00
|
|
|
|
$r = '<div style="text-align: center;"><a href="javascript:void(0);">Вы не состоите в клане</a></div>';
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
2018-01-29 19:24:30 +00:00
|
|
|
|
return $r;
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
$is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_user` WHERE `uid` = "' . $user['id'] . '" LIMIT 1'));
|
|
|
|
|
if (!isset($is_['id'])) {
|
|
|
|
|
mysql_query('INSERT INTO `abils_user` (`uid`) VALUES ("' . $user['id'] . '")');
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
$is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_vip` WHERE `uid` = "' . $user['id'] . '" LIMIT 1'));
|
|
|
|
|
if (!isset($is_['id'])) {
|
|
|
|
|
mysql_query('INSERT INTO `abils_vip` (`uid`) VALUES ("' . $user['id'] . '")');
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
if ($user['klan'] != '') {
|
|
|
|
|
$is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_klan` WHERE `klan` = "' . $user['klan'] . '" LIMIT 1'));
|
|
|
|
|
if (!isset($is_['id'])) {
|
|
|
|
|
mysql_query('INSERT INTO `abils_klan` (`klan`) VALUES ("' . $user['klan'] . '")');
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<!DOCTYPE HTML>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<title>404</title>
|
|
|
|
|
<meta charset='utf-8'/>
|
|
|
|
|
<script src="js/jquery-1.7.2.min.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="css/hostel.css"/>
|
|
|
|
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="js/modal_j.js"></script>
|
|
|
|
|
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
|
|
|
|
<style>
|
|
|
|
|
.items {
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
float: left;
|
|
|
|
|
height: 150px;
|
|
|
|
|
margin: 0 0 30px 30px;
|
|
|
|
|
width: 150px;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
.title {
|
|
|
|
|
font-size: 75%;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2018-01-28 16:40:49 +00:00
|
|
|
|
|
2018-01-29 19:24:30 +00:00
|
|
|
|
.img {
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.control {
|
|
|
|
|
padding: 0 3px;
|
|
|
|
|
font-size: 90%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img.slot.valign {
|
|
|
|
|
margin-top: -12px;
|
|
|
|
|
margin-left: 54px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
height: 25px;
|
|
|
|
|
width: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ahint {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #000080;
|
|
|
|
|
font-family: MS Sans Serif, serif;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
border-right: #b0b0b0 1pt solid;
|
|
|
|
|
border-top: #b0b0b0 1pt solid;
|
|
|
|
|
margin-top: 1px;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
border-left: #b0b0b0 1pt solid;
|
|
|
|
|
color: #191970;
|
|
|
|
|
border-bottom: #b0b0b0 1pt solid;
|
|
|
|
|
font-family: MS Sans Serif, serif;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_user:hover, .box_klan:hover {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: brown;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<div id="hint3" class="ahint"
|
|
|
|
|
style="z-index: 2; position: absolute; top: 100px; left: 700px; visibility: hidden; width: 240px;"></div>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
<div class="contentContainer">
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<div style="text-align: center;"><span class="hs">Реликты</span></div>
|
|
|
|
|
<div class="buttonContainer">
|
|
|
|
|
<input type="button" class="btns button-route" value="Вернуться" onclick="location.href='main.php';"/>
|
|
|
|
|
<input type="button" class="btns button-route" value="Обновить" onclick="location.href='relikt.php';"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<fieldset style="width: 400px;">
|
|
|
|
|
<legend id="personal" class="box_user" href="#inlin" style="cursor: pointer;"
|
|
|
|
|
title="Магазин персональных реликтов">Персональные :
|
|
|
|
|
</legend>
|
|
|
|
|
<? echo user_relicts(); ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-top: 15px;">
|
|
|
|
|
<fieldset style="width: 400px;">
|
|
|
|
|
<legend id="klans" class="box_klan" href="#inlines" style="cursor: pointer;"
|
|
|
|
|
title="Магазин клановых реликтов">Клановые :
|
|
|
|
|
</legend>
|
|
|
|
|
<? echo klan_relicts(); ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-top: 15px;">
|
|
|
|
|
<fieldset style="width: 400px;">
|
|
|
|
|
<legend>Vip :</legend>
|
|
|
|
|
<? echo vip_relicts(); ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-top: 13px; padding-bottom: 13px;">
|
|
|
|
|
<?= banks(); ?>
|
|
|
|
|
</div>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="inlin">
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Заклятие молчания</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/silence15.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="1">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Заклятие молчания</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/silence30.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 2.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="2">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Закрыть бой</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/closebattle.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 10.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="3">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +20%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP15.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.50 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="4">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +35%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP45.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.80 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="5">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +50%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP60.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="6">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Лечение тяжелой травмы</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cure3.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="7">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Нападение</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/attack.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.10 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="8">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Нападение (кровавое)</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/attackb.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.20 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="9">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items" style="display: none;">
|
|
|
|
|
<div class="title">Объятия смерти</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/poison_e.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 4.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="10">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Оставить запись в логе боя</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/note.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.02 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="11">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Открыть бой</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/unlockbattle.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 20.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="12">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items" style="display: none;">
|
|
|
|
|
<div class="title">Поднять мертвого</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/reanimationD.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 10.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="13">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Порождение клона</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/mirror.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="14">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Эфирное воздействие</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/antimirror.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<div style="text-align: center;"><a href="javascript:void(0);" class="byu" id="15">купить 1 шт.</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="inlines">
|
2018-01-29 19:24:30 +00:00
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Заклятие молчания</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/silence15.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<?php echo show_byu(1); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Заклятие молчания</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/silence30.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 2.00 екр.
|
|
|
|
|
<?php echo show_byu(2); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Закрыть бой</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/closebattle.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 10.00 екр.
|
|
|
|
|
<?php echo show_byu(3); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +20%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP15.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.50 екр.
|
|
|
|
|
<?php echo show_byu(4); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +35%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP45.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.80 екр.
|
|
|
|
|
<?php echo show_byu(5); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Исцеление +50%</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cureHP60.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<?php echo show_byu(6); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Лечение тяжелой травмы</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/cure3.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<?php echo show_byu(7); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Нападение</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/attack.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.10 екр.
|
|
|
|
|
<?php echo show_byu(8); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Нападение (кровавое)</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/attackb.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.20 екр.
|
|
|
|
|
<?php echo show_byu(9); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items" style="display: none;">
|
|
|
|
|
<div class="title">Объятия смерти</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/poison_e.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 4.00 екр.
|
|
|
|
|
<?php echo show_byu(10); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Оставить запись в логе боя</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/note.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 0.02 екр.
|
|
|
|
|
<?php echo show_byu(11); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Открыть бой</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/unlockbattle.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 20.00 екр.
|
|
|
|
|
<?php echo show_byu(12); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items" style="display: none;">
|
|
|
|
|
<div class="title">Поднять мертвого</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/reanimationD.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 10.00 екр.
|
|
|
|
|
<?php echo show_byu(13); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Порождение клона</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/mirror.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<?php echo show_byu(14); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items">
|
|
|
|
|
<div class="title">Эфирное воздействие</div>
|
|
|
|
|
<div class="img"><img class="slot valign halign" src="/i/sh/antimirror.gif"/></div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
Цена: 1.00 екр.
|
|
|
|
|
<?php echo show_byu(15); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
2018-01-29 19:24:30 +00:00
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
var types_user = ['Заклятие молчания 15 мин', 'Заклятие молчания 30 мин', 'Закрыть бой', 'Исцеление 20%', 'Исцеление 35%', 'Исцеление 50%', 'Лечение', 'Нападение', 'Кровавое нападение', 'Объятия смерти', 'Записки Комментатора', 'Открыть бой', 'Поднять мертвого', 'Клонирование', 'Переманить клона'];
|
|
|
|
|
var types_klan = ['Заклятие молчания 15 мин', 'Заклятие молчания 30 мин', 'Закрыть бой', 'Исцеление 20%', 'Исцеление 35%', 'Исцеление 50%', 'Лечение', 'Нападение', 'Клановое нападение', 'Объятия смерти', 'Записки Комментатора', 'Открыть бой', 'Поднять мертвого', 'Клонирование', 'Переманить клона'];
|
|
|
|
|
|
|
|
|
|
$(".box_klan").fancybox();
|
|
|
|
|
$(".box_user").fancybox();
|
|
|
|
|
|
|
|
|
|
$(".byu").on("click", function () {
|
|
|
|
|
var type = $(this).attr('id');
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'POST',
|
|
|
|
|
url: 'fancy/buy.php',
|
|
|
|
|
data: "type=" + type + "&user="+<?=$user['id'];?>+"",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data === 'success') {
|
|
|
|
|
$(".child").html('<b style="color: Red;">' + types_user[type - 1] + ' успешно куплено</b>');
|
|
|
|
|
$("#" + type + "").html('Купить еще?');
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
$(".child").html('Магазин персональных реликтов');
|
|
|
|
|
}, 500)
|
|
|
|
|
} else {
|
|
|
|
|
$("#" + type + "").html(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".byu_klan").on("click", function () {
|
|
|
|
|
var type = $(this).attr('id');
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'POST',
|
|
|
|
|
url: 'fancy/buy_klan.php',
|
|
|
|
|
data: "type=" + type + "&user="+<?=$user['id'];?>+"",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data === 'success') {
|
|
|
|
|
$(".child").html('<b style="color: Red;">' + types_klan[type - 21] + ' успешно куплено</b>');
|
|
|
|
|
$("#" + type + "").html('Купить еще?');
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
$(".child").html('Магазин клановых реликтов');
|
|
|
|
|
}, 500)
|
|
|
|
|
} else {
|
|
|
|
|
$("#" + type + "").html(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
2018-01-28 16:40:49 +00:00
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|