Autofix small errors

This commit is contained in:
Igor Barkov [iwork] 2019-01-16 19:45:30 +02:00
parent d330721114
commit 094b8a6027
313 changed files with 736 additions and 2280 deletions

View File

@ -43,21 +43,21 @@ H.prototype.get = function(key, defaultValue){
H.prototype.setHP = function(id, curHP, maxHP){ H.prototype.setHP = function(id, curHP, maxHP){
curHP = curHP || 0; curHP = curHP || 0;
maxHP = maxHP || 0; maxHP = maxHP || 0;
var hp = this.getMainBox().find('#hpKey_'+id); const hp = this.getMainBox().find('#hpKey_' + id);
if(hp.length < 1){ if(hp.length < 1){
return false; return false;
} }
var hpA = $('img:eq(1)', hp); const hpA = $('img:eq(1)', hp);
var hpB = $('img:eq(2)', hp); const hpB = $('img:eq(2)', hp);
var redHP = 0.33; // меньше 30% красный цвет const redHP = 0.33; // меньше 30% красный цвет
var yellowHP = 0.66; // меньше 60% желтый цвет, иначе зеленый const yellowHP = 0.66; // меньше 60% желтый цвет, иначе зеленый
if(curHP > maxHP){ if(curHP > maxHP){
curHP = maxHP; curHP = maxHP;
} }
var text = curHP + '/' + maxHP; const text = curHP + '/' + maxHP;
var lengthHP = 170 - (text.length - 1) * 8; const lengthHP = 170 - (text.length - 1) * 8;
var sizeFirst = Math.round((lengthHP / maxHP) * curHP); const sizeFirst = Math.round((lengthHP / maxHP) * curHP);
var sizeSecond = lengthHP - sizeFirst; const sizeSecond = lengthHP - sizeFirst;
hpA.attr('width', sizeFirst); hpA.attr('width', sizeFirst);
hpB.attr('width', sizeSecond); hpB.attr('width', sizeSecond);
if(curHP / maxHP < redHP){ if(curHP / maxHP < redHP){
@ -116,15 +116,19 @@ H.prototype.sdOptionsDefault = {
H.prototype._sd = function(options){ H.prototype._sd = function(options){
options = $.extend({}, this.sdOptionsDefault, options); options = $.extend({}, this.sdOptionsDefault, options);
var m = $('<div class="sd-container"></div>').css('width',options.width); const m = $('<div class="sd-container"></div>').css('width', options.width);
var t = $('<div class="sd-title">').text(options.title); const t = $('<div class="sd-title">').text(options.title);
var c = $('<img class="sd-closer" src="/i/clear.gif" title="Закрыть окно" alt="X">') const c = $('<img class="sd-closer" src="/i/clear.gif" title="Закрыть окно" alt="X">')
.click(function(){return options.onClose.call($(this).closest('div.sd-container'))}); .click(function () {
var f = $('<form class="sd-form"></form>') return options.onClose.call($(this).closest('div.sd-container'))
});
const f = $('<form class="sd-form"></form>')
.attr('method', options.formMethod) .attr('method', options.formMethod)
.attr('action', options.formAction) .attr('action', options.formAction)
.submit(function(){return options.onSubmit.call($(this).closest('div.sd-container'))}); .submit(function () {
for(var i in options.data){ return options.onSubmit.call($(this).closest('div.sd-container'))
});
for(let i in options.data){
$('<input type=hidden>').attr('name',i).val(options.data[i]).appendTo(f); $('<input type=hidden>').attr('name',i).val(options.data[i]).appendTo(f);
} }
if(options.formClass){ if(options.formClass){
@ -135,16 +139,16 @@ H.prototype._sd = function(options){
} }
H.prototype.sd = function(options){ H.prototype.sd = function(options){
var tmp = this._sd(options); const tmp = this._sd(options);
return this.getMainBox().append(tmp); return this.getMainBox().append(tmp);
} }
H.prototype.sdOneInput = function(options){ H.prototype.sdOneInput = function(options){
var onSubmit2 = options.onSubmit; let onSubmit2 = options.onSubmit;
options = $.extend({},this.sdOptionsDefault, {inputName: 'target', inputValue: '', grabber: null}, options); options = $.extend({},this.sdOptionsDefault, {inputName: 'target', inputValue: '', grabber: null}, options);
var i = $('<input type="text" class="text">') const i = $('<input type="text" class="text">')
.css({'width': options.width - 45}) .css({'width': options.width - 45})
.attr('name',options.inputName) .attr('name', options.inputName)
.val(options.inputValue); .val(options.inputValue);
if(options.grabber && this[options.grabber] instanceof Grabber){ if(options.grabber && this[options.grabber] instanceof Grabber){
this[options.grabber].set(i); this[options.grabber].set(i);
@ -155,7 +159,7 @@ H.prototype.sdOneInput = function(options){
.append(i) .append(i)
.append('<input type="submit" class="button" style="width:33px;" value=" »» ">')); .append('<input type="submit" class="button" style="width:33px;" value=" »» ">'));
options.onSubmit = function(){ options.onSubmit = function(){
var v = i.val($.trim(i.val())).val(); const v = i.val($.trim(i.val())).val();
if(v.length <= 0){ if(v.length <= 0){
alert('Не заполнено обязательное поле'); alert('Не заполнено обязательное поле');
return false return false
@ -216,7 +220,7 @@ H.prototype.msgPopup = function(type, text){
if(this._popupConfig[type] == undefined){ if(this._popupConfig[type] == undefined){
type = 'w'; type = 'w';
} }
var conf = this._popupConfig[type]; const conf = this._popupConfig[type];
$.jGrowl(text,{ $.jGrowl(text,{
header: '<img src="/i/jgrowl_moover.png" alt="<>" class="jgrowl-moover" title="Передвинуть"> ' + conf[1], header: '<img src="/i/jgrowl_moover.png" alt="<>" class="jgrowl-moover" title="Передвинуть"> ' + conf[1],
glue: 'before', glue: 'before',
@ -251,9 +255,9 @@ Grabber.prototype.isActive = function(){
} }
Grabber.prototype.set = function(input){ Grabber.prototype.set = function(input){
var obj = this; const obj = this;
this.clear(); this.clear();
var tmp = $(input); const tmp = $(input);
if(tmp.length > 0){ if(tmp.length > 0){
this.input = tmp.get(0); this.input = tmp.get(0);
$(this.input) $(this.input)

View File

@ -1043,17 +1043,17 @@ if ($_POST['login'] && $_POST['krest']) {
?> ?>
<script type="text/javascript"> <script type="text/javascript">
var xmlHttpp = []; const xmlHttpp = [];
function ajax_func(func, iid, getpar, postpar) { function ajax_func(func, iid, getpar, postpar) {
xmlHttpp[iid] = GetXmlHttpObject1(); xmlHttpp[iid] = GetXmlHttpObject1();
if (xmlHttpp[iid] == null) { if (xmlHttpp[iid] == null) {
alert("Browser does not support HTTP Request") alert("Browser does not support HTTP Request");
return return
} }
document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />"; document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />";
var url = "./ajax/" + func + ".php" var url = "./ajax/" + func + ".php";
url = url + "?" + getpar url = url + "?" + getpar;
xmlHttpp[iid].open("POST", url, true); xmlHttpp[iid].open("POST", url, true);
xmlHttpp[iid].onreadystatechange = function () { xmlHttpp[iid].onreadystatechange = function () {
if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") { if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") {
@ -1063,13 +1063,13 @@ if ($_POST['login'] && $_POST['krest']) {
document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText; document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText;
document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10; document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10;
} }
} };
xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttpp[iid].send(postpar); xmlHttpp[iid].send(postpar);
} }
function GetXmlHttpObject1() { function GetXmlHttpObject1() {
var xmlHttp1 = null; let xmlHttp1 = null;
try { try {
xmlHttp1 = new XMLHttpRequest(); xmlHttp1 = new XMLHttpRequest();
} }
@ -1085,7 +1085,7 @@ if ($_POST['login'] && $_POST['krest']) {
} }
function show(ele) { function show(ele) {
var srcElement = document.getElementById(ele); const srcElement = document.getElementById(ele);
if (srcElement != null) { if (srcElement != null) {
if (srcElement.style.display == "block") { if (srcElement.style.display == "block") {
srcElement.style.display = 'none'; srcElement.style.display = 'none';
@ -1095,8 +1095,8 @@ if ($_POST['login'] && $_POST['krest']) {
} }
} }
var Hint3Name = ''; let Hint3Name = '';
var Hint3Closed = false; let Hint3Closed = false;
function runmagic0(title, magic, name) { function runmagic0(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>' + 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>' +
@ -1248,17 +1248,17 @@ if ($_POST['login'] && $_POST['krest']) {
</script> </script>
<script> <script>
var xmlHttpp = [] var xmlHttpp = [];
function ajax_func(func, iid, getpar, postpar) { function ajax_func(func, iid, getpar, postpar) {
xmlHttpp[iid] = GetXmlHttpObject1() xmlHttpp[iid] = GetXmlHttpObject1();
if (xmlHttpp[iid] == null) { if (xmlHttpp[iid] == null) {
alert("Browser does not support HTTP Request") alert("Browser does not support HTTP Request");
return return
} }
document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />"; document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />";
var url = "./ajax/" + func + ".php" var url = "./ajax/" + func + ".php";
url = url + "?" + getpar url = url + "?" + getpar;
xmlHttpp[iid].open("POST", url, true); xmlHttpp[iid].open("POST", url, true);
xmlHttpp[iid].onreadystatechange = function () { xmlHttpp[iid].onreadystatechange = function () {
if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") { if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") {
@ -1268,13 +1268,13 @@ if ($_POST['login'] && $_POST['krest']) {
document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText; document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText;
document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10; document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10;
} }
} };
xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttpp[iid].send(postpar); xmlHttpp[iid].send(postpar);
} }
function GetXmlHttpObject1() { function GetXmlHttpObject1() {
var xmlHttp1 = null; let xmlHttp1 = null;
try { try {
// Firefox, Opera 8.0+, Safari // Firefox, Opera 8.0+, Safari
xmlHttp1 = new XMLHttpRequest(); xmlHttp1 = new XMLHttpRequest();

View File

@ -26,4 +26,3 @@ while($check++ < $clans) {
} }
} }
?>

View File

@ -184,4 +184,4 @@ if($res[0]!=$res2[0])
} }
?>

View File

@ -255,8 +255,8 @@ if ($_POST['sale']) {
</TD> </TD>
<TD valign=top width=280> <TD valign=top width=280>
<div style="MARGIN-LEFT:15px; MARGIN-TOP: 10px;"> <div style="MARGIN-LEFT:15px; MARGIN-TOP: 10px;">
<CENTER><B>Масса всех ваших вещей: <?= getItemsMassaInfo() ?><BR> <div style="text-align: center;"><B>Масса всех ваших вещей: <?= getItemsMassaInfo() ?><BR>
У вас в наличии: <span style="color: blue"><?=$user['doblest']?></span> реп.</B></CENTER> У вас в наличии: <span style="color: blue"><?=$user['doblest']?></span> реп.</B></div>
<hr> <hr>
<a href=shop.php>ГОС. МАГАЗИН</a> <a href=shop.php>ГОС. МАГАЗИН</a>
<hr> <hr>

View File

@ -123,13 +123,13 @@ if ($header) {
</style> </style>
<script> <script>
function S(name) { function S(name) {
var sData = top.frames['bottom'].window.document; const sData = top.frames['bottom'].window.document;
sData.F1.text.focus(); sData.F1.text.focus();
sData.F1.text.value = sData.F1.text.value + ':' + name + ': '; sData.F1.text.value = sData.F1.text.value + ':' + name + ': ';
} }
var currenttab = 1; let currenttab = 1;
var viewmask = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; const viewmask = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
function ctab(n) { function ctab(n) {
if (n === currenttab) return; if (n === currenttab) return;
@ -256,17 +256,17 @@ if ($header) {
top.ChatTranslit = false; top.ChatTranslit = false;
var map_en = ['s`h', 'S`h', 'S`H', 's`Х', 'sh`', 'Sh`', 'SH`', "'o", 'yo', "'O", 'Yo', 'YO', 'zh', 'w', 'Zh', 'ZH', 'W', 'ch', 'Ch', 'CH', 'sh', 'Sh', 'SH', 'e`', 'E`', "'u", 'yu', "'U", 'Yu', "YU", "'a", 'ya', "'A", 'Ya', 'YA', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D', 'e', 'E', 'z', 'Z', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'f', 'F', 'h', 'H', 'c', 'C', '`', 'y', 'Y', "'"]; const map_en = ['s`h', 'S`h', 'S`H', 's`Х', 'sh`', 'Sh`', 'SH`', "'o", 'yo', "'O", 'Yo', 'YO', 'zh', 'w', 'Zh', 'ZH', 'W', 'ch', 'Ch', 'CH', 'sh', 'Sh', 'SH', 'e`', 'E`', "'u", 'yu', "'U", 'Yu', "YU", "'a", 'ya', "'A", 'Ya', 'YA', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D', 'e', 'E', 'z', 'Z', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'f', 'F', 'h', 'H', 'c', 'C', '`', 'y', 'Y', "'"];
var map_ru = ['сх', 'Сх', 'СХ', 'сХ', 'щ', 'Щ', 'Щ', 'ё', 'ё', 'Ё', 'Ё', 'Ё', 'ж', 'ж', 'Ж', 'Ж', 'Ж', 'ч', 'Ч', 'Ч', 'ш', 'Ш', 'Ш', 'э', 'Э', 'ю', 'ю', 'Ю', 'Ю', 'Ю', 'я', 'я', 'Я', 'Я', 'Я', 'а', 'А', 'б', 'Б', 'в', 'В', 'г', 'Г', 'д', 'Д', 'е', 'Е', 'з', 'З', 'и', 'И', 'й', 'Й', 'к', 'К', 'л', 'Л', 'м', 'М', 'н', 'Н', 'о', 'О', 'п', 'П', 'р', 'Р', 'с', 'С', 'т', 'Т', 'у', 'У', 'ф', 'Ф', 'х', 'Х', 'ц', 'Ц', 'ъ', 'ы', 'Ы', 'ь']; const map_ru = ['сх', 'Сх', 'СХ', 'сХ', 'щ', 'Щ', 'Щ', 'ё', 'ё', 'Ё', 'Ё', 'Ё', 'ж', 'ж', 'Ж', 'Ж', 'Ж', 'ч', 'Ч', 'Ч', 'ш', 'Ш', 'Ш', 'э', 'Э', 'ю', 'ю', 'Ю', 'Ю', 'Ю', 'я', 'я', 'Я', 'Я', 'Я', 'а', 'А', 'б', 'Б', 'в', 'В', 'г', 'Г', 'д', 'Д', 'е', 'Е', 'з', 'З', 'и', 'И', 'й', 'Й', 'к', 'К', 'л', 'Л', 'м', 'М', 'н', 'Н', 'о', 'О', 'п', 'П', 'р', 'Р', 'с', 'С', 'т', 'Т', 'у', 'У', 'ф', 'Ф', 'х', 'Х', 'ц', 'Ц', 'ъ', 'ы', 'Ы', 'ь'];
function convert(str) { function convert(str) {
for (var i = 0; i < map_en.length; ++i) while (str.indexOf(map_en[i]) >= 0) str = str.replace(map_en[i], map_ru[i]); for (let i = 0; i < map_en.length; ++i) while (str.indexOf(map_en[i]) >= 0) str = str.replace(map_en[i], map_ru[i]);
return str; return str;
} }
function defPosition2(event) { function defPosition2(event) {
var isIE11 = navigator.userAgent.match(/Trident\/7.0.*rv.*11\.0/); const isIE11 = navigator.userAgent.match(/Trident\/7.0.*rv.*11\.0/);
var x = y = 0; let x = y = 0;
if (document.attachEvent != null || isIE11) { if (document.attachEvent != null || isIE11) {
x = window.event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); x = window.event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
y = window.event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); y = window.event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
@ -290,9 +290,9 @@ if ($header) {
} }
function trns() { function trns() {
var strarr; let strarr;
strarr = document.F1.text.value.split(' '); strarr = document.F1.text.value.split(' ');
for (var k = 0; k < strarr.length; k++) { for (let k = 0; k < strarr.length; k++) {
if (strarr[k].indexOf("http://") < 0 && strarr[k].indexOf('@') < 0 && strarr[k].indexOf("www.") < 0 && !(strarr[k].charAt(0) == ":" && strarr[k].charAt(strarr[k].length - 1) == ":")) { if (strarr[k].indexOf("http://") < 0 && strarr[k].indexOf('@') < 0 && strarr[k].indexOf("www.") < 0 && !(strarr[k].charAt(0) == ":" && strarr[k].charAt(strarr[k].length - 1) == ":")) {
if ((k < strarr.length - 1) && (strarr[k] == "to" || strarr[k] == "private") && (strarr[k + 1].charAt(0) == "[")) { if ((k < strarr.length - 1) && (strarr[k] == "to" || strarr[k] == "private") && (strarr[k + 1].charAt(0) == "[")) {
while ((k < strarr.length - 1) && (strarr[k].charAt(strarr[k].length - 1) != "]")) k++; while ((k < strarr.length - 1) && (strarr[k].charAt(strarr[k].length - 1) != "]")) k++;
@ -341,12 +341,12 @@ if ($header) {
function smiles() { function smiles() {
if (document.all && document.all.item && !window.opera && !document.layers) { if (document.all && document.all.item && !window.opera && !document.layers) {
var x = event.screenX - 150; const x = event.screenX - 150;
var y = event.screenY - 320; const y = event.screenY - 320;
var sFeatures = 'dialogLeft:' + x + 'px;dialogTop:' + y + 'px;dialogHeight:310px;dialogWidth:300px;help:no;status:no;unadorned:yes'; const sFeatures = 'dialogLeft:' + x + 'px;dialogTop:' + y + 'px;dialogHeight:310px;dialogWidth:300px;help:no;status:no;unadorned:yes';
window.showModelessDialog("smiles.html", window, sFeatures); window.showModelessDialog("smiles.html", window, sFeatures);
} else { } else {
var sm = ["horse", 60, 40, "hug", 48, 20, "laugh", 15, 15, "susel", 70, 34, "fingal", 22, 15, "eek", 15, 15, "flowers", 28, 29, "smoke", 20, 20, "hi", 31, 28, "bye", 15, 15, const sm = ["horse", 60, 40, "hug", 48, 20, "laugh", 15, 15, "susel", 70, 34, "fingal", 22, 15, "eek", 15, 15, "flowers", 28, 29, "smoke", 20, 20, "hi", 31, 28, "bye", 15, 15,
"king", 21, 22, "king2", 28, 24, "boks2", 28, 21, "boks", 62, 28, "gent", 15, 21, "lady", 15, 19, "tongue", 15, 15, "smil", 16, 16, "rotate", 15, 15, "king", 21, 22, "king2", 28, 24, "boks2", 28, 21, "boks", 62, 28, "gent", 15, 21, "lady", 15, 19, "tongue", 15, 15, "smil", 16, 16, "rotate", 15, 15,
"ponder", 21, 15, "bow", 15, 21, "smile", 18, 18, "angel", 42, 23, "angel2", 26, 25, "hello", 25, 27, "dont", 26, 26, "idea", 26, 27, "mol", 27, 22, "super", 26, 28, "ponder", 21, 15, "bow", 15, 21, "smile", 18, 18, "angel", 42, 23, "angel2", 26, 25, "hello", 25, 27, "dont", 26, 26, "idea", 26, 27, "mol", 27, 22, "super", 26, 28,
"beer", 15, 15, "drink", 19, 17, "baby", 15, 18, "tongue2", 15, 15, "sword", 49, 18, "agree", 37, 15, "loveya", 27, 15, "kiss", 15, 15, "kiss2", 15, 15, "kiss3", 15, 15, "kiss4", 37, 15, "rose", 15, 15, "love", 27, 28, "beer", 15, 15, "drink", 19, 17, "baby", 15, 18, "tongue2", 15, 15, "sword", 49, 18, "agree", 37, 15, "loveya", 27, 15, "kiss", 15, 15, "kiss2", 15, 15, "kiss3", 15, 15, "kiss4", 37, 15, "rose", 15, 15, "love", 27, 28,
@ -357,11 +357,11 @@ if ($header) {
"smile44", 27, 26, "smile70", 50, 32]; "smile44", 27, 26, "smile70", 50, 32];
function createMessage(body) { function createMessage(body) {
var container = document.createElement('div'); const container = document.createElement('div');
var i = 0; let i = 0;
body = ''; body = '';
while (i < sm.length) { while (i < sm.length) {
var s = sm[i++]; const s = sm[i++];
body += '<a class="hoversmile" href="javascript: void(0);" onClick="SSm(\'' + s + '\')"><IMG SRC=i/smiles/' + s + '.gif WIDTH=' + sm[i++] + ' HEIGHT=' + sm[i++] + ' BORDER=0 ALT="" ></a>'; body += '<a class="hoversmile" href="javascript: void(0);" onClick="SSm(\'' + s + '\')"><IMG SRC=i/smiles/' + s + '.gif WIDTH=' + sm[i++] + ' HEIGHT=' + sm[i++] + ' BORDER=0 ALT="" ></a>';
} }
container.innerHTML = '<div id="ssmsmilediv" class="ssm-smile"><div class="ssm-smile-body">' + body + '</div><input class="ssm-smile-ok" type="button" value="Закрыть"/></div>'; container.innerHTML = '<div id="ssmsmilediv" class="ssm-smile"><div class="ssm-smile-body">' + body + '</div><input class="ssm-smile-ok" type="button" value="Закрыть"/></div>';
@ -369,7 +369,7 @@ if ($header) {
} }
function positionMessage(elem) { function positionMessage(elem) {
var ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1) { if (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1) {
IsIE(elem); IsIE(elem);
} else { } else {
@ -380,14 +380,14 @@ if ($header) {
} }
function addCloseOnClick(messageElem) { function addCloseOnClick(messageElem) {
var input = messageElem.getElementsByTagName('INPUT')[0]; const input = messageElem.getElementsByTagName('INPUT')[0];
input.onclick = function () { input.onclick = function () {
messageElem.parentNode.removeChild(messageElem); messageElem.parentNode.removeChild(messageElem);
} }
} }
function setupMessageButton(title, body) { function setupMessageButton(title, body) {
var messageElem = createMessage(title, body); const messageElem = createMessage(title, body);
positionMessage(messageElem); positionMessage(messageElem);
addCloseOnClick(messageElem); addCloseOnClick(messageElem);
top.frames['chat'].document.body.appendChild(messageElem); top.frames['chat'].document.body.appendChild(messageElem);
@ -405,7 +405,7 @@ if ($header) {
} }
function rslength() { // изменяет размер строки ввода текста function rslength() { // изменяет размер строки ввода текста
var size = document.body.clientWidth - (2 * 30) - 66 - 256 - 30; let size = document.body.clientWidth - (2 * 30) - 66 - 256 - 30;
if (size < 100) { if (size < 100) {
size = 100 size = 100
} }
@ -420,7 +420,7 @@ if ($header) {
evt = evt || window.event; evt = evt || window.event;
evt.cancelBubble = true; evt.cancelBubble = true;
var html = '<p style="margin: 10px;"><input type="button" style="cursor: pointer;" onclick="clearfull();" value="Очистить весь чат" /><br style="margin-top: 5px;"> \ const html = '<p style="margin: 10px;"><input type="button" style="cursor: pointer;" onclick="clearfull();" value="Очистить весь чат" /><br style="margin-top: 5px;"> \
<input type="button" style="font-weight: bold; cursor: pointer;" onclick="clearpanel();" value="Очистить текущую вкладку" /><br style="margin-top: 5px;"> \ <input type="button" style="font-weight: bold; cursor: pointer;" onclick="clearpanel();" value="Очистить текущую вкладку" /><br style="margin-top: 5px;"> \
<input type="button" style="cursor: pointer;" value="Отменить" onclick="top.frames[\'chat\'].document.getElementById(\'ClearMenu\').style.display=\'none\';" /><br style="margin-top: 5px;"></p> \ <input type="button" style="cursor: pointer;" value="Отменить" onclick="top.frames[\'chat\'].document.getElementById(\'ClearMenu\').style.display=\'none\';" /><br style="margin-top: 5px;"></p> \
'; ';
@ -483,18 +483,18 @@ if ($header) {
</TABLE> </TABLE>
<script language="JavaScript"> <script language="JavaScript">
var user = top.getCookie("ChatColor"); const user = top.getCookie("ChatColor");
if ((user != null) && (user != "")) document.F1.color.value = user; if ((user != null) && (user != "")) document.F1.color.value = user;
function smiles() { function smiles() {
if (document.all && document.all.item && !window.opera && !document.layers) { if (document.all && document.all.item && !window.opera && !document.layers) {
var x = event.screenX - 150; const x = event.screenX - 150;
var y = event.screenY - 320; const y = event.screenY - 320;
var sFeatures = 'dialogLeft:' + x + 'px;dialogTop:' + y + 'px;dialogHeight:310px;dialogWidth:300px;help:no;status:no;unadorned:yes'; const sFeatures = 'dialogLeft:' + x + 'px;dialogTop:' + y + 'px;dialogHeight:310px;dialogWidth:300px;help:no;status:no;unadorned:yes';
window.showModelessDialog("smiles.html?", window, sFeatures); window.showModelessDialog("smiles.html?", window, sFeatures);
} }
else { else {
var sm = ["horse", 60, 40, "hug", 48, 20, "laugh", 15, 15, "susel", 70, 34, "fingal", 22, 15, "eek", 15, 15, "flowers", 28, 29, "smoke", 20, 20, "hi", 31, 28, "bye", 15, 15, const sm = ["horse", 60, 40, "hug", 48, 20, "laugh", 15, 15, "susel", 70, 34, "fingal", 22, 15, "eek", 15, 15, "flowers", 28, 29, "smoke", 20, 20, "hi", 31, 28, "bye", 15, 15,
"king", 21, 22, "king2", 28, 24, "boks2", 28, 21, "boks", 62, 28, "gent", 15, 21, "lady", 15, 19, "tongue", 15, 15, "smil", 16, 16, "rotate", 15, 15, "king", 21, 22, "king2", 28, 24, "boks2", 28, 21, "boks", 62, 28, "gent", 15, 21, "lady", 15, 19, "tongue", 15, 15, "smil", 16, 16, "rotate", 15, 15,
"ponder", 21, 15, "bow", 15, 21, "smile", 18, 18, "angel", 42, 23, "angel2", 26, 25, "hello", 25, 27, "dont", 26, 26, "idea", 26, 27, "mol", 27, 22, "super", 26, 28, "ponder", 21, 15, "bow", 15, 21, "smile", 18, 18, "angel", 42, 23, "angel2", 26, 25, "hello", 25, 27, "dont", 26, 26, "idea", 26, 27, "mol", 27, 22, "super", 26, 28,
"beer", 15, 15, "drink", 19, 17, "baby", 15, 18, "tongue2", 15, 15, "sword", 49, 18, "agree", 37, 15, "loveya", 27, 15, "kiss", 15, 15, "kiss2", 15, 15, "kiss3", 15, 15, "kiss4", 37, 15, "rose", 15, 15, "love", 27, 28, "beer", 15, 15, "drink", 19, 17, "baby", 15, 18, "tongue2", 15, 15, "sword", 49, 18, "agree", 37, 15, "loveya", 27, 15, "kiss", 15, 15, "kiss2", 15, 15, "kiss3", 15, 15, "kiss4", 37, 15, "rose", 15, 15, "love", 27, 28,
@ -505,11 +505,11 @@ if ($header) {
"smile44", 27, 26, "smile70", 50, 32]; "smile44", 27, 26, "smile70", 50, 32];
function createMessage(body) { function createMessage(body) {
var container = document.createElement('div'); const container = document.createElement('div');
var i = 0; let i = 0;
body = ''; body = '';
while (i < sm.length) { while (i < sm.length) {
var s = sm[i++]; const s = sm[i++];
body += '<a class="hoversmile" href="javascript:void(0)" onClick="SSm(\'' + s + '\')"><IMG SRC=i/smiles/' + s + '.gif WIDTH=' + sm[i++] + ' HEIGHT=' + sm[i++] + ' BORDER=0 ALT="" ></a>'; body += '<a class="hoversmile" href="javascript:void(0)" onClick="SSm(\'' + s + '\')"><IMG SRC=i/smiles/' + s + '.gif WIDTH=' + sm[i++] + ' HEIGHT=' + sm[i++] + ' BORDER=0 ALT="" ></a>';
} }
container.innerHTML = '<div id="ssmsmilediv" class="ssm-smile"><div class="ssm-smile-body">' + body + '</div><input class="ssm-smile-ok" type="button" value="Закрыть"/></div>'; container.innerHTML = '<div id="ssmsmilediv" class="ssm-smile"><div class="ssm-smile-body">' + body + '</div><input class="ssm-smile-ok" type="button" value="Закрыть"/></div>';
@ -517,7 +517,7 @@ if ($header) {
} }
function positionMessage(elem) { function positionMessage(elem) {
var ua = navigator.userAgent.toLowerCase(); const ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1) { if (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1) {
IsIE(elem); IsIE(elem);
} }
@ -530,14 +530,14 @@ if ($header) {
} }
function addCloseOnClick(messageElem) { function addCloseOnClick(messageElem) {
var input = messageElem.getElementsByTagName('INPUT')[0]; const input = messageElem.getElementsByTagName('INPUT')[0];
input.onclick = function () { input.onclick = function () {
messageElem.parentNode.removeChild(messageElem); messageElem.parentNode.removeChild(messageElem);
} }
} }
function setupMessageButton(title, body) { function setupMessageButton(title, body) {
var messageElem = createMessage(title, body); const messageElem = createMessage(title, body);
positionMessage(messageElem); positionMessage(messageElem);
addCloseOnClick(messageElem); addCloseOnClick(messageElem);
top.frames['chat'].document.body.appendChild(messageElem); top.frames['chat'].document.body.appendChild(messageElem);

View File

@ -102,16 +102,16 @@ if($_GET['move'] == 'true') {
<div id="systemMsg" class="system-msg"></div> <div id="systemMsg" class="system-msg"></div>
<div style="position: relative; width: 780px; height: 350px; background-image: url('forest/<?=$forest['room'];?>.jpg');"> <div style="position: relative; width: 780px; height: 350px; background-image: url('forest/<?=$forest['room'];?>.jpg');">
<? if($map_user['Right'] == 1) { ?> <? if($map_user['Right'] == 1) { ?>
<img style="position: absolute; bottom: 30px; left: 740px; cursor: pointer; width: 20px; height: 117px; border: 0px solid blue;" class="pngimg" src="i/forest/pointer_2.png" title="<?=$var_map['cell_'.($forest['room_id']+1)];?>" onclick="location.href='?move=true&Dir=Right';" /> <img style="position: absolute; bottom: 30px; left: 740px; cursor: pointer; width: 20px; height: 117px; border: 0 solid blue;" class="pngimg" src="i/forest/pointer_2.png" title="<?=$var_map['cell_'.($forest['room_id']+1)];?>" onclick="location.href='?move=true&Dir=Right';" />
<? } ?> <? } ?>
<? if($map_user['Left'] == 1) { ?> <? if($map_user['Left'] == 1) { ?>
<img style="position: absolute; bottom: 30px; left: 20px; cursor: pointer; width: 20px; height: 117px; border: 0px solid blue;" class="pngimg" src="i/forest/pointer_6.png" title="<?=$var_map['cell_'.($forest['room_id']-1)];?>" onclick="location.href='?move=true&Dir=Left';" /> <img style="position: absolute; bottom: 30px; left: 20px; cursor: pointer; width: 20px; height: 117px; border: 0 solid blue;" class="pngimg" src="i/forest/pointer_6.png" title="<?=$var_map['cell_'.($forest['room_id']-1)];?>" onclick="location.href='?move=true&Dir=Left';" />
<? } ?> <? } ?>
<? if($map_user['Down'] == 1) { ?> <? if($map_user['Down'] == 1) { ?>
<img style="position: absolute; bottom: 10px; left: 332px; cursor: pointer; width: 117px; height: 20px; border: 0px solid blue;" class="pngimg" src="i/forest/pointer_4.png" title="<?=$var_map['cell_'.($forest['room_id']+5)];?>" onclick="location.href='?move=true&Dir=Down';" /> <img style="position: absolute; bottom: 10px; left: 332px; cursor: pointer; width: 117px; height: 20px; border: 0 solid blue;" class="pngimg" src="i/forest/pointer_4.png" title="<?=$var_map['cell_'.($forest['room_id']+5)];?>" onclick="location.href='?move=true&Dir=Down';" />
<? } ?> <? } ?>
<? if($map_user['Up'] == 1) { ?> <? if($map_user['Up'] == 1) { ?>
<img style="position: absolute; bottom: 127px; left: 332px; cursor: pointer; width: 117px; height: 20px; border: 0px solid blue;" class="pngimg" src="i/forest/pointer_8.png" title="<?=$var_map['cell_'.($forest['room_id']-5)];?>" onclick="location.href='?move=true&Dir=Up';" /> <img style="position: absolute; bottom: 127px; left: 332px; cursor: pointer; width: 117px; height: 20px; border: 0 solid blue;" class="pngimg" src="i/forest/pointer_8.png" title="<?=$var_map['cell_'.($forest['room_id']-5)];?>" onclick="location.href='?move=true&Dir=Up';" />
<? } ?> <? } ?>
</div> </div>
<? if($error != '') { echo '<center><b style=\'color: Red;\'>'.$error.'</b></center>'; } ?> <? if($error != '') { echo '<center><b style=\'color: Red;\'>'.$error.'</b></center>'; } ?>

View File

@ -196,7 +196,7 @@ elseif ($in_haos['status']==0)
} }
else echo(' <em>(Создать новую группу)</em>'); else echo(' <em>(Создать новую группу)</em>');
echo '<BR />'; echo '<BR>';
} }

View File

@ -351,8 +351,6 @@ $tm=time();
$p_id=$priz_high[$rand_k]; $p_id=$priz_high[$rand_k];
$p_shop="shop"; $p_shop="shop";
} }
else
{};
} }
elseif($in_haos['room']==30) elseif($in_haos['room']==30)
{ {
@ -365,12 +363,9 @@ $tm=time();
$p_id=$priz_low[$rand_k]; $p_id=$priz_low[$rand_k];
$p_shop="shop"; $p_shop="shop";
} }
else
{}
} }
else
{};
//выбираем получателя //выбираем получателя
$all_get=array(); $all_get=array();
$gr_raw=mysql_query("SELECT * FROM `cit_haos_status` WHERE `group` = '{$in_haos['group']}';"); $gr_raw=mysql_query("SELECT * FROM `cit_haos_status` WHERE `group` = '{$in_haos['group']}';");

View File

@ -54,7 +54,7 @@ print "<script>location.href='vxod.php'</script>"; exit();
<meta http-equiv="Content-Language" content="ru"> <meta http-equiv="Content-Language" content="ru">
<link rel=stylesheet type="text/css" href="css/main.css"> <link rel=stylesheet type="text/css" href="css/main.css">
<SCRIPT LANGUAGE="JavaScript" > <SCRIPT LANGUAGE="JavaScript" >
var Hint3Name = ''; let Hint3Name = '';
// Заголовок, название скрипта, имя поля с логином // Заголовок, название скрипта, имя поля с логином
function findlogin(title, script, name){ function findlogin(title, script, name){
document.all("hint3").innerHTML = '<form action="'+script+'" method=GET style="margin:0;"><table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B style="font-size:11px">'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+ document.all("hint3").innerHTML = '<form action="'+script+'" method=GET style="margin:0;"><table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B style="font-size:11px">'+title+'</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>'+
@ -572,25 +572,26 @@ echo build_move_image($mesto, $vektor, 1, $glava);
</tr> </tr>
</table> </table>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var progressEnd = 32; // set to number of progress <span>'s. const progressEnd = 32; // set to number of progress <span>'s.
var progressColor = '#00CC00'; // set to progress bar color let progressColor = '#00CC00'; // set to progress bar color
var mtime = parseInt('<?=($_SESSION['time']-time())?>'); let mtime = parseInt('<?=($_SESSION['
if (!mtime || mtime<=0) {mtime=0;} if (!mtime || mtime<=0) {mtime=0;}
var progressInterval = Math.round(mtime*1000/progressEnd); // set to time between updates (milli-seconds) const progressInterval = Math.round(mtime * 1000 / progressEnd); // set to time between updates (milli-seconds)
var is_accessible = true; let is_accessible = true;
var progressAt = progressEnd; let progressAt = progressEnd;
var progressTimer; let progressTimer;
function progress_clear() { function progress_clear() {
for (var i = 1; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent'; for (let i = 1; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent';
progressAt = 0; progressAt = 0;
for (var t = 1; t <= 8; t++) { for (let t = 1; t <= 8; t++) {
if (document.getElementById('m'+t) ) { if (document.getElementById('m'+t) ) {
var tempname = document.getElementById('m'+t).children[0].src; const tempname = document.getElementById('m' + t).children[0].src;
if (tempname.match(/b\.gif$/)) { if (tempname.match(/b\.gif$/)) {
document.getElementById('m'+t).children[0].id = 'backend'; document.getElementById('m'+t).children[0].id = 'backend';
} }
var newname; let newname;
newname = tempname.replace(/(b)?\.gif$/,'i.gif'); newname = tempname.replace(/(b)?\.gif$/,'i.gif');
document.getElementById('m'+t).children[0].src = newname; document.getElementById('m'+t).children[0].src = newname;
@ -605,10 +606,10 @@ function progress_update() {
//if (progressAt > progressEnd) progress_clear(); //if (progressAt > progressEnd) progress_clear();
if (progressAt > progressEnd) { if (progressAt > progressEnd) {
for (var t = 1; t <= 8; t++) { for (let t = 1; t <= 8; t++) {
if (document.getElementById('m'+t) ) { if (document.getElementById('m'+t) ) {
var tempname = document.getElementById('m'+t).children[0].src; let tempname = document.getElementById('m' + t).children[0].src;
var newname; let newname;
newname = tempname.replace(/i\.gif$/,'.gif'); newname = tempname.replace(/i\.gif$/,'.gif');
if (document.getElementById('m'+t).children[0].id == 'backend') { if (document.getElementById('m'+t).children[0].id == 'backend') {
tempname = newname.replace(/\.gif$/,'b.gif'); tempname = newname.replace(/\.gif$/,'b.gif');
@ -643,7 +644,7 @@ function check_access () {
} }
function ch_counter_color (color) { function ch_counter_color (color) {
progressColor = color; progressColor = color;
for (var i = 1; i <= progressAt; i++) { for (let i = 1; i <= progressAt; i++) {
document.getElementById('progress'+i).style.backgroundColor = progressColor; document.getElementById('progress'+i).style.backgroundColor = progressColor;
} }
} }
@ -711,8 +712,9 @@ color: #000000;
<LINK REL=StyleSheet HREF='css/style.css' TYPE='text/css'> <LINK REL=StyleSheet HREF='css/style.css' TYPE='text/css'>
<script> <script>
var rnd = Math.random(); const rnd = Math.random();
function sunduk(n)
function sunduk(n)
{ {
document.location.href="?act=sunduk&n="+n+"&rnd="+Math.random(); document.location.href="?act=sunduk&n="+n+"&rnd="+Math.random();
} }
@ -741,9 +743,9 @@ function dialog()
document.location.href="?act=luka&rnd="+Math.random(); document.location.href="?act=luka&rnd="+Math.random();
} }
function OpenMenu(n,e){ function OpenMenu(n,e){
var el, x, y; let el, x, y;
el = document.all("oMenu"); el = document.all("oMenu");
var event = (window.event) ? window.event : e; const event = (window.event) ? window.event : e;
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5; x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5; y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 } if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
@ -754,9 +756,9 @@ function OpenMenu(n,e){
el.style.visibility = "visible"; el.style.visibility = "visible";
} }
function Opendialog(n,e){ function Opendialog(n,e){
var el, x, y; let el, x, y;
el = document.all("oMenu"); el = document.all("oMenu");
var event = (window.event) ? window.event : e; const event = (window.event) ? window.event : e;
x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5; x = event.clientX + document.documentElement.scrollLeft +document.body.scrollLeft - 5;
y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5; y = event.clientY + document.documentElement.scrollTop + document.body.scrollTop-5;
if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 } if (event.clientY + 72 > document.body.clientHeight) { y-=62 } else { y-=2 }
@ -771,7 +773,8 @@ function Opendialog(n,e){
function closeMenu(){ function closeMenu(){
if (window.event && window.event.toElement) if (window.event && window.event.toElement)
{var cls = window.event.toElement.className; {
const cls = window.event.toElement.className;
if (cls=='menuItem' || cls=='menu') return; if (cls=='menuItem' || cls=='menu') return;
} }
document.all("oMenu").style.visibility = "hidden"; document.all("oMenu").style.visibility = "hidden";

View File

@ -192,4 +192,3 @@ function next_step($location, $vector) {
////////////// //////////////
} }
?>

View File

@ -822,47 +822,48 @@ function test() {
</SCRIPT> </SCRIPT>
<link rel=stylesheet type="text/css" href="/i/main.css"> <link rel=stylesheet type="text/css" href="/i/main.css">
<style> <style>
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin: 0px 0px 0px 0px; } body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin: 0 0 0 0; }
.menu {z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0px; top: 0px; visibility: hidden; cursor: pointer; } .menu {z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0; top: 0; visibility: hidden; cursor: pointer; }
a.menuItem { border: 0px solid #000000; background-color: #484848; color: #000000; display: block; font-family: Verdana, Arial; font-size: 8pt; font-weight: bold; padding: 2px 12px 2px 8px; text-decoration: none; } a.menuItem { border: 0 solid #000000; background-color: #484848; color: #000000; display: block; font-family: Verdana, Arial; font-size: 8pt; font-weight: bold; padding: 2px 12px 2px 8px; text-decoration: none; }
a.menuItem:hover { background-color: #d4cbaa; color: #000000; } a.menuItem:hover { background-color: #d4cbaa; color: #000000; }
div.MoveLine { width: 108px; height: 7px; size: 2px; font-size: 2px; position: relative; overflow: hidden; } div.MoveLine { width: 108px; height: 7px; size: 2px; font-size: 2px; position: relative; overflow: hidden; }
img.MoveLine { width: 108px; height: 7px; border: 0px solid; position: absolute; left: 0px; top: 0px } img.MoveLine { width: 108px; height: 7px; border: 0 solid; position: absolute; left: 0; top: 0
}
.cw1 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/cw1.gif?1)} .cw1 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/cw1.gif?1)}
.cw2 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/cw2.gif?1)} .cw2 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/cw2.gif?1)}
.cw3 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/cw3.gif?1)} .cw3 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/cw3.gif?1)}
.cw4 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/cw4.gif?1)} .cw4 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/cw4.gif?1)}
.cw5 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/cw5.gif?1)} .cw5 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/cw5.gif?1)}
.lw0 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw0.gif)} .lw0 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw0.gif)}
.lw1 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw1.gif)} .lw1 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw1.gif)}
.lw2 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw2.gif)} .lw2 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw2.gif)}
.lw3 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw3.gif)} .lw3 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw3.gif)}
.lw4 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw4.gif)} .lw4 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw4.gif)}
.rw0 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw0.gif)} .rw0 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw0.gif)}
.rw1 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw1.gif)} .rw1 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw1.gif)}
.rw2 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw2.gif)} .rw2 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw2.gif)}
.rw3 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw3.gif)} .rw3 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw3.gif)}
.rw4 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw4.gif)} .rw4 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw4.gif)}
.lsw0 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw0.gif)} .lsw0 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw0.gif)}
.lsw1 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw1.gif)} .lsw1 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw1.gif)}
.lsw2 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw2.gif)} .lsw2 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw2.gif)}
.lsw3 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw3.gif)} .lsw3 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw3.gif)}
.lsw4 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw4.gif)} .lsw4 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw4.gif)}
.lsw42 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lsw42.gif)} .lsw42 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lsw42.gif)}
.rsw0 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw0.gif)} .rsw0 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw0.gif)}
.rsw1 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw1.gif)} .rsw1 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw1.gif)}
.rsw2 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw2.gif)} .rsw2 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw2.gif)}
.rsw3 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw3.gif)} .rsw3 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw3.gif)}
.rsw4 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw4.gif)} .rsw4 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw4.gif)}
.rsw42 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rsw42.gif)} .rsw42 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rsw42.gif)}
.lw42 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/lw42.gif)} .lw42 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/lw42.gif)}
.rw42 {position:absolute;left:0px;top:0px;width:352px;height:240px;background-image:url(<?=$base?>/rw42.gif)} .rw42 {position:absolute;left:0;top:0;width:352px;height:240px;background-image:url(<?=$base?>/rw42.gif)}
.maptd { width: 15px; height: 15px; } .maptd { width: 15px; height: 15px; }
</style> </style>
<script> <script>
@ -974,8 +975,8 @@ setHP(<?=$user['hp'];?>, <?=$user['maxhp'];?>, 100);
</head> </head>
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor="#d7d7d7" style=" background-image: url(/i/bagr.gif); width=100%; background-repeat:repeat;background-position:top" onLoad="<?=topsethp()?>"> <body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor="#d7d7d7" style=" background-image: url(/i/bagr.gif); width=100%; background-repeat:repeat;background-position:top" onLoad="<?=topsethp()?>">
<div id=hint3 class=ahint></div> <div id=hint3 class=ahint></div>
<div style="z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0px; top: 0px; visibility: hidden; cursor:pointer;" id="oMenu"></div> <div style="z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0; top: 0; visibility: hidden; cursor:pointer;" id="oMenu"></div>
<div style="z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0px; top: 0px; visibility: hidden; cursor:pointer;" id="oMenu2"></div> <div style="z-index: 100; background-color: #E4F2DF; border-style: solid; border-width: 2px; border-color: #77c3fc; position: absolute; left: 0; top: 0; visibility: hidden; cursor:pointer;" id="oMenu2"></div>
<? <?
if($user['hp'] <= 0) { if($user['hp'] <= 0) {
@ -1483,7 +1484,7 @@ function drawmap($map1, $players, $x, $y, $direction) {
<td nowrap=\"nowrap\" id=\"moveto\"> <td nowrap=\"nowrap\" id=\"moveto\">
</td></tr></TABLE>"; </td></tr></TABLE>";
$ret.="</div>"; $ret.="</div>";
$ret.="<script language=\"javascript\" type=\"text/javascript\"> $ret.= ">
var progressEnd = 108; // set to number of progress <span>'s. var progressEnd = 108; // set to number of progress <span>'s.
var progressColor = '#00CC00'; // set to progress bar color var progressColor = '#00CC00'; // set to progress bar color
var mtime = parseInt('"; var mtime = parseInt('";

View File

@ -18,4 +18,3 @@ $botnames = array(
6 => "Обезумевший крыс", 6 => "Обезумевший крыс",
7 => "Призрак короля крыс ", 7 => "Призрак короля крыс ",
8 => "Обезумевший палач"); 8 => "Обезумевший палач");
?>

View File

@ -9,4 +9,3 @@ if($user['room'] == 621) {
$caveitems[7] = array(array('id' => 1129, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 10, 'podzem' => 1)); $caveitems[7] = array(array('id' => 1129, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 10, 'podzem' => 1));
$caveitems[8] = array(array('id' => 1131, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 5, 'podzem' => 1)); $caveitems[8] = array(array('id' => 1131, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 5, 'podzem' => 1));
} }
?>

View File

@ -19,4 +19,3 @@ foreach($lomka1 as $k => $v) {
} }
} }
} }
?>

