Отказ от абсолютных ссылок 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
+13 -13
View File
@@ -69,7 +69,7 @@ class forum
mysql_query('INSERT INTO `forum_answers` (`uid`,`msg_id`,`q_id`,`answer`,`time`,`city`) VALUES
("' . $this->user['id'] . '","' . $this->see['id'] . '","' . mysql_real_escape_string($_GET['q_now']) . '","' . mysql_real_escape_string($_GET['answer_now']) . '",
"' . time() . '","' . $this->user['city'] . '")');
die('<meta http-equiv="refresh" content="0; URL=https://new-combats.com/forum?read=' . round((int)$_GET['read']) . '&page=' . round((int)$_GET['page']) . '">');
die('<meta http-equiv="refresh" content="0; URL=/forum?read=' . round((int)$_GET['read']) . '&page=' . round((int)$_GET['page']) . '">');
}
}
}
@@ -224,10 +224,10 @@ class forum
if ($this->user['admin'] > 0 || ($this->user['align'] > 1 && $this->user['align'] < 2) || ($this->user['align'] > 3 && $this->user['align'] < 4)) {
echo '&nbsp; <div class="btnAdm">';
if ($this->user['admin'] > 0) {
echo '<a href="?aem=' . $this->see['id'] . '"><img title="Редактировать" src="https://new-combats.com/forum_script/img/ic_acc3.gif" width="10" height="10"></a>';
echo '<a href="?aem=' . $this->see['id'] . '"><img title="Редактировать" src="/forum_script/img/ic_acc3.gif" width="10" height="10"></a>';
}
echo '<a href="?delete_msg=' . $this->see['id'] . '&read=' . $this->see['id'] . '"><img title="Стереть запись" src="https://new-combats.com/forum_script/img/ic_acc0.gif" width="10" height="10"></a>';
echo '<img onclick="acma(' . $this->see['id'] . ');" title="Комментировать" src="https://new-combats.com/forum_script/img/ic_acc2.gif" width="10" height="10" style="cursor:pointer">';
echo '<a href="?delete_msg=' . $this->see['id'] . '&read=' . $this->see['id'] . '"><img title="Стереть запись" src="/forum_script/img/ic_acc0.gif" width="10" height="10"></a>';
echo '<img onclick="acma(' . $this->see['id'] . ');" title="Комментировать" src="/forum_script/img/ic_acc2.gif" width="10" height="10" style="cursor:pointer">';
echo '</div>';
}
echo ' &nbsp; &nbsp; (<span class="date">' . date('d.m.Y H:i', $this->see['time']) . '</span>)<br>';
@@ -283,10 +283,10 @@ class forum
if ($this->user['admin'] > 0 || ($this->user['align'] > 1 && $this->user['align'] < 2) || ($this->user['align'] > 3 && $this->user['align'] < 4)) {
$rtrn .= '&nbsp; <div class="btnAdm">';
if ($this->user['admin'] > 0) {
$rtrn .= '<a href="?aem=' . $pl['id'] . '"><img title="Редактировать" src="https://new-combats.com/forum_script/img/ic_acc3.gif" width="10" height="10"></a>';
$rtrn .= '<a href="?aem=' . $pl['id'] . '"><img title="Редактировать" src="/forum_script/img/ic_acc3.gif" width="10" height="10"></a>';
}
$rtrn .= '<a href="?delete_msg=' . $pl['id'] . '&read=' . $pl['topic'] . '"><img title="Стереть комментарий" src="https://new-combats.com/forum_script/img/ic_acc0.gif" width="10" height="10"></a>';
$rtrn .= '<img onclick="acma(' . $pl['id'] . ');" title="Комментировать" src="https://new-combats.com/forum_script/img/ic_acc2.gif" width="10" height="10" style="cursor:pointer">';
$rtrn .= '<a href="?delete_msg=' . $pl['id'] . '&read=' . $pl['topic'] . '"><img title="Стереть комментарий" src="/forum_script/img/ic_acc0.gif" width="10" height="10"></a>';
$rtrn .= '<img onclick="acma(' . $pl['id'] . ');" title="Комментировать" src="/forum_script/img/ic_acc2.gif" width="10" height="10" style="cursor:pointer">';
$rtrn .= '</div>';
}
$rtrn .= ' &nbsp; &nbsp; (<span class="date">' . date('d.m.Y H:i', $pl['time']) . '</span>)<br>';
@@ -360,7 +360,7 @@ class forum
$u .= '<b>' . $login . '</b> [' . $level . ']<a href="https://' . $c['host'] . '/info/' . $id . '" target="_blank" title="Инф. о ' . $login . '"><img src="https://' . $c['img'] . '/i/inf_capitalcity.gif"></a>';
if ($city != '') {
$ufr = '<img title="' . $city . '" src="https://new-combats.com/forum_script/img/city/' . $city . '.gif" width="17" height="15"> &nbsp; ' . $u;
$ufr = '<img title="' . $city . '" src="/forum_script/img/city/' . $city . '.gif" width="17" height="15"> &nbsp; ' . $u;
}
return $u;
}
@@ -514,7 +514,7 @@ class forum
if ($topic != -1) {
//Если автор предыдущего сообщения не текущий юзер - отправляем в чат сообщение о новом ответе
if ($lst['uid'] + 1 != $this->user['id']) {
$fnt = '<b>' . date('d.m.Y H:i') . '</b> На форуме опубликован новый ответ в обсуждении, в котором вы принимали участие. <a href=https://new-combats.com/forum?read=' . $topic . ' target=_blank \>Читать далее</a>';
$fnt = '<b>' . date('d.m.Y H:i') . '</b> На форуме опубликован новый ответ в обсуждении, в котором вы принимали участие. <a href=/forum?read=' . $topic . ' target=_blank \>Читать далее</a>';
$ll = [];
$sp = mysql_query('SELECT `u`.`city`,`u`.`id`,`u`.`login`,`f`.`uid`,`f`.`login` FROM `forum_msg` AS `f` LEFT JOIN `users` AS `u` ON `f`.`uid` = `u`.`id` WHERE `f`.`delete` = 0 AND (`f`.`topic` = ' . (int)$topic . ' OR (`f`.`topic` = -1 AND `f`.`id` = ' . (int)$topic . ')) LIMIT 1');
while ($pl = mysql_fetch_array($sp)) {
@@ -567,17 +567,17 @@ class forum
$row = mysql_num_rows(mysql_query('SELECT `id` FROM `forum_msg` WHERE `topic` = "' . $pl['id'] . '" AND `delete` = "0"'));
$plist = '<small>' . $this->paginator(2, $pl['id']) . '</small>';
if ($plist != '') {
$plist = '<img src="https://new-combats.com/forum_script/img/p.gif" width="10" height="12"> ' . $plist . '';
$plist = '<img src="/forum_script/img/p.gif" width="10" height="12"> ' . $plist . '';
}
$re .= '<div';
$fxd = '';
if ($pl['fixed'] > 0) {
$fxd = '<img src="https://new-combats.com/forum_script/img/fixed.gif"> ';
$fxd = '<img src="/forum_script/img/fixed.gif"> ';
$re .= ' class="fixed_topik"';
}
$re .= ' style="margin-top:10px;">';
$re .= '<div>' . $fxd . '<img style="border:0px;" src="https://new-combats.com/forum_script/img/icon' . $pl['ico'] . '.gif"> <a href="?read=' . $pl['id'] . '&rnd=' . $code . '"><b>' . $pl['title'] . '</b></a> ' . $plist . ' &nbsp; ' . $this->genuser($pl['uid'], $pl['login'], $pl['level'], $pl['align'], $pl['clan'], $pl['invis'], $pl['city'], $pl['cityreg']) . '</div>';
$re .= '<div>' . $fxd . '<img style="border:0px;" src="/forum_script/img/icon' . $pl['ico'] . '.gif"> <a href="?read=' . $pl['id'] . '&rnd=' . $code . '"><b>' . $pl['title'] . '</b></a> ' . $plist . ' &nbsp; ' . $this->genuser($pl['uid'], $pl['login'], $pl['level'], $pl['align'], $pl['clan'], $pl['invis'], $pl['city'], $pl['cityreg']) . '</div>';
$re .= '<div style="margin-left:21px;"><small class="date">' . date('d.m.Y H:i', $pl['time']) . '</small> &raquo; <small style="color:#606060;">';
if ($pl['fid'] == 24) {
$re .= $filter->str_count(str_replace('[?]', 'Вопрос: ', str_replace('[/?]', '', str_replace('[:]', ', ', $pl['text']))), 250);
@@ -684,7 +684,7 @@ class forum
}
//проверяем уровень доступа
$this->gd[$pl['id']] = $ico;
$ico = '<img width="10" height="10" title="' . $this->acs[$ico] . '" src="https://new-combats.com/forum_script/img/ic_acc' . $ico . '.gif">';
$ico = '<img width="10" height="10" title="' . $this->acs[$ico] . '" src="/forum_script/img/ic_acc' . $ico . '.gif">';
$rt = '' . $ico . ' <a href="?r=' . $pl['id'] . '&rnd=' . $code . '"><b>' . $pl['name'] . '</b></a>';
} else {
$rt = 'Раздел не найден';
+39 -39
View File
@@ -140,7 +140,7 @@ $dost = [
<html>
<head>
<link rel="canonical" href="https://new-combats.com/forum"/>
<link rel="canonical" href="/forum"/>
<title>Форум браузерной онлайн игры Новый «Бойцовский клуб»</title>
<meta name="description"
content="Здесь участники проекта New Combats ? имеют возможность обсудить любые игровые темы, посвященные игре БК. Присоединяйтесь к общению с игроками популярной MMORPG."/>
@@ -183,13 +183,13 @@ $dost = [
width: 100%;
height: 135px;
text-align: center;
background-image: url(https://new-combats.com/forum_script/img/line_capitalcity.jpg);
background-image: url(/forum_script/img/line_capitalcity.jpg);
}
#footer {
width: 100%;
text-align: center;
background-image: url(https://new-combats.com/forum_script/img/footer_capitalcity.jpg);
background-image: url(/forum_script/img/footer_capitalcity.jpg);
background-repeat: repeat-x;
padding-top: 13px;
background-color: #000000;
@@ -201,7 +201,7 @@ $dost = [
}
#leftground {
background-image: url(https://new-combats.com/forum_script/img/leftground.jpg);
background-image: url(/forum_script/img/leftground.jpg);
}
.text {
@@ -227,13 +227,13 @@ $dost = [
.answ1:hover {
background-color: #EBDCA0;
background-image: url(https://new-combats.com/forum_script/img/ao.png);
background-image: url(/forum_script/img/ao.png);
cursor: pointer;
}
.answ1h {
background-color: #EBDCA0;
background-image: url(https://new-combats.com/forum_script/img/ao.png);
background-image: url(/forum_script/img/ao.png);
cursor: pointer;
}
@@ -374,7 +374,7 @@ $dost = [
div.fixed_topik {
background-color: #EBDCA0;
background-image: url(https://new-combats.com/forum_script/img/ao.png);
background-image: url(/forum_script/img/ao.png);
background-repeat: repeat-x;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
@@ -388,7 +388,7 @@ $dost = [
div.fixed_topik_in {
background-color: #EBDCA0;
background-image: url(https://new-combats.com/forum_script/img/ao.png);
background-image: url(/forum_script/img/ao.png);
background-repeat: repeat-x;
margin-right: 120px;
-webkit-border-radius: 8px;
@@ -452,7 +452,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
function acma(id) {
var html = '';
html += '<form method="post" action="https://new-combats.com/forum?read=<?=round(
html += '<form method="post" action="/forum?read=<?=round(
(int)$_GET['read']
)?>&page=<?=$_GET['page']?>">' +
'<table align="center">' +
@@ -493,12 +493,12 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<body>
<div id="windows" style="position:absolute;z-index:1101;"></div>
<div id="header"><a href="https://new-combats.com/forum/"><img src="https://new-combats.com/inx/newlogo.jpg" width="924"
<div id="header"><a href="/forum/"><img src="/inx/newlogo.jpg" width="924"
height="135"></a></div>
<div id="main">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="29" background="https://new-combats.com/forum_script/img/leftground.jpg">&nbsp;</td>
<td width="29" background="/forum_script/img/leftground.jpg">&nbsp;</td>
<td width="1" bgcolor="#F2E5B1">&nbsp;</td>
<td valign="top" bgcolor="#F2E5B1" align="left">
<!-- -->
@@ -552,7 +552,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<td width="210" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><img src="https://new-combats.com/forum_script/img/fone1.jpg"
<td valign="top"><img src="/forum_script/img/fone1.jpg"
width="118" height="257" style="margin-left:-15px;"></td>
</tr>
<tr>
@@ -593,7 +593,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td>
<div align="center"><img
src="https://new-combats.com/forum_script/img/icon7.gif"
src="/forum_script/img/icon7.gif"
width="15" height="15" title="Смайлики"> <a href="?smiles=1">Смайлики</a>
</div>
<br><br><br></td>
@@ -620,7 +620,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
?>
<td>
<div align="left"><img
src="https://new-combats.com/forum_script/img/news.gif"
src="/forum_script/img/news.gif"
width="16" height="16"> Страницы: <?php
echo $p_list; ?></div>
</td>
@@ -646,7 +646,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td>
<div align="left" style="margin-top:5px;"><img
src="https://new-combats.com/forum_script/img/news.gif"
src="/forum_script/img/news.gif"
width="16" height="16"> Страницы: <?php
echo $p_list; ?></div>
</td>
@@ -668,7 +668,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<td width="210" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><img src="https://new-combats.com/forum_script/img/fone1.jpg"
<td valign="top"><img src="/forum_script/img/fone1.jpg"
width="118" height="257" style="margin-left:-15px;"></td>
</tr>
<tr>
@@ -709,7 +709,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td>
<div align="center"><img
src="https://new-combats.com/forum_script/img/icon7.gif"
src="/forum_script/img/icon7.gif"
width="15" height="15" title="Смайлики"> <a href="?smiles=1">Смайлики</a>
</div>
<br><br><br></td>
@@ -736,7 +736,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
?>
<td>
<div align="left"><img
src="https://new-combats.com/forum_script/img/news.gif"
src="/forum_script/img/news.gif"
width="16" height="16"> Страницы: <?php
echo $p_list; ?></div>
</td>
@@ -762,7 +762,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td>
<div align="left" style="margin-top:5px;"><img
src="https://new-combats.com/forum_script/img/news.gif"
src="/forum_script/img/news.gif"
width="16" height="16"> Страницы: <?php
echo $p_list; ?></div>
</td>
@@ -780,7 +780,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
echo '<center><br>Вы не можете создавать топики в этой конференции<br><br></center>';
} elseif ($f->lst['time'] < time() - 60) { ?>
<form method="post"
action="https://new-combats.com/forum?r=<?php
action="/forum?r=<?php
echo $f->r . '&rnd=' . $code . ''; ?>">
<table align="center">
<tr>
@@ -824,71 +824,71 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
?>
<input type="radio" name="icon"
value="13" checked>
<img src="https://new-combats.com/forum_script/img/icon13.gif"
<img src="/forum_script/img/icon13.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="14">
<img src="https://new-combats.com/forum_script/img/icon14.gif"
<img src="/forum_script/img/icon14.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="6">
<img src="https://new-combats.com/forum_script/img/icon6.gif"
<img src="/forum_script/img/icon6.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="9">
<img src="https://new-combats.com/forum_script/img/icon9.gif"
<img src="/forum_script/img/icon9.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="1">
<img src="https://new-combats.com/forum_script/img/icon1.gif"
<img src="/forum_script/img/icon1.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="10">
<img src="https://new-combats.com/forum_script/img/icon10.gif"
<img src="/forum_script/img/icon10.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="11">
<img src="https://new-combats.com/forum_script/img/icon11.gif"
<img src="/forum_script/img/icon11.gif"
height="15" width="15"><BR>
<input type="radio" name="icon"
value="12">
<img src="https://new-combats.com/forum_script/img/icon12.gif"
<img src="/forum_script/img/icon12.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="2">
<img src="https://new-combats.com/forum_script/img/icon2.gif"
<img src="/forum_script/img/icon2.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="3">
<img src="https://new-combats.com/forum_script/img/icon3.gif"
<img src="/forum_script/img/icon3.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="4">
<img src="https://new-combats.com/forum_script/img/icon4.gif"
<img src="/forum_script/img/icon4.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="5">
<img src="https://new-combats.com/forum_script/img/icon5.gif"
<img src="/forum_script/img/icon5.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="7">
<img src="https://new-combats.com/forum_script/img/icon7.gif"
<img src="/forum_script/img/icon7.gif"
height="15" width="15">
&nbsp;
<input type="radio" name="icon"
value="8">
<img src="https://new-combats.com/forum_script/img/icon8.gif"
<img src="/forum_script/img/icon8.gif"
height="15" width="15">
<br/></td>
<td align="right" valign="top">
@@ -930,7 +930,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="118" valign="top"><img src="https://new-combats.com/forum_script/img/fone1.jpg"
<td width="118" valign="top"><img src="/forum_script/img/fone1.jpg"
width="118" height="257" style="margin-left:-15px;"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -984,7 +984,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td style="padding-top:11px; padding-bottom:11px;" align="left">
<div style="float:left"><h4><img
src="https://new-combats.com/forum_script/img/icon<?php
src="/forum_script/img/icon<?php
echo $f->see['ico']; ?>.gif"> <a href="?r=<?php
echo $f->fm['id'] . '&rnd=' . $code; ?>"><b><?php
echo $f->fm['name']; ?></b></a> &gt; <?php
@@ -1099,7 +1099,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
) . ' сек.<br><br></center>';
} elseif ($f->lst['time'] < time() - 60) { ?>
<form method="post"
action="https://new-combats.com/forum?read=<?php
action="/forum?read=<?php
echo $f->see['id'] . '&rnd=' . $code . ''; ?>">
<table align="center">
<tr>
@@ -1167,7 +1167,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<tr>
<td valign="middle" align="center">
<strong>Ошибка:</strong> <?= $f->error ?><br>
<a href="https://new-combats.com/forum?rnd=<?= $code ?>">Вернуться на форум</a>
<a href="/forum?rnd=<?= $code ?>">Вернуться на форум</a>
</td>
</tr>
</table>
@@ -1176,7 +1176,7 @@ function MM_jumpMenu(targ, selObj, restore) { //v3.0
<!-- -->
</td>
<td width="1" bgcolor="#F2E5B1">&nbsp;</td>
<td width="24" background="https://new-combats.com/forum_script/img/rightground.jpg">&nbsp;</td>
<td width="24" background="/forum_script/img/rightground.jpg">&nbsp;</td>
</tr>
</table>
</div>