Отказ от абсолютных ссылок https://new-combats.com/* к относительным /*. Замена https://img.new-combats.com на //img.new-combats.tech.

This commit is contained in:
2023-03-31 21:30:14 +03:00
parent 1b5bf26294
commit 01b504e677
346 changed files with 3507 additions and 4221 deletions
+32 -32
View File
@@ -177,7 +177,7 @@ if ($u->room['file'] == 'dungeon') {
mysql_query('DELETE FROM `katok_now` WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
//
}
header('location: https://new-combats.com/main.php');
header('location: /main.php');
die('Матч закончился! Победила команда №' . $tmwin . '');
}
}
@@ -666,11 +666,11 @@ if ($u->room['file'] == 'dungeon') {
}
}
zfloor0[rz] = '<img title="' + v[1] + '" onclick="' + actionNow + '" src="https://img.new-combats.com/1x1.gif" style="cursor: pointer; position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />' + zfloor0[rz];
zfloor0[rz] = '<img title="' + v[1] + '" onclick="' + actionNow + '" src="//img.new-combats.tech/1x1.gif" style="cursor: pointer; position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />' + zfloor0[rz];
} else {
zfloor0[rz] = '<img title="' + v[1] + '" src="https://img.new-combats.com/1x1.gif" style="position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />' + zfloor0[rz];
zfloor0[rz] = '<img title="' + v[1] + '" src="//img.new-combats.tech/1x1.gif" style="position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />' + zfloor0[rz];
}
r = '<img title="obj" src="https://img.new-combats.com/i/sprites/' + v[4] + '" class="dObj" style="position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />';
r = '<img title="obj" src="//img.new-combats.tech/i/sprites/' + v[4] + '" class="dObj" style="position: absolute; top: ' + new_top + 'px; left: ' + new_left + 'px; width: ' + new_w + 'px; height: ' + new_h + 'px;" />';
}
return r;
}
@@ -730,11 +730,11 @@ if ($u->room['file'] == 'dungeon') {
if (v[5] == 'bot' || <?=$d->info['bsid'];?> > 0) {
action = 'dialogMenu(' + v[0] + ',' + v[8] + ',' + v[7] + ',0,0,event,' + v[9] + ');';
}
zfloor0[rz] += '<img title="' + v[1] + '" onClick="' + action + '" src="https://img.new-combats.com/1x1.gif" style="cursor:pointer;position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
zfloor0[rz] += '<img title="' + v[1] + '" onClick="' + action + '" src="//img.new-combats.tech/1x1.gif" style="cursor:pointer;position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
} else {
zfloor0[rz] += '<img title="' + v[1] + '" src="https://img.new-combats.com/1x1.gif" style="position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
zfloor0[rz] += '<img title="' + v[1] + '" src="//img.new-combats.tech/1x1.gif" style="position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
}
r = '<img title="user" src="https://img.new-combats.com/chars/' + v[3] + '/' + v[4] + '.gif" class="dUser" style="position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
r = '<img title="user" src="//img.new-combats.tech/chars/' + v[3] + '/' + v[4] + '.gif" class="dUser" style="position:absolute;top:' + new_top + 'px;left:' + new_left + 'px;width:' + new_w + 'px;height:' + new_h + 'px;" />';
}
return r;
}
@@ -841,7 +841,7 @@ if ($u->room['file'] == 'dungeon') {
$tmGol = $u->info['timeGo'] - $u->info['timeGoL']; //сколько секунд идти всего
echo 'var tgo = ' . ($tmGo * 10) . '; var tgol = ' . ($tmGol * 10) . ';'; ?>
</script>
<link href="https://img.new-combats.com/css/dungeon_<?= $d->point['css']; ?>.css" rel="stylesheet"
<link href="//img.new-combats.tech/css/dungeon_<?= $d->point['css']; ?>.css" rel="stylesheet"
type="text/css"/>
<style>
.hintDm {
@@ -874,7 +874,7 @@ if ($u->room['file'] == 'dungeon') {
}
#pline1 {
background-image: url(https://img.new-combats.com/wait3.gif);
background-image: url(//img.new-combats.tech/wait3.gif);
height: 9px;
z-index: 1000;
}
@@ -945,9 +945,9 @@ if ($u->room['file'] == 'dungeon') {
}
$r = '<table style="display:inline-block;" border="0" cellspacing="0" cellpadding="0" height="10"><tr><td valign="middle" width="120" style="padding-top:12px">
<div style="position:relative;"><div id="vhp-1234600000' . $pl['id'] . '" title="Выполнение задания" align="left" class="seehp" style="position:absolute; top:-10px; width:120px; height:10px; z-index:12;"> ' . $xrz . '/' . $r . '</div>
<div title="Выполнение задания" class="hpborder" style="position:absolute; top:-10px; width:120px; height:9px; z-index:13;"><img src="https://img.new-combats.com/1x1.gif" height="9" width="1"></div>
<div class="hp_3 senohp" style="height:9px; width:120px; position:absolute; top:-10px; z-index:11;" id="lhp-1234600000' . $pl['id'] . '"><img src="https://img.new-combats.com/1x1.gif" height="9" width="1"></div>
<div title="Выполнение задания" class="hp_none" style="position:absolute; top:-10px; width:120px; height:10px; z-index:10;"><img src="https://img.new-combats.com/1x1.gif" height="10"></div>
<div title="Выполнение задания" class="hpborder" style="position:absolute; top:-10px; width:120px; height:9px; z-index:13;"><img src="//img.new-combats.tech/1x1.gif" height="9" width="1"></div>
<div class="hp_3 senohp" style="height:9px; width:120px; position:absolute; top:-10px; z-index:11;" id="lhp-1234600000' . $pl['id'] . '"><img src="//img.new-combats.tech/1x1.gif" height="9" width="1"></div>
<div title="Выполнение задания" class="hp_none" style="position:absolute; top:-10px; width:120px; height:10px; z-index:10;"><img src="//img.new-combats.tech/1x1.gif" height="10"></div>
</div></td></tr></table><br><script>top.startHpRegen("main",-1234600000' . $pl['id'] . ',' . $xrz . ',' . $r . ',0,0,0,0,0,0,1);</script>';
$qsee .= '<small>Задание: &nbsp; ' . $pl['info'] . ' ' . $r . '</small><br>';
@@ -968,14 +968,14 @@ if ($u->room['file'] == 'dungeon') {
?>
</td>
<td width="530" height="260" valign="top"
style="background-image:url(https://img.new-combats.com/maze_layer.jpg); background-repeat:no-repeat;">
style="background-image:url(//img.new-combats.tech/maze_layer.jpg); background-repeat:no-repeat;">
<div style="position:relative;">
<div style="position:absolute;z-index:1;left:397px;top:0px;">
<div id="pline1" style="width:1px;"></div>
</div>
<div style="position:absolute; z-index:50; left: 374px; top: 110px;">
<img src="https://img.new-combats.com/podzem-map.png"/>
<img src="//img.new-combats.tech/podzem-map.png"/>
</div>
<div id="minimap"
style="position:absolute; left: 374px; top: 110px;">
@@ -1032,7 +1032,7 @@ if ($u->room['file'] == 'dungeon') {
position: absolute;
top: -8px;
left: -6px;
/ / background-image: url("https://img.new-combats.com/drgn/bg/r.gif");
/ / background-image: url("//img.new-combats.tech/drgn/bg/r.gif");
}
</style>
</table>
@@ -1068,7 +1068,7 @@ if ($u->room['file'] == 'dungeon') {
$sb1 = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_obj` WHERE `name` LIKE "%Шайба%" AND `dn` = "' . $d->info['id'] . '" LIMIT 1'));
while($pl = mysql_fetch_array($sp)) {
$css = '"background-image":"url(https://img.new-combats.com/fon555.png)",';
$css = '"background-image":"url(//img.new-combats.tech/fon555.png)",';
$j = 0;
while ($j <= 4) {
@@ -1081,7 +1081,7 @@ if ($u->room['file'] == 'dungeon') {
}
if( $sb1['x'] == $pl['x'] && $sb1['y'] == $pl['y'] ) {
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Шайба!\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/shb.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Шайба!\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/shb.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
}elseif ($u->info['x'] == $pl['x'] && $u->info['y'] == $pl['y']) {
if ($d->info['id2'] == 15) {
$tmbth = 4;
@@ -1091,9 +1091,9 @@ if ($u->room['file'] == 'dungeon') {
} elseif ($tm['team'] == 2) {
$tmbth = 2;
}
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Это Вы\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/p' . $tmbth . '/d0.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Это Вы\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/p' . $tmbth . '/d0.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
} else {
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Это Вы\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/p1/d0.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Это Вы\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/p1/d0.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
}
} elseif ($d->info['id2'] == 15) {
$tmbth = 4;
@@ -1105,12 +1105,12 @@ if ($u->room['file'] == 'dungeon') {
}
$tbshin = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `uid` = "' . $uxy[$pl['x'] . '_' . $pl['y']]['id'] . '" AND `item_id` = 4910 AND `delete` = 0 LIMIT 1'));
if (isset($tbshin['id'])) {
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Шайба!\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/shb.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $pl['x'] . '_' . $pl['y'] . '").html("<img class=\"u_rot' . $u->info['s'] . '\" title=\"Шайба!\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/shb.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
} else {
echo '$("#min_' . $uxy[$pl['x'] . '_' . $pl['y']]['x'] . '_' . $uxy[$pl['x'] . '_' . $pl['y']]['y'] . '").html("<img class=\"u_rot' . $uxy[$pl['x'] . '_' . $pl['y']]['s'] . '\" title=\"' . $uxy[$pl['x'] . '_' . $pl['y']]['login'] . '\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/p' . $tmbth . '/d0.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $uxy[$pl['x'] . '_' . $pl['y']]['x'] . '_' . $uxy[$pl['x'] . '_' . $pl['y']]['y'] . '").html("<img class=\"u_rot' . $uxy[$pl['x'] . '_' . $pl['y']]['s'] . '\" title=\"' . $uxy[$pl['x'] . '_' . $pl['y']]['login'] . '\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/p' . $tmbth . '/d0.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
}
}elseif (isset($uxy[$pl['x'] . '_' . $pl['y']])) {
echo '$("#min_' . $uxy[$pl['x'] . '_' . $pl['y']]['x'] . '_' . $uxy[$pl['x'] . '_' . $pl['y']]['y'] . '").html("<img class=\"u_rot' . $uxy[$pl['x'] . '_' . $pl['y']]['s'] . '\" title=\"' . $uxy[$pl['x'] . '_' . $pl['y']]['login'] . '\" style=\"margin:2px 3px 3px 2px;background-image:url(https://img.new-combats.com/i/move/p4/d0.gif)\" src=\"https://img.new-combats.com/1x1.gif\" width=\"7\" height=\"7\">");';
echo '$("#min_' . $uxy[$pl['x'] . '_' . $pl['y']]['x'] . '_' . $uxy[$pl['x'] . '_' . $pl['y']]['y'] . '").html("<img class=\"u_rot' . $uxy[$pl['x'] . '_' . $pl['y']]['s'] . '\" title=\"' . $uxy[$pl['x'] . '_' . $pl['y']]['login'] . '\" style=\"margin:2px 3px 3px 2px;background-image:url(//img.new-combats.tech/i/move/p4/d0.gif)\" src=\"//img.new-combats.tech/1x1.gif\" width=\"7\" height=\"7\">");';
} elseif( isset($bxy[$pl['x'] . '_' . $pl['y']]) ) {
$bobrz = $bxy[$pl['x'] . '_' . $pl['y']]['obraz'];
@@ -1122,7 +1122,7 @@ if ($u->room['file'] == 'dungeon') {
}
?>
$("#min_<?=$bxy[$pl['x'] . '_' . $pl['y']]['x']?>_<?=$bxy[$pl['x'] . '_' . $pl['y']]['y']?>").html("<div style='position:relative; display:inline-block; width:1px; height:1px;'><img class='dBot' title='<?=$bxy[$pl['x'] . '_' . $pl['y']]['login']?>' src='https://img.new-combats.com/chars/<?=$bxy[$pl['x'] . '_' . $pl['y']]['sex']?>/<?=$bobrz?>'></div>");
$("#min_<?=$bxy[$pl['x'] . '_' . $pl['y']]['x']?>_<?=$bxy[$pl['x'] . '_' . $pl['y']]['y']?>").html("<div style='position:relative; display:inline-block; width:1px; height:1px;'><img class='dBot' title='<?=$bxy[$pl['x'] . '_' . $pl['y']]['login']?>' src='//img.new-combats.tech/chars/<?=$bxy[$pl['x'] . '_' . $pl['y']]['sex']?>/<?=$bobrz?>'></div>");
<?
}
$css = rtrim($css, ',');
@@ -1133,40 +1133,40 @@ if ($u->room['file'] == 'dungeon') {
</script>
</div>
<div style="position:absolute; z-index:50; left: 374px; top: 110px;">
<img src="https://img.new-combats.com/podzem-map2.png"/>
<img src="//img.new-combats.tech/podzem-map2.png"/>
</div>
<img src="https://img.new-combats.com/g1.jpg"
<img src="//img.new-combats.tech/g1.jpg"
title="Обновить, X:<?= $u->info['x'] ?> ,Y:<?= $u->info['y'] ?>"
width="31" height="18" id="g1"
style="position: absolute; cursor:pointer; left: 435px; top: 53px;"/>
<?php if ($d->testGone(3) > 0) { ?>
<img src="https://img.new-combats.com/g2.jpg"
<img src="//img.new-combats.tech/g2.jpg"
onclick="goToLoca(3,'направо');" width="27" height="48"
id="g2"
style="position:absolute;cursor:pointer; left: 492px; top: 40px;"/>
<?php }
if ($d->testGone(4) > 0) { ?>
<img src="https://img.new-combats.com/g3.jpg"
<img src="//img.new-combats.tech/g3.jpg"
onclick="goToLoca(4,'налево');" width="28" height="46"
id="g3"
style="position:absolute;cursor:pointer; left: 382px; top: 40px;"/>
<?php }
if ($d->testGone(2) > 0) { ?>
<img src="https://img.new-combats.com/g4.jpg"
<img src="//img.new-combats.tech/g4.jpg"
onclick="goToLoca(2,'назад');" width="45" height="25"
id="g4"
style="position:absolute;cursor:pointer; left: 428px; top: 72px;"/>
<?php }
if ($d->testGone(1) > 0) { ?>
<img src="https://img.new-combats.com/g5.jpg"
<img src="//img.new-combats.tech/g5.jpg"
onclick="goToLoca(1,'вперед');" width="46" height="26"
id="g5"
style="position:absolute;cursor:pointer; left: 428px; top: 26px;"/>
<?php } ?>
<img src="https://img.new-combats.com/g6.jpg" width="30" height="19"
<img src="//img.new-combats.tech/g6.jpg" width="30" height="19"
id="g6"
style="position:absolute;cursor:pointer; left: 399px; top: 28px;"/>
<img src="https://img.new-combats.com/g7.jpg" width="24" height="19"
<img src="//img.new-combats.tech/g7.jpg" width="24" height="19"
id="g7"
style="position:absolute;cursor:pointer; left: 476px; top: 28px;"/>
<div id="Dungeon" class="Dungeon" align="center"
@@ -1278,7 +1278,7 @@ if ($u->room['file'] == 'dungeon') {
} ?>">
<?php if ($u->info['admin'] == 0){ ?>
<div id="divWindowImg">
<img src="https://img.new-combats.com/i/1x1.gif"
<img src="//img.new-combats.tech/i/1x1.gif"
usemap="#ObjectsMap"
border="0"/>
</div>