View File

@ -84,4 +84,3 @@ if(in_array($user['room'], $caverooms)) {
mysql_query("DELETE FROM `cavebots` WHERE `battle` = '".$this->battle_data["id"]."'"); mysql_query("DELETE FROM `cavebots` WHERE `battle` = '".$this->battle_data["id"]."'");
mysql_query('UNLOCK TABLES'); mysql_query('UNLOCK TABLES');
} }
?>

View File

@ -2,4 +2,3 @@
$cavedata = array(621 => array('x1' => 6, 'y1' => 11, 'dir1' => 1, 'x2' => 10, 'y2' => 8, 'dir2' => 1, 'x3' => 20, 'y3' => 4, 'dir3' => 1,'x4' => 10, 'y4' => 10, 'dir4' => 1, 'delay' => 360, 'name1' => 'Проклятый Рудник', 'name2' => 'Проклятого Рудника')); $cavedata = array(621 => array('x1' => 6, 'y1' => 11, 'dir1' => 1, 'x2' => 10, 'y2' => 8, 'dir2' => 1, 'x3' => 20, 'y3' => 4, 'dir3' => 1,'x4' => 10, 'y4' => 10, 'dir4' => 1, 'delay' => 360, 'name1' => 'Проклятый Рудник', 'name2' => 'Проклятого Рудника'));
?>

