Отказ от абсолютных ссылок 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
+4 -4
View File
@@ -218,7 +218,7 @@ if ($u->info['ability'] > 0 || $u->info['skills'] > 0) {
?>
&nbsp;<br>
Опыт:&nbsp;<a href="https://new-combats.com/exp" target="_blank"><?= number_format(
Опыт:&nbsp;<a href="/exp" target="_blank"><?= number_format(
$u->info['exp'], 0, ",", " "
); ?></a><br/>
Уровень:&nbsp;<?= $u->info['level']; ?><br/>
@@ -232,7 +232,7 @@ if ($u->info['ability'] > 0 || $u->info['skills'] > 0) {
<?php
if ($u->stats['pbe'] > 0) {
echo '<a href="https://new-combats.com/news/268/" target="_blank">Бонус покупателя:&nbsp;' . $u->stats['pbe'] . '&nbsp;уровень</a>';
echo '<a href="/news/268/" target="_blank">Бонус покупателя:&nbsp;' . $u->stats['pbe'] . '&nbsp;уровень</a>';
$nowby = mysql_fetch_array(
mysql_query(
'SELECT `good` FROM `pay_operation` WHERE `uid` = "' . $u->info['id'] . '" AND `good` > 0 ORDER BY `good` DESC LIMIT 1'
@@ -285,7 +285,7 @@ if ($u->stats['pbe'] > 0) {
function myWindow5(e) {// создать iframe и добавить его после кнопки
if (e.nextSibling.nodeName.toLowerCase() !== "iframe") {// если после кнопки нет iframe
var iframe = document.createElement('iframe');
iframe.setAttribute('src', 'https://new-combats.com/bonuss.php');
iframe.setAttribute('src', '/bonuss.php');
iframe.setAttribute('height', '150');
iframe.setAttribute('style', 'width:164px; background-color: rgba(255, 255, 255, 0); padding: 0px 8px 3px 8px; box-shadow: 0px 0px 15px 0px rgba(1, 2, 4, 0.25); float: left; -webkit-transition: .2s ease-out; -o-transition: .2s ease-out; moz-transition: .2s ease-out; transition: .2s ease-out; margin: 0; z-index: 3;');
e.parentNode.insertBefore(iframe, e.nextSibling);
@@ -293,7 +293,7 @@ if ($u->stats['pbe'] > 0) {
}
</script>
<style>
iframe[src^="https://new-combats.com/bonuss.php"] { /* какой-то стиль у iframe. Его можно отцентрировать стилями CSS по центру окна браузера, сделать общий фон страницы затуманенным */
iframe[src^="/bonuss.php"] { /* какой-то стиль у iframe. Его можно отцентрировать стилями CSS по центру окна браузера, сделать общий фон страницы затуманенным */
width: 100%;
border: none;
}