Отказ от абсолютных ссылок 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

View File

@@ -353,8 +353,8 @@ if( isset($_GET['changearenda']) ) {
<SCRIPT>
var sd4 = "<?=$u->info['id'];?>";
</SCRIPT>
<script type="text/javascript" language="javascript" src='https://img.new-combats.com/js/commoninf.js'></script>
<SCRIPT LANGUAGE="JavaScript" SRC="https://img.new-combats.com/js/sl2.27.js"></SCRIPT>
<script type="text/javascript" language="javascript" src='//img.new-combats.tech/js/commoninf.js'></script>
<SCRIPT LANGUAGE="JavaScript" SRC="//img.new-combats.tech/js/sl2.27.js"></SCRIPT>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=e2e0e0>
<div id=hint4 class=ahint></div>
<?php if($u->error!=''){ echo '<b style="color:red">'.$u->error.'</b><br>'; } ?>
@@ -407,7 +407,7 @@ var sd4 = "<?=$u->info['id'];?>";
Вы арендовали <?=$name;?><BR>
Начало аренды: <?=date("d.m.y H:i",$objaga['starttime']);?><BR>
Оплачено до: <?=$showdate;?> <IMG src="https://img.new-combats.com/i/up.gif" width=11 height=11 title="Оплатить" onClick="usescript('Оплата аренды','main.php', 'payarenda', '<?=$objaga['weekcost']?>', 'Сумма оплаты:<BR>',0, '<INPUT type=hidden name=sd4 value='+sd4+'>')" style="cursor:hand"><BR>
Оплачено до: <?=$showdate;?> <IMG src="//img.new-combats.tech/i/up.gif" width=11 height=11 title="Оплатить" onClick="usescript('Оплата аренды','main.php', 'payarenda', '<?=$objaga['weekcost']?>', 'Сумма оплаты:<BR>',0, '<INPUT type=hidden name=sd4 value='+sd4+'>')" style="cursor:hand"><BR>
Цена в неделю: <?=$objaga['weekcost'];?> кр.<BR>
&nbsp;&bull; Размер сундука: <?=$maxbox;?> вещей<BR>
@@ -503,38 +503,6 @@ var sd4 = "<?=$u->info['id'];?>";
<td width=50%><b>&nbsp;В сундуке</b></td>
<td><b>&nbsp;В рюкзаке</b></td>
</tr>
<?php if ($u->info['admin'] > 0) { /*?>
<tr bgcolor="#A0A0A0">
<td>
<form id="line_filter" style="display:inline;" onsubmit="return false;" prc_adsf="true">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="160" align="center" style="border-right:#A5A5A5 1px solid; padding:5px;">Поиск по имени:</td>
<td>
<div style="display:inline-block; position:relative; ">
<input type="text" id="inpFilterName" placeholder="Введите название предмета..." autofocus="autofocus" size="44" autocomplete="off"><img style="position:absolute; cursor:pointer; right: 2px; top: 3px; width: 12px; height: 12px;" onclick="document.getElementById(\'inpFilterName\').value=\'\';" title="Убрать фильтр (клавиша Esc)" src="https://img.new-combats.com/i/clear.gif"><input type="submit" style="display: none" id="inpFilterName_submit" value="Фильтр" onclick="return false"><div class="autocomplete-suggestions" style="position: absolute; display: none;top: 15px; left:0px; margin:0px auto; right: 0px; font-size:12px; font-family: Tahoma; max-height: 300px; z-index: 9999;"></div>
</div>
</td>
</tr>
</table>
</form>
</td>
<td>
<form id="line_filter" style="display:inline;" onsubmit="return false;" prc_adsf="true">
<table>
<tr>
<td>Поиск по имени:</td>
<td>
<div style="display:inline-block; position:relative; ">
<input type="text" id="inpFilterName" placeholder="Введите название предмета..." autofocus="autofocus" size="44" autocomplete="off"><img style="position:absolute; cursor:pointer; right: 2px; top: 3px; width: 12px; height: 12px;" onclick="document.getElementById(\'inpFilterName\').value=\'\';" title="Убрать фильтр (клавиша Esc)" src="https://img.new-combats.com/i/clear.gif"><input type="submit" style="display: none" id="inpFilterName_submit" value="Фильтр" onclick="return false"><div class="autocomplete-suggestions" style="position: absolute; display: none;top: 15px; left:0px; margin:0px auto; right: 0px; font-size:12px; font-family: Tahoma; max-height: 300px; z-index: 9999;"></div>
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
<?php */} ?>
<tr>
<td width='50%' valign='top'><div <?php if($chest[0]!=0){ echo 'style="display:none;"'; }?> id="chest_null"> ПУСТО</div><table id="chest" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><?php if($chest[0]!=0){ echo $chest[2]; } ?></tbody></table></td>
<td width='50%' valign='top'><div <?php if($invertory[0]!=0){ echo 'style="display:none;"';}?> id="invertory_null"> ПУСТО</div><table id="invertory" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><?php if($invertory[0]!=0){ echo $invertory[2]; } ?></tbody></table></td>
@@ -542,54 +510,7 @@ var sd4 = "<?=$u->info['id'];?>";
</table>
<?
/*
} else { // для юзверя
$itmAll = ''; // Все вещи
$itmAllSee = ''; // Все вещи для просмотра?
$itmAll = $u->genInv(7,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `im`.`type` != "28" AND `im`.`type` != "38" AND `im`.`type` != "39" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="1" ORDER BY `iu`.`lastUPD` DESC');
//$box_count= count($itmAll);
?>
Сундук: <?=$itmAll['collich']?> / <?=$maxbox?>, передач: <?=$u->info['transfers']?><BR><BR>
<TABLE width=100% cellpadding=0 cellspacing=0><TR bgcolor=#A0A0A0>
<TD width=50%>&nbsp;В сундуке</TD><TD>В рюкзаке</TD>
<TR>
<TD valign=top><!--Рюкзак-->
<TABLE WIDTH=100% CELLSPACING=1 CELLPADDING=2 BGCOLOR=A5A5A5>
<?
$itmAll = ''; $itmAllSee = '';
$itmAll = $u->genInv(7,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `im`.`type` != "28" AND `im`.`type` != "38" AND `im`.`type` != "39" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="1" ORDER BY `iu`.`lastUPD` DESC');
if($itmAll[0]==0)
{
echo '<tr><td align="center" bgcolor="#e2e0e0">ПУСТО</td></tr>';
}else{
echo $itmAll[2];
}
?>
</TABLE>
</TD><TD valign=top>
<!--Рюкзак-->
<TABLE WIDTH=100% CELLSPACING=1 CELLPADDING=2 BGCOLOR=A5A5A5>
<?
$itmAll = ''; $itmAllSee = '';
$itmAll = $u->genInv(8,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `im`.`type` != "28" AND `im`.`type` != "38" AND `im`.`type` != "39" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" ORDER BY `iu`.`lastUPD` DESC');
if($itmAll[0]==0)
{
echo '<tr><td align="center" bgcolor="#e2e0e0">ПУСТО</td></tr>';
}else{
echo $itmAll[2];
}
?>
</TABLE>
</TD>
</TR></TABLE>
<?
}*/
;break;
break;
case 6:#-----Сувениры
$itmAll = ''; $itmAllSee = '';
$itmAll = $u->genInv(10,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND (`im`.`type` = "28" OR `im`.`type` = "38" OR `im`.`type` = "39") AND `iu`.`inOdet`="0" AND `iu`.`inShop`="1" ORDER BY `lastUPD` DESC');
@@ -626,7 +547,7 @@ if($itmAll[0]==0)
</TABLE>
</TD>
</TR></TABLE>
<? ;break;
<? break;
case 7:#-----Персонажи?>
<h3>Работа с персонажами</h3>
@@ -751,8 +672,8 @@ while( $pl = mysql_fetch_array($sp) ) {
}else{
$r .= 'border:5px solid #E2E0E0;';
}
$r .= 'position:relative;display:inline-block;width:120px;height:220px;background-image:url(\'https://img.new-combats.com/i/obraz/'.$u->info['sex'].'/'.$pl['obraz'].'\')">';
$r .= '<div align="center" style="position:absolute;bottom:0px;left:0px;width:114px;background-color:#E2E0E0;margin:3px;"><b>'.$pl['login'].'</b> ['.$pl['level'].']<img width="12" height="11" src="https://img.new-combats.com/i/inf_capitalcity.gif"></div>';
$r .= 'position:relative;display:inline-block;width:120px;height:220px;background-image:url(\'//img.new-combats.tech/i/obraz/'.$u->info['sex'].'/'.$pl['obraz'].'\')">';
$r .= '<div align="center" style="position:absolute;bottom:0px;left:0px;width:114px;background-color:#E2E0E0;margin:3px;"><b>'.$pl['login'].'</b> ['.$pl['level'].']<img width="12" height="11" src="//img.new-combats.tech/i/inf_capitalcity.gif"></div>';
$r .= '</div>';
if( $pl['id'] != $p_now['id'] ) {
$r .= '</a>';
@@ -761,7 +682,7 @@ while( $pl = mysql_fetch_array($sp) ) {
if( $user_new_pers == true ) {
$r .= '<div style="';
$r .= 'border:5px solid #E2E0E0;';
$r .= 'position:relative;display:inline-block;width:120px;height:220px;background-image:url(\'https://img.new-combats.com/chars/'.$u->info['sex'].'/0.png\')">';
$r .= 'position:relative;display:inline-block;width:120px;height:220px;background-image:url(\'//img.new-combats.tech/chars/'.$u->info['sex'].'/0.png\')">';
$r .= '<div align="center" style="position:absolute;bottom:0px;left:0px;width:114px;background-color:#E2E0E0;margin:3px;"><a href="?add_new_chars=1&room=7">Добавить персонажа</a></div>';
$r .= '</div>';
}
@@ -777,18 +698,18 @@ echo $r;
<?
if($cage1['pet_in_cage']==1) {
echo'<TD width=150 align=center><nobr><B>'.$cage1['name'].'</B> ['.$cage1['level'].']</nobr>
<A href="/main.php?pet_id='.$cage1['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="https://img.new-combats.com/i/obraz/'.$cage1['sex'].'/'.$cage1['obraz'].'.gif" width=120 height=220>';
<A href="/main.php?pet_id='.$cage1['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="//img.new-combats.tech/i/obraz/'.$cage1['sex'].'/'.$cage1['obraz'].'.gif" width=120 height=220>';
}else{
echo'<TD width=150 align=center><nobr><B>свободно</B></nobr><BR>
<IMG src="https://img.new-combats.com/i/obraz/0/null.gif" width=120 height=220>';
<IMG src="//img.new-combats.tech/i/obraz/0/null.gif" width=120 height=220>';
}
?></A></TD>
<?if($cage2['pet_in_cage']==2) {
echo'<TD width=150 align=center><nobr><B>'.$cage2['name'].'</B> ['.$cage2['level'].']</nobr>
<A href="/main.php?pet_id='.$cage2['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="https://img.new-combats.com/i/obraz/'.$cage2['sex'].'/'.$cage2['obraz'].'.gif" width=120 height=220>';
<A href="/main.php?pet_id='.$cage2['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="//img.new-combats.tech/i/obraz/'.$cage2['sex'].'/'.$cage2['obraz'].'.gif" width=120 height=220>';
}else{
echo'<TD width=150 align=center><nobr><B>свободно</B></nobr><BR>
<IMG src="https://img.new-combats.com/i/obraz/0/null.gif" width=120 height=220>';
<IMG src="//img.new-combats.tech/i/obraz/0/null.gif" width=120 height=220>';
}
?></A></TD>
</TABLE>
@@ -798,10 +719,10 @@ echo'<TD width=150 align=center><nobr><B>свободно</B></nobr><BR>
<?
if(!$pet) {
echo'<nobr><B>свободно</B></nobr>
<IMG src="https://img.new-combats.com/i/obraz/0/null.gif" width=120 height=220>';
<IMG src="//img.new-combats.tech/i/obraz/0/null.gif" width=120 height=220>';
}else{
echo'<nobr><B>'.$pet['name'].'</B> ['.$pet['level'].']</nobr>
<A href="/main.php?pet_id=-'.$pet['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="https://img.new-combats.com/i/obraz/'.$pet['sex'].'/'.$pet['obraz'].'.gif" width=120 height=220>';
<A href="/main.php?pet_id=-'.$pet['id'].'&sd4='.$u->info['id'].'&room=3&0.'.rand(0,9999999999999999).'" alt="Оставить"><IMG src="//img.new-combats.tech/i/obraz/'.$pet['sex'].'/'.$pet['obraz'].'.gif" width=120 height=220>';
}?>
</A>
</TD></TR></TABLE>
@@ -887,32 +808,32 @@ echo'<HR>';
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
<?php if($u->info['room'] == 214 && $sleep_mod == 0) { ?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.11&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.11',1); ?>">Страшилкина Улица</a></td>
</tr>
<?
if($ar_lvl>=1){?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
</tr>
<?php } } ?>
<?php if($u->info['room']=='217' and $ar_lvl>=1 and $sleep_mod==0) { ?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.214&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.214',1); ?>">Общежитие</a></td>
</tr>
<?
}if($u->info['room']=='217' and $ar_lvl>=2 and $sleep_mod==0){
?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
</tr>
<?}?>
<?if($u->info['room']=='218' and $ar_lvl>=2 and $sleep_mod==0){?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
</tr>
<?
@@ -920,14 +841,14 @@ if($ar_lvl>=1){?>
if($u->info['room']=='218' and $ar_lvl>=3 and $sleep_mod==0){
?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.219&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.219',1); ?>">Общ. Этаж 3</a></td>
</tr>
<?php }
if($u->info['room']=='219' and $ar_lvl>=3 and !isset($sleep['id'])){
?>
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
</tr>
<?php } ?>