6
ch.php
View File

@ -188,7 +188,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
<title><?= $rooms[$user['room']], ' (', mysql_num_rows($data) ?>)</title> <title><?= $rooms[$user['room']], ' (', mysql_num_rows($data) ?>)</title>
</head> </head>
<body style="margin: 0px; padding: 0px; background: #EEEEEE;" onscroll="top.myscroll()" <body style="margin: 0; padding: 0; background: #EEEEEE;" onscroll="top.myscroll()"
onload="document.body.scrollTop=top.OnlineOldPosition"> onload="document.body.scrollTop=top.OnlineOldPosition">
<? if ($user['first'] != 99) { ?> <? if ($user['first'] != 99) { ?>
@ -201,7 +201,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
<center> <center>
<? if (!$_GET['rms']) { ?> <? if (!$_GET['rms']) { ?>
<div id="fixednew" <div id="fixednew"
style="position: fixed; margin: 0px; padding: 0px; z-index: 9; width: 100%; text-align: center; overflow: auto;"> style="position: fixed; margin: 0; padding: 0; z-index: 9; width: 100%; text-align: center; overflow: auto;">
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tbody> <tbody>
<tr> <tr>
@ -219,7 +219,7 @@ if (isset($_GET['online']) && $_GET['online'] != null) {
</div><br/><br/><br/> </div><br/><br/><br/>
<? } ?> <? } ?>
<div id="mmoves" <div id="mmoves"
style="background-color: #FFFFCC; visibility:hidden; overflow: visible; position: absolute; border-color: #666666; border-style: solid; border-width: 0px; padding: 0px; white-space: nowrap; display: block; vertical-align: middle; word-wrap: break-word;"></div> style="background-color: #FFFFCC; visibility:hidden; overflow: visible; position: absolute; border-color: #666666; border-style: solid; border-width: 0; padding: 0; white-space: nowrap; display: block; vertical-align: middle; word-wrap: break-word;"></div>
<? <?
if (!$_GET['room']) { if (!$_GET['room']) {
if (!isset($_GET['chview']) || $_GET['chview'] == 1) { if (!isset($_GET['chview']) || $_GET['chview'] == 1) {

View File

@ -108,17 +108,18 @@ if(isset($_GET['info'])){
<script type="text/javascript" src="/js/jquery.min.js"></script> <script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/tooltip.js"></script> <script type="text/javascript" src="/js/tooltip.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var timeStamp = <?php echo $timeStamp; ?>; let timeStamp =;
function selecttarget(scrollid){
var targertinput = document.getElementById('target'); function selecttarget(scrollid){
const targertinput = document.getElementById('target');
targertinput.value = scrollid; targertinput.value = scrollid;
var targetform = document.getElementById('formtarget'); const targetform = document.getElementById('formtarget');
targetform.submit(); targetform.submit();
} }
function show_table(title, script){ function show_table(title, script){
var choicehtml = "<form style='display:none' id='formtarget' action='" + script + "' method=POST><input type='hidden' id='target' name='target'>"; let choicehtml = "<form style='display:none' id='formtarget' action='" + script + "' method=POST><input type='hidden' id='target' name='target'>";
choicehtml += "</form><table width='100%' cellspacing='1' cellpadding='0' bgcolor='CCC3AA'>"; choicehtml += "</form><table width='100%' cellspacing='1' cellpadding='0' bgcolor='CCC3AA'>";
choicehtml += "<tr><td align='center'><B>" + title + "</td>"; choicehtml += "<tr><td align='center'><B>" + title + "</td>";
choicehtml += "<td width='20' align='right' valign='top' style='cursor: pointer' onclick='closehint3(true);'>"; choicehtml += "<td width='20' align='right' valign='top' style='cursor: pointer' onclick='closehint3(true);'>";
@ -129,8 +130,8 @@ function show_table(title, script){
function showitemschoice(title, script,al){ function showitemschoice(title, script,al){
$.get('itemschoice.php?get=1&svecha=qq&al='+al+'',function(data) { $.get('itemschoice.php?get=1&svecha=qq&al='+al+'',function(data) {
var choicehtml=show_table(title, script); const choicehtml = show_table(title, script);
var el = document.getElementById("hint3"); const el = document.getElementById("hint3");
el.innerHTML = choicehtml+data; el.innerHTML = choicehtml+data;
el.style.width = 400 + 'px'; el.style.width = 400 + 'px';
el.style.visibility = "visible"; el.style.visibility = "visible";
@ -142,7 +143,7 @@ function showitemschoice(title, script,al){
function closehint3(clearstored){ function closehint3(clearstored){
if(clearstored){ if(clearstored){
var targetform = document.getElementById('formtarget'); const targetform = document.getElementById('formtarget');
targetform.action += "&clearstored=1"; targetform.action += "&clearstored=1";
targetform.submit(); targetform.submit();
} }

View File

@ -120,7 +120,7 @@ elseif(($ccd+900)<time() && ($ccd+90+900)>=time())
$own=mysql_fetch_array(mysql_query("SELECT `value` FROM `variables` WHERE `var` = 'castle_owner' LIMIT 1;")); $own=mysql_fetch_array(mysql_query("SELECT `value` FROM `variables` WHERE `var` = 'castle_owner' LIMIT 1;"));
shuffle($zays); shuffle($zays);
$lucky=$zays[array_rand($zays)]; $lucky=$zays[array_rand($zays)];
if($lucky>0 && $lucky!=$own['vlaue']); // if($lucky>0 && $lucky!=$own['vlaue']);
mysql_query("UPDATE `variables` SET `value`='{$lucky}' WHERE `var`='castle_att';"); mysql_query("UPDATE `variables` SET `value`='{$lucky}' WHERE `var`='castle_att';");
$tmp_k=mysql_fetch_array(mysql_query("SELECT `name` FROM `clans` WHERE `id` = '{$lucky}' LIMIT 1;")); $tmp_k=mysql_fetch_array(mysql_query("SELECT `name` FROM `clans` WHERE `id` = '{$lucky}' LIMIT 1;"));

View File

@ -77,7 +77,7 @@ if($clan_acces[6][0] == 1) {
$(function() { $(function() {
$("#find").on("click", function() { $("#find").on("click", function() {
var login = $("#logins").val(); var login = $("#logins").val();
var hash = '<?=md5($user['id'].'|'.$user['login']);?>'; let hash = '<?=md5($user['
if(!login) { if(!login) {
alert('Введите логин'); alert('Введите логин');
} else { } else {
@ -101,7 +101,7 @@ $(function() {
</script> </script>
<? } ?> <? } ?>
</head> </head>
<body style="background-color: #dedede; margin: 0px; padding: 0px;"> <body style="background-color: #dedede; margin: 0; padding: 0;">
<style> <style>
td.dash { td.dash {
border-bottom-style: dotted; border-bottom-style: dotted;

View File

@ -38,7 +38,7 @@ class fbattle
создание класса и сбор основной инфы создание класса и сбор основной инфы
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
function fbattle($battle_id) function __construct($battle_id)
{ {
global $mysql, $user, $_POST, $cavedata, $caverooms, $cavebots, $party; global $mysql, $user, $_POST, $cavedata, $caverooms, $cavebots, $party;
// соединяем мускуль и юзера // соединяем мускуль и юзера
@ -1147,12 +1147,13 @@ class fbattle
unset($this->battle[$kak][$k]); unset($this->battle[$kak][$k]);
} }
} }
if ($us['battle'] == 0) {
//unset($this->battle[$k]); // if ($us['battle'] == 0) {
foreach ($this->battle as $kak => $vav) { // //unset($this->battle[$k]);
//unset($this->battle[$kak][$k]); // foreach ($this->battle as $kak => $vav) {
} // //unset($this->battle[$kak][$k]);
} // }
// }
unset($us); unset($us);
} }
// обновить битку // обновить битку
@ -1297,9 +1298,9 @@ class fbattle
////////////// //////////////
if ($this->battle_data) { if ($this->battle_data) {
$ss = @array_keys($this->battle); $ss = @array_keys($this->battle);
if ($this->user['id'] == 10022) { // if ($this->user['id'] == 10022) {
//var_dump($ss, $this->t1); // //var_dump($ss, $this->t1);
} // }
$t1life = 0; $t1life = 0;
$t2life = 0; $t2life = 0;
// проверяем живность команд // проверяем живность команд

View File

@ -2,4 +2,3 @@
$bots = array(1 => 10025, 2 => 10026, 3 => 10027, 4 => 10028, 5 => 10031, 6 => 10032, 7 => 10033, 8 => 10034); $bots = array(1 => 10025, 2 => 10026, 3 => 10027, 4 => 10028, 5 => 10031, 6 => 10032, 7 => 10033, 8 => 10034);
$botnames = array(1 => "Паук", 2 => "Тарантул", 3 => "Гигантская крыса", 4 => "Покровитель нечести", 5 => "Нечто", 6 => "Обезумевший крыс", 7 => "Призрак короля крыс ", 8 => "Обезумевший палач"); $botnames = array(1 => "Паук", 2 => "Тарантул", 3 => "Гигантская крыса", 4 => "Покровитель нечести", 5 => "Нечто", 6 => "Обезумевший крыс", 7 => "Призрак короля крыс ", 8 => "Обезумевший палач");
?>

View File

@ -9,4 +9,3 @@ if($user['room'] == 621) {
$caveitems[7] = array(array('id' => 1129, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 10, 'podzem' => 1)); $caveitems[7] = array(array('id' => 1129, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 10, 'podzem' => 1));
$caveitems[8] = array(array('id' => 1131, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 5, 'podzem' => 1)); $caveitems[8] = array(array('id' => 1131, 'from' => 'shop', 'foronetrip' => 0, 'chance' => 5, 'podzem' => 1));
} }
?>

View File

@ -20,4 +20,3 @@ foreach($lomka1 as $k => $v) {
} }
} }
} }
?>

View File

@ -79,4 +79,3 @@ if(in_array($user['room'], $caverooms)) {
mysql_query("DELETE FROM `cavebots` WHERE `battle` = '".$this->battle_data["id"]."'"); mysql_query("DELETE FROM `cavebots` WHERE `battle` = '".$this->battle_data["id"]."'");
mysql_query('UNLOCK TABLES'); mysql_query('UNLOCK TABLES');
} }
?>

View File

@ -4995,4 +4995,3 @@ class upload {
} }
} }
?>

View File

@ -282,7 +282,7 @@ TASK;
} }
$bot2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "' . $ex2[0] . '" LIMIT 1')); $bot2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "' . $ex2[0] . '" LIMIT 1'));
$bot2['id'] = $bot2['id']; //$bot2['id'] = $bot2['id']; ?!?!?!?!?!?!?!
if (isset($bot2['id'])) { if (isset($bot2['id'])) {
$x .= '&nbsp; &nbsp; &bull; <b>' . $bot2['login'] . '</b> [' . $x2 . '/' . $d['all_kill'] . ']<br />'; $x .= '&nbsp; &nbsp; &bull; <b>' . $bot2['login'] . '</b> [' . $x2 . '/' . $d['all_kill'] . ']<br />';
} else { } else {

View File

@ -520,4 +520,3 @@ class TTournament {
echo "</form>"; echo "</form>";
} }
} }
?>

View File

@ -100,7 +100,7 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
</TABLE> </TABLE>
<script> <script>
function editcontact(login, comment) { function editcontact(login, comment) {
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Редактировать контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>'; let s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Редактировать контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
s += '<table width=100% align=center bgcolor=FFF6DD><form action="contacts.php" method=POST>'; s += '<table width=100% align=center bgcolor=FFF6DD><form action="contacts.php" method=POST>';
s += '<tr><td><input type="hidden" name="friendedit" value="' + login + '">'; s += '<tr><td><input type="hidden" name="friendedit" value="' + login + '">';
s += '<input name="comment" value="' + comment + '" placeholder="Комментарий" style="width: 105px"> '; s += '<input name="comment" value="' + comment + '" placeholder="Комментарий" style="width: 105px"> ';
@ -115,7 +115,7 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
} }
function addcontact() { function addcontact() {
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><B>Добавить контакт</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>'; let s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><B>Добавить контакт</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
s += '<table width=100% bgcolor=FFF6DD align=center><form action="contacts.php" method=POST>'; s += '<table width=100% bgcolor=FFF6DD align=center><form action="contacts.php" method=POST>';
s += '<tr><td><input name="friendadd" placeholder="Логин" style="width:105px"> '; s += '<tr><td><input name="friendadd" placeholder="Логин" style="width:105px"> ';
s += '<input name="comment" placeholder="Комментарий" style="width:105px"></td></tr>'; s += '<input name="comment" placeholder="Комментарий" style="width:105px"></td></tr>';
@ -130,7 +130,7 @@ $contacts_list = db::c()->query('SELECT `friend`,`comment` FROM `friends` WHERE
} }
function removecontact() { function removecontact() {
var s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Удалить контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>'; let s = '<table width=250 bgcolor=CCC3AA><tr><td align=center><b>Удалить контакт</b></td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint();"><b>x</td></tr><tr><td colspan=2>';
s += '<table width=100% align=center bgcolor=FFF6DD><form action="contacts.php" method=POST>'; s += '<table width=100% align=center bgcolor=FFF6DD><form action="contacts.php" method=POST>';
s += '<tr><td><input name="friendremove" placeholder="Логин" style="width: 105px"> '; s += '<tr><td><input name="friendremove" placeholder="Логин" style="width: 105px"> ';
s += '<input type="submit" value="Удалить"></td></tr></form></table>'; s += '<input type="submit" value="Удалить"></td></tr></form></table>';

View File

@ -55,7 +55,7 @@ class fbattle
public $max = 70; public $max = 70;
public $err = ''; public $err = '';
function fbattle($battle_id) function __construct($battle_id)
{ {
global $user, $_POST, $cavedata, $caverooms; global $user, $_POST, $cavedata, $caverooms;
$this->user = $user; $this->user = $user;
@ -1692,9 +1692,6 @@ class fbattle
case "mech": case "mech":
$uron_vlad_me += $uid_1['mec']; $uron_vlad_me += $uid_1['mec'];
break; break;
default :
0;
break;
} }
$mfs['me']['udar'] += $uron_vlad_me; $mfs['me']['udar'] += $uron_vlad_me;

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
html { width:100%; height:100%; padding:0; margin:0;}body { width:100%; height:100%; padding:0; margin:0; overflow:hidden; /*background-image: url('../i/buttons/chat_bg.gif');*/}select,textarea,input { border: solid 1pt #B0B0B0; font-family: MS Sans Serif; font-size: 8px; color: #191970; MARGIN-BOTTOM: 2px; MARGIN-TOP: 1px;}img{ border:0px;}.text_msg { border: 1px solid #CCCCCC; font-size: 11px; color: #000000; font-family: Verdana, Arial, Helvetica, Tahoma, sans-serif;}.chatBtn1_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn1.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn1_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn1.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn2_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn2.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn2_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn2.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn4_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn4.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn4_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn4.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn5_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn5_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn5_3 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0px -59px repeat-x;; cursor:pointer;}.chatBtn6_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn6.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn6_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn6.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn7_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0px 0px repeat-x;; cursor:pointer;}.chatBtn7_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0px -30px repeat-x;; cursor:pointer;}.chatBtn7_3 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0px -60px repeat-x;; cursor:pointer;} html { width:100%; height:100%; padding:0; margin:0;}body { width:100%; height:100%; padding:0; margin:0; overflow:hidden; /*background-image: url('../i/buttons/chat_bg.gif');*/}select,textarea,input { border: solid 1pt #B0B0B0; font-family: MS Sans Serif; font-size: 8px; color: #191970; MARGIN-BOTTOM: 2px; MARGIN-TOP: 1px;}img{ border:0;} .text_msg { border: 1px solid #CCCCCC; font-size: 11px; color: #000000; font-family: Verdana, Arial, Helvetica, Tahoma, sans-serif;} .chatBtn1_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn1.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn1_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn1.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn2_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn2.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn2_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn2.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn4_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn4.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn4_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn4.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn5_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn5_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn5_3 { width:30px; height:30px; background: url('../i/buttons/chatBtn5.gif') 0 -59px repeat-x;; cursor:pointer;} .chatBtn6_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn6.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn6_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn6.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn7_1 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0 0 repeat-x;; cursor:pointer;} .chatBtn7_2 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0 -30px repeat-x;; cursor:pointer;} .chatBtn7_3 { width:30px; height:30px; background: url('../i/buttons/chatBtn7.gif') 0 -60px repeat-x;; cursor:pointer;}

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
body { body {
margin: 0px; margin: 0;
height: 100%; height: 100%;

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf ); filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf ); filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf ); filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf ); filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Chroma( Color=#c1cacf ); filter: Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Chroma( Color=#c1cacf ); filter: Chroma( Color=#c1cacf );
} }

View File

@ -7,10 +7,10 @@ DIV.Dungeon{
background: black; background: black;
} }
.Dungeon BUTTON { .Dungeon BUTTON {
border: 0px solid; border: 0 solid;
background: transparent; background: transparent;
padding: 0px; padding: 0;
margin: 0px; margin: 0;
position: absolute; position: absolute;
filter: Alpha(opacity=100),Chroma( Color=#c1cacf ); filter: Alpha(opacity=100),Chroma( Color=#c1cacf );
} }

File diff suppressed because one or more lines are too long

View File

@ -1 +1,6 @@
BODY { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}TD { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}OL { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}UL { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}LI { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}P { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}.inup { BORDER-RIGHT: #302F2A 1px double; BORDER-TOP: #302F2A 1px double; FONT-SIZE: 8pt; BORDER-LEFT: #302F2A 1px double; COLOR: #000000; BORDER-BOTTOM: #302F2A 1px double; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #DED7BD}.text { FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}H3 { FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #8f0000; FONT-FAMILY: Arial; TEXT-ALIGN: center}H4 { FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN-BOTTOM: 5px; COLOR: #8f0000; FONT-FAMILY: Arial}A:link { FONT-WEIGHT: normal; COLOR: #524936; TEXT-DECORATION: none}A:visited { FONT-WEIGHT: normal; COLOR: #633525; TEXT-DECORATION: none}A:active { FONT-WEIGHT: normal; COLOR: #77684d; TEXT-DECORATION: none}A:hover { COLOR: #68727B; TEXT-DECORATION: underline}.date { FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #007000; FONT-FAMILY: Courier; TEXT-DECORATION: none}.dsc { FONT-WEIGHT: normal; COLOR: #606060}SELECT { 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}TEXTAREA { 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}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}.pagetknum { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 1em; COLOR: #6f0000; PADDING-TOP: 0px; TEXT-DECORATION: underline}.pagenum A:link { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 1em; PADDING-TOP: 0px}.pagenum A:visited { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 1em; PADDING-TOP: 0px}.pagenum A:active { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 1em; PADDING-TOP: 0px}.pagenum A:hover { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 1em; PADDING-TOP: 0px; BACKGROUND-COLOR: white}.phpeft { PADDING-RIGHT: 0px; PADDING-LEFT: 20px; PADDING-BOTTOM: 7px; MARGIN: 0px; PADDING-TOP: 3px}.pages { BACKGROUND-COLOR: #ffefbf}IMG { BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px}TABLE { BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px}.btn { BORDER-RIGHT: #817a63 1px double; BORDER-TOP: #817a63 1px double; FONT-SIZE: 7.5pt; BORDER-LEFT: #817a63 1px double; COLOR: #dfddd3; BORDER-BOTTOM: #817a63 1px double; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #2b2b18} BODY { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}TD { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}OL { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}UL { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}LI { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}P { FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}.inup { BORDER-RIGHT: #302F2A 1px double; BORDER-TOP: #302F2A 1px double; FONT-SIZE: 8pt; BORDER-LEFT: #302F2A 1px double; COLOR: #000000; BORDER-BOTTOM: #302F2A 1px double; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #DED7BD}.text { FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif}H3 { FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #8f0000; FONT-FAMILY: Arial; TEXT-ALIGN: center}H4 { FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN-BOTTOM: 5px; COLOR: #8f0000; FONT-FAMILY: Arial}A:link { FONT-WEIGHT: normal; COLOR: #524936; TEXT-DECORATION: none}A:visited { FONT-WEIGHT: normal; COLOR: #633525; TEXT-DECORATION: none}A:active { FONT-WEIGHT: normal; COLOR: #77684d; TEXT-DECORATION: none}A:hover { COLOR: #68727B; TEXT-DECORATION: underline}.date { FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #007000; FONT-FAMILY: Courier; TEXT-DECORATION: none}.dsc { FONT-WEIGHT: normal; COLOR: #606060}SELECT { 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}TEXTAREA { 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}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}.pagetknum { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0; MARGIN: 0; WIDTH: 1em; COLOR: #6f0000; PADDING-TOP: 0; TEXT-DECORATION: underline} .pagenum A:link { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0; MARGIN: 0; WIDTH: 1em; PADDING-TOP: 0
} .pagenum A:visited { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0; MARGIN: 0; WIDTH: 1em; PADDING-TOP: 0
} .pagenum A:active { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0; MARGIN: 0; WIDTH: 1em; PADDING-TOP: 0
} .pagenum A:hover { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 0; MARGIN: 0; WIDTH: 1em; PADDING-TOP: 0; BACKGROUND-COLOR: white} .phpeft { PADDING-RIGHT: 0; PADDING-LEFT: 20px; PADDING-BOTTOM: 7px; MARGIN: 0; PADDING-TOP: 3px} .pages { BACKGROUND-COLOR: #ffefbf} IMG { BORDER-RIGHT: 0; BORDER-TOP: 0; BORDER-LEFT: 0; BORDER-BOTTOM: 0
} TABLE { BORDER-RIGHT: 0; BORDER-TOP: 0; BORDER-LEFT: 0; BORDER-BOTTOM: 0
} .btn { BORDER-RIGHT: #817a63 1px double; BORDER-TOP: #817a63 1px double; FONT-SIZE: 7.5pt; BORDER-LEFT: #817a63 1px double; COLOR: #dfddd3; BORDER-BOTTOM: #817a63 1px double; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #2b2b18}

View File

@ -1,6 +1,6 @@
body { body {
margin: 0px 1px 0px 1px; margin: 0 1px 0 1px;
padding: 0px 1px 0px 1px; padding: 0 1px 0 1px;
background-color: #DFDFD8; background-color: #DFDFD8;
color: #000000; color: #000000;
} }

View File

@ -1,6 +1,6 @@
body { body {
margin: 0px; margin: 0;
padding: 0px; padding: 0;
width:100%; width:100%;
font-family: Arial; font-family: Arial;
@ -12,12 +12,12 @@ border-collapse: collapse;
} }
td { td {
margin: 0em; margin: 0;
padding: 0em; padding: 0;
} }
img { img {
border:0px; border:0;
} }
#corners { #corners {
@ -39,7 +39,7 @@ width: 89px;
height: 18px; height: 18px;
text-align: left; text-align: left;
position: inherit; position: inherit;
padding-bottom: 0px; padding-bottom: 0;
} }
hr { hr {

View File

@ -72,7 +72,7 @@ html {
min-width: 24px; min-width: 24px;
position: relative; position: relative;
vertical-align: middle; vertical-align: middle;
padding: 0px 1px; padding: 0 1px;
cursor: pointer; cursor: pointer;
margin: 0 0 0 1px; margin: 0 0 0 1px;
font-size: 12px; font-size: 12px;
@ -90,8 +90,8 @@ html {
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on, .wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on:hover { .wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on, .wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on:hover {
background: #ccc; background: #ccc;
padding: 0px 1px; padding: 0 1px;
box-shadow: inset 0px 0px 3px #aaa; box-shadow: inset 0 0 3px #aaa;
border: 1px solid #999; border: 1px solid #999;
border-radius: 3px; border-radius: 3px;
} }
@ -139,7 +139,7 @@ html {
} }
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover { .wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover {
padding: 0px 1px; padding: 0 1px;
border: 1px solid #bbb; border: 1px solid #bbb;
/* box-shadow:-1px 1px 1px #aaa; */ /* box-shadow:-1px 1px 1px #aaa; */
border-radius: 3px; border-radius: 3px;
@ -155,7 +155,7 @@ html {
font-family: 'WysiBBiconFont'; font-family: 'WysiBBiconFont';
font-size: 18px; font-size: 18px;
line-height: 20px; line-height: 20px;
text-shadow: 0px 1px 0px #fff; text-shadow: 0 1px 0 #fff;
text-align: center; text-align: center;
/* -webkit-font-smoothing: antialiased; */ /* -webkit-font-smoothing: antialiased; */
speak: none; speak: none;
@ -174,7 +174,7 @@ html {
text-align: center; text-align: center;
position: absolute; position: absolute;
right: 0; right: 0;
top: 0px; top: 0;
border: 0; border: 0;
} }
@ -410,7 +410,7 @@ html {
display: block; display: block;
position: absolute; position: absolute;
right: 3px; right: 3px;
top: 0px; top: 0;
width: 9px; width: 9px;
height: 24px; height: 24px;
/* background: url(./img/icons.png) -8px -400px; */ /* background: url(./img/icons.png) -8px -400px; */
@ -436,7 +436,7 @@ html {
top: 24px; top: 24px;
left: -217px; left: -217px;
border: 1px solid #bbb; border: 1px solid #bbb;
box-shadow: 0px 0px 3px #aaa; box-shadow: 0 0 3px #aaa;
width: 190px; width: 190px;
padding: 5px; padding: 5px;
background: #fff; background: #fff;
@ -634,7 +634,7 @@ html {
max-height: 800px; max-height: 800px;
margin: 50px auto; margin: 50px auto;
border: 1px solid #bbb; border: 1px solid #bbb;
box-shadow: 0px 0px 10px #999; box-shadow: 0 0 10px #999;
} }
#wbbmodal .wbbm-title { #wbbmodal .wbbm-title {
@ -805,7 +805,7 @@ html {
#wbbmodal .wbbm-inp-row input { #wbbmodal .wbbm-inp-row input {
height: 26px; height: 26px;
padding: 0px 3px; padding: 0 3px;
line-height: 24px; line-height: 24px;
font-size: 12px; font-size: 12px;
width: 100%; width: 100%;

View File

@ -69,7 +69,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
#bk-logo-top #bk-logo-top
@ -80,7 +80,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 3; z-index: 3;
} }
#bk-body-top-right #bk-body-top-right
@ -91,7 +91,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
#bk-body-menu #bk-body-menu
@ -159,7 +159,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: repeat-y; background-repeat: repeat-y;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 1; z-index: 1;
} }
#bk-body-right #bk-body-right
@ -171,7 +171,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: repeat-y; background-repeat: repeat-y;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 1; z-index: 1;
} }
#bk-chat-body #bk-chat-body
@ -222,7 +222,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
#bk-chat-hr-left #bk-chat-hr-left
@ -233,7 +233,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
#bk-chat-hr-right #bk-chat-hr-right
@ -244,7 +244,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
#bk-chat-right #bk-chat-right
@ -255,7 +255,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
#bk-location-frame #bk-location-frame
@ -279,7 +279,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
.city-location-container .fireworks { .city-location-container .fireworks {
position: absolute; position: absolute;
left: 4px; left: 4px;
right: 0px; right: 0;
z-index: 1500; z-index: 1500;
top: 5px; top: 5px;
} }
@ -351,7 +351,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
#bk-buttons-right #bk-buttons-right
@ -362,7 +362,7 @@ ul.dropdown li { text-align: center; display: table-cell; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
input input
@ -416,7 +416,7 @@ input:focus::-webkit-input-placeholder
#bk-buttons-panel-right #bk-buttons-panel-right
{ {
position: absolute; position: absolute;
right: 0px; right: 0;
margin-top: 10px; margin-top: 10px;
z-index: 3; z-index: 3;
} }

View File

@ -68,7 +68,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
@ -79,7 +79,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 3; z-index: 3;
} }
@ -90,7 +90,7 @@ input[type="checkbox"]:checked + label:before {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
@ -166,7 +166,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: repeat-y; background-repeat: repeat-y;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 1; z-index: 1;
} }
@ -179,7 +179,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: repeat-y; background-repeat: repeat-y;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 1; z-index: 1;
} }
@ -234,7 +234,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
@ -246,7 +246,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
@ -258,7 +258,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
@ -270,7 +270,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }
@ -306,7 +306,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
.city-location-container .fireworks { .city-location-container .fireworks {
position: absolute; position: absolute;
left: 4px; left: 4px;
right: 0px; right: 0;
z-index: 1500; z-index: 1500;
top: 5px; top: 5px;
} }
@ -388,7 +388,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
left: 0px; left: 0;
z-index: 2; z-index: 2;
} }
@ -400,7 +400,7 @@ ul.dropdown .dropdown-inside a:hover { background: #3f423c; }
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: top center; background-position: top center;
position: absolute; position: absolute;
right: 0px; right: 0;
z-index: 2; z-index: 2;
} }

View File

@ -42,4 +42,3 @@
} }
echo "</table><input type=submit></form>"; echo "</table><input type=submit></form>";
} }
?>

View File

@ -37,12 +37,12 @@ $fbattle = new fbattle($user['battle']);
function refreshPeriodic() { function refreshPeriodic() {
<?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>';//reload(); <?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>';//reload();
<?}?> <?}?>
var timerID = setTimeout("refreshPeriodic()", 20000); const timerID = setTimeout("refreshPeriodic()", 20000);
} }
timerID = setTimeout("refreshPeriodic()", 20000); timerID = setTimeout("refreshPeriodic()", 20000);
</SCRIPT> </SCRIPT>
<script> <script>
var Hint3Name = ''; let Hint3Name = '';
function findlogin(title, script, name) { function findlogin(title, script, 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: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' + 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>' +
@ -55,8 +55,8 @@ $fbattle = new fbattle($user['battle']);
Hint3Name = name; Hint3Name = name;
} }
var attack = false; let attack = false;
var defend = false; let defend = false;
function check() { function check() {
if ((!attack) || (!defend)) { if ((!attack) || (!defend)) {
@ -81,19 +81,19 @@ $fbattle = new fbattle($user['battle']);
function refreshPeriodic() { function refreshPeriodic() {
<?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>'; <? } ?> <?php if($fbattle->battle) { ?>location.href = '<?=$_SERVER['PHP_SELF']?>?batl=<?=$_REQUEST['batl']?>'; <? } ?>
var timerID = setTimeout("refreshPeriodic()", 30000); const timerID = setTimeout("refreshPeriodic()", 30000);
} }
timerID = setTimeout("refreshPeriodic()", 30000); timerID = setTimeout("refreshPeriodic()", 30000);
function checksubmit() { function checksubmit() {
var ajaxload = 1; const ajaxload = 1;
if (ajaxload > 0) { if (ajaxload > 0) {
var enemy = <?=$fbattle->enemy;?>; let enemy =;
var batl = <?=($user['battle'] ? $user['battle'] : $_REQUEST['batl'])?>; let batl =;
var tac_at = $('input[name=attack]:checked').val(); const tac_at = $('input[name=attack]:checked').val();
var att = "&attack=" + $('input[name=attack]:checked').val(); const att = "&attack=" + $('input[name=attack]:checked').val();
var def = $('input[name=defend]:checked').val(); const def = $('input[name=defend]:checked').val();
if (tac_at >= 1 && def >= 1) { if (tac_at >= 1 && def >= 1) {
$.ajax({ $.ajax({

View File

@ -471,7 +471,7 @@ if (isset($_GET['do']) && $isModerator == true) {
<a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>"> <a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>">
<small>Удалить</small> <small>Удалить</small>
</a> | </a> |
<a onclick="var obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }" <a onclick="let obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }"
href='#'> href='#'>
<small>Комментарий</small> <small>Комментарий</small>
</a> </a>
@ -496,7 +496,7 @@ if (isset($_GET['do']) && $isModerator == true) {
<a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>"> <a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>">
<small>Удалить</small> <small>Удалить</small>
</a> </a>
<a onclick="var obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }" <a onclick="let obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }"
href='#'> href='#'>
| |
<small>Комментарий</small> <small>Комментарий</small>

View File

@ -213,13 +213,15 @@ if(isset($_POST['leaveZv'])) {
<script src="//capitalcity.old-dark.ru/js/jquery.plugins.js"></script> <script src="//capitalcity.old-dark.ru/js/jquery.plugins.js"></script>
<link rel="stylesheet" href="https://capitalcity.icombats.ru/build/css/kicker-9def406a2a.css" /> <link rel="stylesheet" href="https://capitalcity.icombats.ru/build/css/kicker-9def406a2a.css" />
<script>function growl(title, color, message, stycky) { if(!stycky) { stycky = false; } if(!color) { color = 'Red'; } $.jGrowl(message, { header: '<img src="/i/jgrowl_moover.png" class="jgrowl-moover" title="Передвинуть" style="cursor: pointer;" /> <font style="color: '+color+';">'+title+'</font>', sticky: stycky, glue: 'before' }); }</script> <script>function growl(title, color, message, stycky) { if(!stycky) { stycky = false; } if(!color) { color = 'Red'; } $.jGrowl(message, { header: '<img src="/i/jgrowl_moover.png" class="jgrowl-moover" title="Передвинуть" style="cursor: pointer;" /> <font style="color: '+color+';">'+title+'</font>', sticky: stycky, glue: 'before' }); }</script>
<script>function shows() { var clas = $("#alt").attr('class'); $("#mkgrp").toggle(); if(clas == 'show') { $("#alt").attr('class','hide'); $("#alt").text('Скрыть ...'); } else { $("#alt").attr('class','show'); $("#alt").text('Создать группу'); } }</script> <script>function shows() {
const clas = $("#alt").attr('class');
$("#mkgrp").toggle(); if(clas == 'show') { $("#alt").attr('class','hide'); $("#alt").text('Скрыть ...'); } else { $("#alt").attr('class','show'); $("#alt").text('Создать группу'); } }</script>
<link rel="stylesheet" type="text/css" href="//capitalcity.old-dark.ru/css/jquery.plugins.css" /> <link rel="stylesheet" type="text/css" href="//capitalcity.old-dark.ru/css/jquery.plugins.css" />
<style>body { background-image: url('i/r240_1.jpg'); background-repeat: no-repeat; background-position: top right; }</style> <style>body { background-image: url('i/r240_1.jpg'); background-repeat: no-repeat; background-position: top right; }</style>
</head> </head>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#e2e0e0> <body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#e2e0e0>
<table style="width: 100%; height: 100%; border: 0px;" cellspacing="0" cellpadding="0"> <table style="width: 100%; height: 100%; border: 0;" cellspacing="0" cellpadding="0">
<tr valign=top> <tr valign=top>
<td width=3% align=center>&nbsp;</td> <td width=3% align=center>&nbsp;</td>
<td> <td>
@ -267,21 +269,21 @@ if(isset($_POST['leaveZv'])) {
<div id="response"></div> <div id="response"></div>
<script> <script>
$(function() { $(function() {
var level = <?=(int)$user['level'];?>; let level =;
$('#rate').load('ajax/rate_ruins.php?level='+level); $('#rate').load('ajax/rate_ruins.php?level='+level);
$.jGrowl.defaults.closerTemplate = '<div style="text-align: center; cursor: pointer;"><b>[ Закрыть ]</b></div>'; $.jGrowl.defaults.closerTemplate = '<div style="text-align: center; cursor: pointer;"><b>[ Закрыть ]</b></div>';
$.jGrowl.defaults.closeTemplate = '<img src="i/clear.gif" alt="x" title="Закрыть" />'; $.jGrowl.defaults.closeTemplate = '<img src="i/clear.gif" alt="x" title="Закрыть" />';
$('body').delegate('div#jGrowl .jgrowl-moover', 'click', function() { $('body').delegate('div#jGrowl .jgrowl-moover', 'click', function() {
var j = $(this).closest('div#jGrowl'); const j = $(this).closest('div#jGrowl');
var c = j.hasClass('top-right') ? 'top-left' : 'top-right'; const c = j.hasClass('top-right') ? 'top-left' : 'top-right';
j.removeClass('top-left top-right').addClass(c); j.removeClass('top-left top-right').addClass(c);
}); });
$("#rate").on("click", "a", function(e) { $("#rate").on("click", "a", function(e) {
var level = $(this).attr("id"); const level = $(this).attr("id");
$('#rate').load('ajax/rate_ruins.php?level='+level); $('#rate').load('ajax/rate_ruins.php?level='+level);
}); });

View File

@ -91,8 +91,8 @@
<script src="http://www.tadot.ru//j/jquery/jquery.jeegoocontext.mod.js" type="text/javascript"></script> <script src="http://www.tadot.ru//j/jquery/jquery.jeegoocontext.mod.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var isBattle = Number(<?= $user['battle'] ?>); const isBattle = Number(<?= $user['battle'] ?
var isBid = Number(<?= $user['zayavka'] ?>); const isBid = Number(<?= $user['zayavka'] ?
</script> </script>
<script src="http://www.tadot.ru//js/iner.js" type="text/javascript"></script> <script src="http://www.tadot.ru//js/iner.js" type="text/javascript"></script>
@ -705,7 +705,7 @@ if(in_array($me_room, $ar_150)){ $me_150 = 1; }
if(!in_array($serch_room, $ar_all)){ } // if(!in_array($serch_room, $ar_all)){ }
echo '<li>"'.$locations_normal[$serch_room].'"</li>'; echo '<li>"'.$locations_normal[$serch_room].'"</li>';
@ -732,18 +732,18 @@ if(in_array($me_room, $ar_150)){ $me_150 = 1; }
?> ?>
<script> <script>
var pages = Number(2); const pages = Number(2);
var current_page = Number(0); const current_page = Number(0);
var link_to = '?page=__id__&rows_on_page=20&source=3&co_type=&sort_by=2&cs_status=1&rand=0.692136749814743'; const link_to = '?page=__id__&rows_on_page=20&source=3&co_type=&sort_by=2&cs_status=1&rand=0.692136749814743';
var page = Number(<?= $_GET['page'] ?>); const page = Number(<?= $_GET['page'] ?
var selstatus = Number(<?= $_GET['selstatus'] ?>); const selstatus = Number(<?= $_GET['selstatus'] ?
$(function(){ $(function(){
var headCheckbox = $('#pal_otvet thead :checkbox'); const headCheckbox = $('#pal_otvet thead :checkbox');
var bodyCheckboxes = $('#pal_otvet tbody :checkbox'); const bodyCheckboxes = $('#pal_otvet tbody :checkbox');
headCheckbox.click(function() { headCheckbox.click(function() {
if(this.checked) { if(this.checked) {
@ -754,20 +754,16 @@ $(function(){
}); });
bodyCheckboxes.click(function() { bodyCheckboxes.click(function() {
if(bodyCheckboxes.length == bodyCheckboxes.filter(':checked').length) { headCheckbox[0].checked = bodyCheckboxes.length === bodyCheckboxes.filter(':checked').length;
headCheckbox[0].checked = true;
} else {
headCheckbox[0].checked = false;
}
}); });
$('#pal_otvet input.xbutton').click(function() { $('#pal_otvet input.xbutton').click(function() {
var comment = getDialog(); const comment = getDialog();
comment.dialog('option', 'title', 'Комментарий Паладина'); comment.dialog('option', 'title', 'Комментарий Паладина');
var form = $.buildForm({ const form = $.buildForm({
'fields': [ 'fields': [
{ {
'name': 'page', 'name': 'page',
@ -778,7 +774,7 @@ $(function(){
}, { }, {
'name': 'choosen_question', 'name': 'choosen_question',
'value': $(this).data('id') 'value': $(this).data('id')
},{ }, {
'label': 'Комментарий', 'label': 'Комментарий',
'group': [ 'group': [
{ {

View File

@ -223,7 +223,7 @@ if($_GET['unsleep'] && $user['sleep'] > 0) {
</div> </div>
<fieldset class="hostelRules" style="overflow: hidden;"> <fieldset class="hostelRules" style="overflow: hidden;">
<legend>Правила проживания</legend> <legend>Правила проживания</legend>
<div style="overflow: auto; height: 168px !important; margin: 0px; padding: 0;"> <div style="overflow: auto; height: 168px !important; margin: 0; padding: 0;">
<div style="margin: 0; padding: 0; height: 100%;"> <div style="margin: 0; padding: 0; height: 100%;">
<h2>И что я получу за свои кровные?</h2> <h2>И что я получу за свои кровные?</h2>
У нас ты можешь: У нас ты можешь:

View File

@ -378,7 +378,7 @@ label{
</style> </style>
<script> <script>
function hide_this(id) { function hide_this(id) {
var node = document.getElementById(id); const node = document.getElementById(id);
if(node) { if(node) {
node.style.display = 'none'; node.style.display = 'none';
}; };

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -1,4 +1,3 @@
<? <?
$host=GetEnv("HTTP_HOST"); $host=GetEnv("HTTP_HOST");
Header("Location: http://$host"); Header("Location: http://$host");
?>

View File

@ -56,4 +56,3 @@ $coma[] = "Прям как рыбка теперь, только рот откр
else { else {
echo "<font color=red><b>Персонаж \"{$target}\" не существует!<b></font>"; echo "<font color=red><b>Персонаж \"{$target}\" не существует!<b></font>";
} }
?>

View File

@ -1,61 +1,71 @@
// Simple Set Clipboard System // Simple Set Clipboard System
// Author: Joseph Huckaby // Author: Joseph Huckaby
var ZeroClipboard = { const ZeroClipboard = {
version: "1.0.6", version: "1.0.6",
clients: {}, // registered upload clients on page, indexed by id clients: {}, // registered upload clients on page, indexed by id
moviePath: 'i/popup/ZeroClipboard.swf', // URL to movie moviePath: 'i/popup/ZeroClipboard.swf', // URL to movie
nextId: 1, // ID of next movie nextId: 1, // ID of next movie
$: function(thingy) { $: function (thingy) {
// simple DOM lookup utility function // simple DOM lookup utility function
if (typeof(thingy) == 'string') thingy = document.getElementById(thingy); if (typeof(thingy) == 'string') thingy = document.getElementById(thingy);
if (!thingy.addClass) { if (!thingy.addClass) {
// extend element with a few useful methods // extend element with a few useful methods
thingy.hide = function() { this.style.display = 'none'; }; thingy.hide = function () {
thingy.show = function() { this.style.display = ''; }; this.style.display = 'none';
thingy.addClass = function(name) { this.removeClass(name); this.className += ' ' + name; }; };
thingy.removeClass = function(name) { thingy.show = function () {
var classes = this.className.split(/\s+/); this.style.display = '';
var idx = -1; };
for (var k = 0; k < classes.length; k++) { thingy.addClass = function (name) {
if (classes[k] == name) { idx = k; k = classes.length; } this.removeClass(name);
this.className += ' ' + name;
};
thingy.removeClass = function (name) {
const classes = this.className.split(/\s+/);
let idx = -1;
for (let k = 0; k < classes.length; k++) {
if (classes[k] == name) {
idx = k;
k = classes.length;
}
} }
if (idx > -1) { if (idx > -1) {
classes.splice( idx, 1 ); classes.splice(idx, 1);
this.className = classes.join(' '); this.className = classes.join(' ');
} }
return this; return this;
}; };
thingy.hasClass = function(name) { thingy.hasClass = function (name) {
return !!this.className.match( new RegExp("\\s*" + name + "\\s*") ); return !!this.className.match(new RegExp("\\s*" + name + "\\s*"));
}; };
} }
return thingy; return thingy;
}, },
setMoviePath: function(path) { setMoviePath: function (path) {
// set path to ZeroClipboard.swf // set path to ZeroClipboard.swf
this.moviePath = path; this.moviePath = path;
}, },
dispatch: function(id, eventName, args) { dispatch: function (id, eventName, args) {
// receive event from flash movie, send to client // receive event from flash movie, send to client
var client = this.clients[id]; const client = this.clients[id];
if (client) { if (client) {
client.receiveEvent(eventName, args); client.receiveEvent(eventName, args);
} }
}, },
register: function(id, client) { register: function (id, client) {
// register new client to receive events // register new client to receive events
this.clients[id] = client; this.clients[id] = client;
}, },
getDOMObjectPosition: function(obj, stopObj) { getDOMObjectPosition: function (obj, stopObj) {
// get absolute coordinates for dom element // get absolute coordinates for dom element
var info = { const info = {
left: 0, left: 0,
top: 0, top: 0,
width: obj.width ? obj.width : obj.offsetWidth, width: obj.width ? obj.width : obj.offsetWidth,
@ -71,7 +81,7 @@ var ZeroClipboard = {
return info; return info;
}, },
Client: function(elem) { Client: function (elem) {
// constructor for new simple upload client // constructor for new simple upload client
this.handlers = {}; this.handlers = {};
@ -103,7 +113,7 @@ ZeroClipboard.Client.prototype = {
this.domElement = ZeroClipboard.$(elem); this.domElement = ZeroClipboard.$(elem);
// float just above object, or zIndex 99 if dom element isn't set // float just above object, or zIndex 99 if dom element isn't set
var zIndex = 99; let zIndex = 99;
if (this.domElement.style.zIndex) { if (this.domElement.style.zIndex) {
zIndex = parseInt(this.domElement.style.zIndex, 10) + 1; zIndex = parseInt(this.domElement.style.zIndex, 10) + 1;
} }
@ -116,11 +126,11 @@ ZeroClipboard.Client.prototype = {
} }
// find X/Y position of domElement // find X/Y position of domElement
var box = ZeroClipboard.getDOMObjectPosition(this.domElement, appendElem); const box = ZeroClipboard.getDOMObjectPosition(this.domElement, appendElem);
// create floating DIV above element // create floating DIV above element
this.div = document.createElement('div'); this.div = document.createElement('div');
var style = this.div.style; const style = this.div.style;
style.position = 'absolute'; style.position = 'absolute';
style.left = '' + box.left + 'px'; style.left = '' + box.left + 'px';
style.top = '' + box.top + 'px'; style.top = '' + box.top + 'px';
@ -143,14 +153,14 @@ ZeroClipboard.Client.prototype = {
getHTML: function(width, height) { getHTML: function(width, height) {
// return HTML for movie // return HTML for movie
var html = ''; let html = '';
var flashvars = 'id=' + this.id + const flashvars = 'id=' + this.id +
'&width=' + width + '&width=' + width +
'&height=' + height; '&height=' + height;
if (navigator.userAgent.match(/MSIE/)) { if (navigator.userAgent.match(/MSIE/)) {
// IE gets an OBJECT tag // IE gets an OBJECT tag
var protocol = location.href.match(/^https/i) ? 'https://' : 'http://'; const protocol = location.href.match(/^https/i) ? 'https://' : 'http://';
html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+flashvars+'"/><param name="wmode" value="transparent"/></object>'; html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+flashvars+'"/><param name="wmode" value="transparent"/></object>';
} }
else { else {
@ -179,9 +189,11 @@ ZeroClipboard.Client.prototype = {
this.hide(); this.hide();
this.div.innerHTML = ''; this.div.innerHTML = '';
var body = document.getElementsByTagName('body')[0]; const body = document.getElementsByTagName('body')[0];
try { body.removeChild( this.div ); } catch(e) {;} try {
body.removeChild(this.div);
} catch (e) {
}
this.domElement = null; this.domElement = null;
this.div = null; this.div = null;
} }
@ -196,8 +208,8 @@ ZeroClipboard.Client.prototype = {
} }
if (this.domElement && this.div) { if (this.domElement && this.div) {
var box = ZeroClipboard.getDOMObjectPosition(this.domElement); const box = ZeroClipboard.getDOMObjectPosition(this.domElement);
var style = this.div.style; const style = this.div.style;
style.left = '' + box.left + 'px'; style.left = '' + box.left + 'px';
style.top = '' + box.top + 'px'; style.top = '' + box.top + 'px';
} }
@ -290,8 +302,10 @@ ZeroClipboard.Client.prototype = {
} // switch eventName } // switch eventName
if (this.handlers[eventName]) { if (this.handlers[eventName]) {
for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) { let idx = 0;
var func = this.handlers[eventName][idx]; const len = this.handlers[eventName].length;
for (; idx < len; idx++) {
const func = this.handlers[eventName][idx];
if (typeof(func) == 'function') { if (typeof(func) == 'function') {
// actual function reference // actual function reference

View File

@ -4,7 +4,7 @@ function ajaxLoad(url, iid, params) {
xmlHttpp[iid] = GetXmlHttpObject1(); xmlHttpp[iid] = GetXmlHttpObject1();
if(xmlHttpp[iid] == null){ if(xmlHttpp[iid] == null){
alert("Browser does not support HTTP Request") alert("Browser does not support HTTP Request");
return return
} }
@ -50,7 +50,7 @@ function ajaxLoad(url, iid, params) {
} }
$(window).trigger('ajaxLoadComplete'); $(window).trigger('ajaxLoadComplete');
} }
} };
xmlHttpp[iid].setRequestHeader("Accept-Charset", "windows-1251"); xmlHttpp[iid].setRequestHeader("Accept-Charset", "windows-1251");
xmlHttpp[iid].setRequestHeader("Accept-Language", "ru, en"); xmlHttpp[iid].setRequestHeader("Accept-Language", "ru, en");

View File

@ -26,6 +26,9 @@ var flagpop=0;
cMenu(); cMenu();
} ); } );
/**
* @return {boolean}
*/
function OpenMenu(evt,level){ function OpenMenu(evt,level){
evt = evt || window.event; evt = evt || window.event;
evt.cancelBubble = true; evt.cancelBubble = true;

View File

@ -2,7 +2,7 @@ var sml_img = { };
Element.prototype.remove = function() { Element.prototype.remove = function() {
this.parentElement.removeChild(this); this.parentElement.removeChild(this);
} };
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
for(var i = 0, len = this.length; i < len; i++) { for(var i = 0, len = this.length; i < len; i++) {
@ -10,7 +10,7 @@ NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
this[i].parentElement.removeChild(this[i]); this[i].parentElement.removeChild(this[i]);
} }
} }
} };
var chat = { var chat = {
key:'', key:'',
@ -650,12 +650,7 @@ var chat = {
}, },
isNumber:function(s) isNumber:function(s)
{ {
if(!isNaN(s)) s = !isNaN(s);
{
s = true;
}else{
s = false;
}
return s; return s;
}, },
testSmile:function(txt) testSmile:function(txt)
@ -744,7 +739,7 @@ var chat = {
}else if(this.sound == 2) { }else if(this.sound == 2) {
svolm = 100; svolm = 100;
} }
var M$ = navigator.appName.indexOf("Microsoft")!=-1 var M$ = navigator.appName.indexOf("Microsoft")!=-1;
if(!M$ && this.getSwf('Sound').SetVariable == undefined) { if(!M$ && this.getSwf('Sound').SetVariable == undefined) {
document.getElementById('Sound2').SetVariable("Volume",svolm); document.getElementById('Sound2').SetVariable("Volume",svolm);
document.getElementById('Sound2').SetVariable("Sndplay",s); document.getElementById('Sound2').SetVariable("Sndplay",s);
@ -754,7 +749,7 @@ var chat = {
} }
}, },
getSwf:function(val) { getSwf:function(val) {
var M$ = navigator.appName.indexOf("Microsoft")!=-1 var M$ = navigator.appName.indexOf("Microsoft")!=-1;
return (M$ ? window : document)[val] return (M$ ? window : document)[val]
}, },
trim:function(s) trim:function(s)
@ -830,4 +825,4 @@ var chat = {
if(data.key!=undefined){ this.key = data.key; } if(data.key!=undefined){ this.key = data.key; }
} }
} };

View File

@ -60,9 +60,9 @@ function dump(arr,level) {
Загрузить HTML в контейнер Загрузить HTML в контейнер
*/ */
function ajaxLoad(url,iid,params){ function ajaxLoad(url,iid,params){
xmlHttpp[iid]=GetXmlHttpObject1() xmlHttpp[iid]=GetXmlHttpObject1();
if (xmlHttpp[iid]==null){ if (xmlHttpp[iid]==null){
alert ("Browser does not support HTTP Request") alert ("Browser does not support HTTP Request");
return return
} }
//document.getElementById(iid).innerHTML="<img src='./i/loading2.gif' />"; //document.getElementById(iid).innerHTML="<img src='./i/loading2.gif' />";
@ -75,7 +75,7 @@ function ajaxLoad(url,iid,params){
if(xmlHttpp[iid].responseText.indexOf('<!--CONTAINER=') == 0){ if(xmlHttpp[iid].responseText.indexOf('<!--CONTAINER=') == 0){
var a = xmlHttpp[iid].responseText.indexOf('-->'); var a = xmlHttpp[iid].responseText.indexOf('-->');
if(a >= 0){ if(a >= 0){
var b = xmlHttpp[iid].responseText.substr(14,a-14) var b = xmlHttpp[iid].responseText.substr(14,a-14);
if(document.getElementById(b) != undefined){ if(document.getElementById(b) != undefined){
container = document.getElementById(b); container = document.getElementById(b);
} else{ } else{
@ -110,7 +110,7 @@ function ajaxLoad(url,iid,params){
// Вызываем своё событие // Вызываем своё событие
$(window).trigger('ajaxLoadComplete'); $(window).trigger('ajaxLoadComplete');
} }
} };
xmlHttpp[iid].setRequestHeader("Accept-Charset", "windows-1251"); xmlHttpp[iid].setRequestHeader("Accept-Charset", "windows-1251");
xmlHttpp[iid].setRequestHeader("Accept-Language","ru, en"); xmlHttpp[iid].setRequestHeader("Accept-Language","ru, en");
xmlHttpp[iid].setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlHttpp[iid].setRequestHeader("Content-Type","application/x-www-form-urlencoded");
@ -155,7 +155,7 @@ appearance = {
error: function(){ error: function(){
$('div#appearance_out').text('error'); $('div#appearance_out').text('error');
} }
} };
core = { core = {
@ -202,7 +202,7 @@ core = {
document.location = document.location; document.location = document.location;
} }
} };
function str_replace ( search, replace, subject ) { function str_replace ( search, replace, subject ) {
if(!(replace instanceof Array)){ if(!(replace instanceof Array)){

View File

@ -145,14 +145,14 @@ ImageSizeDetector.init = function (src, callback) {
if (callback) { if (callback) {
callback(); callback();
} }
} };
ImageSizeDetector.isNotEmpty = function () { ImageSizeDetector.isNotEmpty = function () {
return ImageSizeDetector.width != null && ImageSizeDetector.width > 0 && return ImageSizeDetector.width != null && ImageSizeDetector.width > 0 &&
ImageSizeDetector.height != null && ImageSizeDetector.height > 0; ImageSizeDetector.height != null && ImageSizeDetector.height > 0;
} };
ImageSizeDetector.isEmpty = function () { ImageSizeDetector.isEmpty = function () {
return !ImageSizeDetector.isNotEmpty(); return !ImageSizeDetector.isNotEmpty();
} };
SmileParser = new Object(); SmileParser = new Object();
SmileParser.map = null; SmileParser.map = null;
@ -174,7 +174,7 @@ SmileParser.init = function (callback) {
} }
}); });
} };
SmileParser.replace = function (str) { SmileParser.replace = function (str) {
var result = str; var result = str;
for (smileCode in SmileParser.map) { for (smileCode in SmileParser.map) {
@ -186,14 +186,14 @@ SmileParser.replace = function (str) {
result = result.replace(smileCode, "<img src='" + smileURL + "'/>"); result = result.replace(smileCode, "<img src='" + smileURL + "'/>");
} }
return result; return result;
} };
SmileParser.proceed = function () { SmileParser.proceed = function () {
jQuery("p.pleft").each(function (index, value) { jQuery("p.pleft").each(function (index, value) {
var html = jQuery(value).html(); var html = jQuery(value).html();
jQuery(value).html(SmileParser.replace(html)); jQuery(value).html(SmileParser.replace(html));
}); });
} };
SmileParser.smileList = []; SmileParser.smileList = [];
SmileParser.prepareSmileList = function () { SmileParser.prepareSmileList = function () {
SmileParser.smileList = []; SmileParser.smileList = [];
@ -207,13 +207,13 @@ SmileParser.prepareSmileList = function () {
SmileParser.smileList.push(smileListItem); SmileParser.smileList.push(smileListItem);
} }
return SmileParser.smileList; return SmileParser.smileList;
} };
SmileParser.oldMap = { SmileParser.oldMap = {
":)":"/i/forum/icon7.gif", ":)":"/i/forum/icon7.gif",
":(":"/i/smile/grust.gif", ":(":"/i/smile/grust.gif",
":D":"/i/smile/laugh.gif", ":D":"/i/smile/laugh.gif",
";)":"/i/smile/wink.gif" ";)":"/i/smile/wink.gif"
} };
function storeCaret(text) { function storeCaret(text) {
if (text.createTextRange) { if (text.createTextRange) {
@ -254,7 +254,7 @@ function cs(s1, s2, formname) {
} else { } else {
if ((str.text != "") && (s.indexOf(str.text) >= 0)) { if ((str.text != "") && (s.indexOf(str.text) >= 0)) {
if (str.text.indexOf(s1) == 0) if (str.text.indexOf(s1) == 0)
return '' return '';
str.text = s1 + str.text + s2; str.text = s1 + str.text + s2;
} else { } else {
if (document[formname].text.createTextRange if (document[formname].text.createTextRange
@ -365,4 +365,4 @@ var $addFavoriteSet = function () {
}); });
}); });
}); });
} };

View File

@ -15,9 +15,9 @@ jQuery.cookie = function(name, value, options) {
value = ''; value = '';
options.expires = -1; options.expires = -1;
} }
var expires = ''; let expires = '';
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
var date; let date;
if (typeof options.expires == 'number') { if (typeof options.expires == 'number') {
date = new Date(); date = new Date();
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
@ -29,16 +29,16 @@ jQuery.cookie = function(name, value, options) {
// CAUTION: Needed to parenthesize options.path and options.domain // CAUTION: Needed to parenthesize options.path and options.domain
// in the following expressions, otherwise they evaluate to undefined // in the following expressions, otherwise they evaluate to undefined
// in the packed version for some reason... // in the packed version for some reason...
var path = options.path ? '; path=' + (options.path) : ''; const path = options.path ? '; path=' + (options.path) : '';
var domain = options.domain ? '; domain=' + (options.domain) : ''; const domain = options.domain ? '; domain=' + (options.domain) : '';
var secure = options.secure ? '; secure' : ''; const secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie } else { // only name given, get cookie
var cookieValue = null; let cookieValue = null;
if (document.cookie && document.cookie != '') { if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';'); const cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) { for (let i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]); const cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want? // Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) { if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); cookieValue = decodeURIComponent(cookie.substring(name.length + 1));

2
js/jquery.js vendored
View File

@ -3537,7 +3537,7 @@ var Expr = Sizzle.selectors = {
match[3] = Sizzle(match[3], null, null, curLoop); match[3] = Sizzle(match[3], null, null, curLoop);
} else { } else {
var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); var ret = Sizzle.filter(match[3], curLoop, inplace, !not);
if ( !inplace ) { if ( !inplace ) {
result.push.apply( result, ret ); result.push.apply( result, ret );

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@
(function($){ (function($){
$.fn.tipTip = function(options) { $.fn.tipTip = function(options) {
var defaults = { const defaults = {
activation: "hover", activation: "hover",
keepAlive: false, keepAlive: false,
maxWidth: "150px", maxWidth: "150px",
@ -32,10 +32,12 @@
fadeOut: 200, fadeOut: 200,
attribute: "title", attribute: "title",
content: false, // HTML or String to fill TipTIp with content: false, // HTML or String to fill TipTIp with
enter: function(){}, enter: function () {
exit: function(){} },
exit: function () {
}
}; };
var opts = $.extend(defaults, options); const opts = $.extend(defaults, options);
// Setup tip tip elements and render them to the DOM // Setup tip tip elements and render them to the DOM
if($("#tiptip_holder").length <= 0){ if($("#tiptip_holder").length <= 0){
@ -50,7 +52,7 @@
} }
return this.each(function(){ return this.each(function(){
var org_elem = $(this); const org_elem = $(this);
if(opts.content){ if(opts.content){
var org_title = opts.content; var org_title = opts.content;
} else { } else {
@ -60,7 +62,7 @@
if(!opts.content){ if(!opts.content){
org_elem.removeAttr(opts.attribute); //remove original Attribute org_elem.removeAttr(opts.attribute); //remove original Attribute
} }
var timeout = false; let timeout = false;
if(opts.activation == "hover"){ if(opts.activation == "hover"){
org_elem.hover(function(){ org_elem.hover(function(){
@ -103,19 +105,19 @@
tiptip_holder.hide().removeAttr("class").css("margin","0"); tiptip_holder.hide().removeAttr("class").css("margin","0");
tiptip_arrow.removeAttr("style"); tiptip_arrow.removeAttr("style");
var top = parseInt(org_elem.offset()['top']); const top = parseInt(org_elem.offset()['top']);
var left = parseInt(org_elem.offset()['left']); const left = parseInt(org_elem.offset()['left']);
var org_width = parseInt(org_elem.outerWidth()); const org_width = parseInt(org_elem.outerWidth());
var org_height = parseInt(org_elem.outerHeight()); const org_height = parseInt(org_elem.outerHeight());
var tip_w = tiptip_holder.outerWidth(); const tip_w = tiptip_holder.outerWidth();
var tip_h = tiptip_holder.outerHeight(); const tip_h = tiptip_holder.outerHeight();
var w_compare = Math.round((org_width - tip_w) / 2); const w_compare = Math.round((org_width - tip_w) / 2);
var h_compare = Math.round((org_height - tip_h) / 2); const h_compare = Math.round((org_height - tip_h) / 2);
var marg_left = Math.round(left + w_compare); let marg_left = Math.round(left + w_compare);
var marg_top = Math.round(top + org_height + opts.edgeOffset); let marg_top = Math.round(top + org_height + opts.edgeOffset);
var t_class = ""; let t_class = "";
var arrow_top = ""; let arrow_top = "";
var arrow_left = Math.round(tip_w - 12) / 2; let arrow_left = Math.round(tip_w - 12) / 2;
if(opts.defaultPosition == "bottom"){ if(opts.defaultPosition == "bottom"){
t_class = "_bottom"; t_class = "_bottom";
@ -127,8 +129,8 @@
t_class = "_right"; t_class = "_right";
} }
var right_compare = (w_compare + left) < parseInt($(window).scrollLeft()); let right_compare = (w_compare + left) < parseInt($(window).scrollLeft());
var left_compare = (tip_w + left) > parseInt($(window).width()); let left_compare = (tip_w + left) > parseInt($(window).width());
if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){ if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){
t_class = "_right"; t_class = "_right";
@ -147,8 +149,8 @@
marg_top = Math.round(top + h_compare); marg_top = Math.round(top + h_compare);
} }
var top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop()); let top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop());
var bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0; let bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0;
if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){ if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){
if(t_class == "_top" || t_class == "_bottom"){ if(t_class == "_top" || t_class == "_bottom"){
@ -178,7 +180,7 @@
} }
tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": 200+arrow_top+"px"}); tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": 200+arrow_top+"px"});
var art_top = top + org_height - tip_h/2; let art_top = top + org_height - tip_h / 2;
if(art_top < 0){art_top=10;} if(art_top < 0){art_top=10;}
// old one - marg_top // old one - marg_top
tiptip_holder.css({"margin-left": marg_left+10+"px", "margin-top": art_top+"px"}).attr("class","tip"); tiptip_holder.css({"margin-left": marg_left+10+"px", "margin-top": art_top+"px"}).attr("class","tip");

View File

@ -320,7 +320,7 @@ body { margin-left: 5px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px;
<body bgcolor=#e2e0e0 > <body bgcolor=#e2e0e0 >
<div style="float: right;"> <div style="float: right;">
<input type="button" onclick="location.href='lab_enter.php';" value="Обновить" /> &nbsp; <input type="button" onclick="location.href='?exitlaba=1';" value="Покинуть вход" /></div> <input type="button" onclick="location.href='lab_enter.php';" value="Обновить" /> &nbsp; <input type="button" onclick="location.href='?exitlaba=1';" value="Покинуть вход" /></div>
<div style="padding-left: 0px;" align="center"> <div style="padding-left: 0;" align="center">
<h3>Вход в Лабиринты</h3> <h3>Вход в Лабиринты</h3>
</div> </div>
<? <?

View File

@ -391,7 +391,7 @@ if($user['room'] == 1052) {
} }
if($var['obj']['use'] > 0) { if($var['obj']['use'] > 0) {
mysql_query('UPDATE `laba_obj` SET `use` = "'.$var['obj']['use'].'" WHERE `id` = "'.$var['obj']['id'].'" LIMIT 1'); mysql_query('UPDATE `laba_obj` SET `use` = "'.$var['obj']['use'].'" WHERE `id` = "'.$var['obj']['id'].'" LIMIT 1');
$var['obj']['use'] = $var['obj']['use']; #$var['obj']['use'] = $var['obj']['use']; ?!?!?!?!?!
} }
} else { } else {
$errors = '<font color=red><b>Кто-то уже использовал это до Вас...</b></font>'; $errors = '<font color=red><b>Кто-то уже использовал это до Вас...</b></font>';
@ -614,7 +614,7 @@ $('body').keydown(function(event) {
} }
}); });
var update = true; const update = true;
$('body').keydown(function( event ) { $('body').keydown(function( event ) {
if( event.which == 37 || event.which == 65 ) { if( event.which == 37 || event.which == 65 ) {
if(update == true){ if(update == true){
@ -639,7 +639,9 @@ $('body').keydown(function( event ) {
} }
}); });
var delay = 30, TimerOn = -1, tkHP, maxHP, speed = 750, stLen = 185, redHP = 0.33, yellowHP = 0.66; const delay = 30;
let TimerOn = -1, tkHP, maxHP, speed = 750;
const stLen = 185, redHP = 0.33, yellowHP = 0.66;
function setHP(a, b, c) { function setHP(a, b, c) {
tkHP = a; maxHP = b; tkHP = a; maxHP = b;
@ -675,7 +677,7 @@ function GoAJAX(goLink){
// } // }
} }
function confirmSubmit(mes){ function confirmSubmit(mes){
var agree = confirm(mes); const agree = confirm(mes);
return agree ? true : false ; return agree ? true : false ;
} }
<? if($user['battle'] == 0) { ?> <? if($user['battle'] == 0) { ?>
@ -699,19 +701,17 @@ setHP(<?=$user['hp'];?>, <?=$user['maxhp'];?>, 100);
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function confirmSubmit(mes) function confirmSubmit(mes)
{ {
var agree=confirm(mes); const agree = confirm(mes);
if (agree) return agree;
return true ;
else
return false ;
} }
</script> </script>
<script language=javascript> <script language=javascript>
<!-- <!--
var message="Правая кнопка мыши отключена!"; const message = "Правая кнопка мыши отключена!";
function click(e) { function click(e) {
if (document.all) { // IE if (document.all) { // IE
if (event.button == 2) { // Чтобы отключить левую кнопку поставьте цифру 1 if (event.button === 2) { // Чтобы отключить левую кнопку поставьте цифру 1
alert(message); // чтобы отключить среднюю кнопку поставьте цифру 1 alert(message); // чтобы отключить среднюю кнопку поставьте цифру 1
return false;} return false;}
} }
@ -808,29 +808,29 @@ document.oncontextmenu=function(e){return false};
<tbody> <tbody>
<tr valign="middle"> <tr valign="middle">
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><div id="showbar" style="font-size: 2pt; padding: 2px; border: 0px solid black; visibility: visible;"> <span id="progress1" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress2" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress3" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress4" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress5" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress6" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress7" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress8" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress9" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress10" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress11" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress12" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress13" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress14" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress15" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress16" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress17" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress18" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress19" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress20" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress21" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress22" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress23" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress24" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress25" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress26" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress27" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress28" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress29" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress30" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress31" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress32" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress33" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress34" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress35" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress36" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress37" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress38" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress39" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress40" style="background-color: green;">&nbsp;&nbsp;</span></div></td> <td><div id="showbar" style="font-size: 2pt; padding: 2px; border: 0 solid black; visibility: visible;"> <span id="progress1" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress2" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress3" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress4" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress5" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress6" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress7" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress8" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress9" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress10" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress11" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress12" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress13" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress14" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress15" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress16" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress17" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress18" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress19" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress20" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress21" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress22" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress23" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress24" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress25" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress26" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress27" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress28" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress29" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress30" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress31" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress32" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress33" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress34" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress35" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress36" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress37" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress38" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress39" style="background-color: green;">&nbsp;&nbsp;</span> <span id="progress40" style="background-color: green;">&nbsp;&nbsp;</span></div></td>
<td>&nbsp;&nbsp;</td> <td>&nbsp;&nbsp;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<script language="javascript"> <script language="javascript">
var progressEnd = 40; // set to number of progress <span>'s. const progressEnd = 40; // set to number of progress <span>'s.
var progressColor = 'green'; // set to progress bar color const progressColor = 'green'; // set to progress bar color
var progressInterval = <?=$tmdgm?>; let progressInterval =;
var progressAt = <?=$tmdg?>; let progressAt =;
var progressTimer; let progressTimer;
function progress_set(too) { function progress_set(too) {
for (var i = 1; i <= too; i++) document.getElementById('progress'+i).style.backgroundColor = progressColor; for (let i = 1; i <= too; i++) document.getElementById('progress'+i).style.backgroundColor = progressColor;
} }
function progress_none() { function progress_none() {
for (var i = 1; i <= 40; i++) document.getElementById('progress'+i).style.backgroundColor = progressColor; for (let i = 1; i <= 40; i++) document.getElementById('progress'+i).style.backgroundColor = progressColor;
} }
function progress_clear() { function progress_clear() {
for (var i = <?=$tmdg?>; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent'; for (let i = <?=$tmdg?>; i <= progressEnd; i++) document.getElementById('progress'+i).style.backgroundColor = 'transparent';
progressAt = <?=$tmdg?>; progressAt = <?=$tmdg?>;
} }
function progress_update() { function progress_update() {

View File

@ -392,14 +392,14 @@ echo('</td></tr>');
} }
} }
if($book2) // if($book2)
{ // {
//
} // }
if($book3) // if($book3)
{ // {
//
} // }

View File

@ -6,7 +6,7 @@
.city-location-container .fireworks { .city-location-container .fireworks {
position: absolute; position: absolute;
left: 4px; left: 4px;
right: 0px; right: 0;
z-index: 1500; z-index: 1500;
top: 5px; top: 5px;
} }

View File

@ -387,97 +387,12 @@ class Lottery{
function view_buy_ticket(){ function view_buy_ticket(){
$str = ''; $str = '';
$str .= ' $str .= ')">30</td>
<style>
td.select{ width: 20px; text-align: center; background-color: #999; cursor: pointer; }
td.unselect{ width: 20px; text-align: center; background-color: none; cursor: pointer; }
</style>
<script>
function add(name){
var array = new Array();
var test = document.getElementById(\'value\').value;
if (test.indexOf(",") > 0){
array = test.split(",");
//alert(array.lenght);
if (array[5] != \'\'){
document.getElementById(name).className=\'select\';
document.getElementById(name).onclick = function() { del(name) };
test = test + name + ",";
document.getElementById(\'value\').value = test;
}
else{
alert(\'Вы выбрали уже 5 номеров. Снимите выделение с любого номера.\');
}
}
else{
document.getElementById(name).className=\'select\';
document.getElementById(name).onclick = function() { del(name) };
test = test + name + ",";
document.getElementById(\'value\').value = test;
}
}
function del(name){
var array = new Array();
var test = document.getElementById(\'value\').value;
document.getElementById(name).className=\'unselect\';
document.getElementById(name).onclick = function() { add(name) };
test = test.replace(name+",","");
document.getElementById(\'value\').value = test;
}
</script>
<table style="background-color: #ccc">
<tr>
<td class="unselect" id="1" onclick="add(\'1\')">1</td>
<td class="unselect" id="2" onclick="add(\'2\')">2</td>
<td class="unselect" id="3" onclick="add(\'3\')">3</td>
<td class="unselect" id="4" onclick="add(\'4\')">4</td>
<td class="unselect" id="5" onclick="add(\'5\')">5</td>
</tr>
<tr>
<td class="unselect" id="6" onclick="add(\'6\')">6</td>
<td class="unselect" id="7" onclick="add(\'7\')">7</td>
<td class="unselect" id="8" onclick="add(\'8\')">8</td>
<td class="unselect" id="9" onclick="add(\'9\')">9</td>
<td class="unselect" id="10" onclick="add(\'10\')">10</td>
</tr>
<tr>
<td class="unselect" id="11" onclick="add(\'11\')">11</td>
<td class="unselect" id="12" onclick="add(\'12\')">12</td>
<td class="unselect" id="13" onclick="add(\'13\')">13</td>
<td class="unselect" id="14" onclick="add(\'14\')">14</td>
<td class="unselect" id="15" onclick="add(\'15\')">15</td>
</tr>
<tr>
<td class="unselect" id="16" onclick="add(\'16\')">16</td>
<td class="unselect" id="17" onclick="add(\'17\')">17</td>
<td class="unselect" id="18" onclick="add(\'18\')">18</td>
<td class="unselect" id="19" onclick="add(\'19\')">19</td>
<td class="unselect" id="20" onclick="add(\'20\')">20</td>
</tr>
<tr>
<td class="unselect" id="21" onclick="add(\'21\')">21</td>
<td class="unselect" id="22" onclick="add(\'22\')">22</td>
<td class="unselect" id="23" onclick="add(\'23\')">23</td>
<td class="unselect" id="24" onclick="add(\'24\')">24</td>
<td class="unselect" id="25" onclick="add(\'25\')">25</td>
</tr>
<tr>
<td class="unselect" id="26" onclick="add(\'26\')">26</td>
<td class="unselect" id="27" onclick="add(\'27\')">27</td>
<td class="unselect" id="28" onclick="add(\'28\')">28</td>
<td class="unselect" id="29" onclick="add(\'29\')">29</td>
<td class="unselect" id="30" onclick="add(\'30\')">30</td>
</tr> </tr>
</table> </table>
Выбраные Вами номера : <input style="border: 0px solid #000; background:transparent;" type="text" readonly="true" id="value" name="value" /> Выбраные Вами номера : <input style="border: 0px solid #000; background:transparent;" type="text" readonly="true" id="value" name="value" />
'; \'';
return $str; return $str;
} }
@ -519,7 +434,7 @@ if ($_POST['value']) {
<input type="button" value="Купить лотерейный билет" onClick="document.all['adde'].style.visibility='visible';document.all['adde'].style.display='block';"> <input type="button" value="Купить лотерейный билет" onClick="document.all['adde'].style.visibility='visible';document.all['adde'].style.display='block';">
<div style="display:none;visivility:hidden;" id="adde"> <div style="display:none;visivility:hidden;" id="adde">
<h4>Выберите 5 номеров</h4> <h4>Выберите 5 номеров</h4>
<form method='post' style="margin:0px;"> <form method='post' style="margin:0;">
<? echo $Lottery->view_buy_ticket(); ?> <? echo $Lottery->view_buy_ticket(); ?>
<BR><input type=submit value='Купить билет'></form></div> <BR><input type=submit value='Купить билет'></form></div>
<BR> <BR>

View File

@ -96,7 +96,7 @@ mysql_query("UPDATE `inventory` set `maxdur` = '$vsego',massa='$mas' WHERE `type
<META Http-Equiv=Expires Content=0> <META Http-Equiv=Expires Content=0>
<SCRIPT LANGUAGE="JavaScript"> <SCRIPT LANGUAGE="JavaScript">
function AddCount(name, txt,event){ function AddCount(name, txt,event){
var x=y=0; let x = y = 0;
if (document.attachEvent != null) { // Internet Explorer & Opera if (document.attachEvent != null) { // Internet Explorer & Opera
x = window.event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); x = window.event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
y = window.event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); y = window.event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);

View File

@ -55,6 +55,3 @@ if ($_SESSION['uid'] == null) header("Location: index.php");
} }
echo "</B></FONT>"; echo "</B></FONT>";
?>

View File

@ -26,4 +26,4 @@ elseif (rand(1,100) < $int) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -176,4 +176,3 @@ if ($user['battle'] > 0) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -192,4 +192,3 @@ elseif (!$us['online']) {
} }
//$bet=1; //$bet=1;
} }
?>

View File

@ -82,4 +82,3 @@ if ($user['battle'] > 0) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -185,4 +185,3 @@ elseif (!$us['online']) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -152,4 +152,3 @@ elseif (!$us['online']) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -152,4 +152,3 @@ if ($user['battle'] > 0) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -194,4 +194,3 @@ elseif (!$us['online']) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -58,4 +58,3 @@ if ($user['battle'] == 0) {
} }
?>

View File

@ -160,4 +160,3 @@ elseif ($user['zayavka'] > 0) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
}*/ }*/
?>

View File

@ -58,4 +58,3 @@ if ($_SESSION['uid'] == null) header("Location: index.php");
echo "</B></FONT>"; echo "</B></FONT>";
?>

View File

@ -41,4 +41,3 @@
else { else {
echo "<font color=red><b>Персонаж \"$target\" не существует!<b></font>"; echo "<font color=red><b>Персонаж \"$target\" не существует!<b></font>";
} }
?>

View File

@ -153,4 +153,3 @@ if ($user['room'] == 20) {
} }
echo "</b></font></div>"; echo "</b></font></div>";
} }
?>

View File

@ -46,4 +46,3 @@ if ($user['battle'] == 0) {
} }
} }
?>

View File

@ -36,4 +36,3 @@ if($user['battle'] == 0) {
$bet = 1; $bet = 1;
} }
} }
?>

View File

@ -193,4 +193,3 @@ elseif (!$us['online']) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

View File

@ -42,4 +42,3 @@ if ($user['battle'] > 0) {
echo "Свиток рассыпался в ваших руках..."; echo "Свиток рассыпался в ваших руках...";
$bet=1; $bet=1;
} }
?>

Some files were not shown because too many files have changed in this diff Show More