559 lines
24 KiB
PHP
559 lines
24 KiB
PHP
|
<?
|
|||
|
session_start();
|
|||
|
if(!isset($_SESSION['uid'])) { header('Location: index.php'); die(); }
|
|||
|
include('config.php');
|
|||
|
include('functions.php');
|
|||
|
|
|||
|
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, '', '.capitalcity.old-dark.ru');
|
|||
|
$banks['id'] = $bn['id'];
|
|||
|
echo 'Успешная авторизация ...';
|
|||
|
} else {
|
|||
|
echo 'Неверный пароль ...';
|
|||
|
}
|
|||
|
} else {
|
|||
|
echo 'Счёт не найден ...';
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
if($_GET['destruct'] && $_GET['id'] == $user['id']) {
|
|||
|
setcookie('inder', '', time()+60*60*24*7, '', '.capitalcity.old-dark.ru');
|
|||
|
$banks['id'] = null;
|
|||
|
header('Location: /relikt.php');
|
|||
|
echo 'Работа со счётом завершена ...';
|
|||
|
}
|
|||
|
|
|||
|
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');
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
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');
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
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');
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
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>';
|
|||
|
}
|
|||
|
} else {
|
|||
|
$r = '<div style="text-align: center;"><a href="javascript:void(0);">Вы не состоите в клане</a></div>';
|
|||
|
}
|
|||
|
return $r;
|
|||
|
}
|
|||
|
|
|||
|
$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'].'")');
|
|||
|
}
|
|||
|
|
|||
|
$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'].'")');
|
|||
|
}
|
|||
|
|
|||
|
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'].'")');
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
?>
|
|||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<title>404</title>
|
|||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|||
|
<meta http-equiv="content-language" content="ru" />
|
|||
|
<script src="js/jquery-1.7.2.min.js"></script>
|
|||
|
<link rel="stylesheet" type="text/css" href="css/hostel.css" />
|
|||
|
<link rel="stylesheet" type="text/css" media="all" href="fancy/css/style.css" />
|
|||
|
<link rel="stylesheet" type="text/css" media="all" href="fancy/fancybox/jquery.fancybox.css" />
|
|||
|
<link rel="stylesheet" href="fancy/css/header.css" type="text/css" />
|
|||
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
|
|||
|
<script type="text/javascript" src="fancy/fancybox/fancybox.pack.js"></script>
|
|||
|
<script type="text/javascript" src="js/modal_j.js"></script>
|
|||
|
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
|||
|
<style>
|
|||
|
.item { overflow: hidden; padding: 3px; float: left; text-align: center; }
|
|||
|
.amount { font-size: 75%; font-weight: bold; }
|
|||
|
.items { border: 1px solid black; float: left; height: 150px; margin: 0 0 30px 30px; width: 150px; position: relative; }
|
|||
|
.title { font-size: 75%; font-weight: bold; text-align: center; }
|
|||
|
.img { position: absolute; height: 100%; width: 100%; top: 0px; left: 0px; }
|
|||
|
.control { padding: 0 3px; font-size: 90%; position: absolute; bottom: 0px; 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; 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; }
|
|||
|
.box_user:hover, .box_klan:hover { opacity: 0.5; text-decoration: underline; }
|
|||
|
h4 { text-align: center; color: brown; }
|
|||
|
</style>
|
|||
|
<script>
|
|||
|
function runmagic1(title, magic, name) {
|
|||
|
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>'+title+'</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>'+
|
|||
|
'<form action="'+magic+'" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="10022"> <INPUT TYPE=hidden NAME="use" value="'+magic+'">'+
|
|||
|
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT TYPE=text NAME="'+name+'">'+
|
|||
|
'</TD><TD width=30><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
|||
|
document.all("hint3").style.visibility = "visible";
|
|||
|
document.all("hint3").style.left = 100;
|
|||
|
document.all("hint3").style.top = 100;
|
|||
|
document.all(name).focus();
|
|||
|
Hint3Name = name;
|
|||
|
Hint3Closed = false;
|
|||
|
}
|
|||
|
|
|||
|
function runmagic2(title, magic, name) {
|
|||
|
var login = '<?=$user['login']?>';
|
|||
|
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>'+title+'</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>'+
|
|||
|
'<form action="'+magic+'" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><td colspan=2><INPUT TYPE=hidden name=sd4 value="10022"> <INPUT TYPE=hidden NAME="use" value="'+magic+'">'+
|
|||
|
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD align=left><INPUT type=text name="'+name+'" value="'+login+'" disabled />'+
|
|||
|
'</TD><TD width=30><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
|||
|
document.all("hint3").style.visibility = "visible";
|
|||
|
document.all("hint3").style.left = 100;
|
|||
|
document.all("hint3").style.top = 100;
|
|||
|
document.all(name).focus();
|
|||
|
Hint3Name = name;
|
|||
|
Hint3Closed = false;
|
|||
|
}
|
|||
|
|
|||
|
function note(title, script, name, coma, errk) {
|
|||
|
var errkom = ''; var com = '';
|
|||
|
if(errk == 1) { errkom = 'Нельзя использовать символы: /\:*?"<>|+%<br>'; com = coma; }
|
|||
|
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+
|
|||
|
'<form action="'+script+'" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2><font color=red>'+
|
|||
|
errkom+'</font>Введите текст</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text id="'+name+'" NAME="'+name+'" value="'+com+'"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
|||
|
document.getElementById("hint3").style.visibility = "visible";
|
|||
|
document.getElementById("hint3").style.left = 200;
|
|||
|
document.getElementById("hint3").style.top = 60;
|
|||
|
document.getElementById(name).focus();
|
|||
|
Hint3Name = name;
|
|||
|
}
|
|||
|
</script>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div id="hint3" class="ahint" style="z-index: 2; position: absolute; top: 100px; left: 700px; visibility: hidden; width: 240px;"></div>
|
|||
|
<div class="contentContainer">
|
|||
|
<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(1);?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div id="inlin">
|
|||
|
<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>
|
|||
|
</div>
|
|||
|
|
|||
|
<div id="inlines">
|
|||
|
<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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? 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 екр.
|
|||
|
<? echo show_byu(15); ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<script>
|
|||
|
$(document).ready(function() {
|
|||
|
|
|||
|
var types_user = new Array('Заклятие молчания 15 мин', 'Заклятие молчания 30 мин', 'Закрыть бой', 'Исцеление 20%', 'Исцеление 35%', 'Исцеление 50%', 'Лечение', 'Нападение', 'Кровавое нападение', 'Объятия смерти', 'Записки Комментатора', 'Открыть бой', 'Поднять мертвого', 'Клонирование', 'Переманить клона');
|
|||
|
var types_klan = new Array('Заклятие молчания 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);
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
</script>
|
|||
|
</body>
|
|||
|
</html>
|