Отказ от абсолютных ссылок https://new-combats.com/* к относительным /*. Замена https://img.new-combats.com на //img.new-combats.tech.
This commit is contained in:
+32
-32
@@ -786,7 +786,7 @@ class Battle
|
||||
$ef = '';
|
||||
$i = 0;
|
||||
if ($u->info['seff'] < 1) {
|
||||
$ef .= '<div class=\"pimg\" pog=\"0\" col=\"0\" stl=\"0\" stt=\"Свернуть\"><img src=\"https://img.new-combats.com/i/eff/effs_hide.gif\"/ onclick=\"top.useMagicBattle(\'Свернуть\',7777,\'effs_show.gif\',1,2);\" onmouseover=\"top.hi(this,\'<strong>Свернуть</strong>\',event,3,1,1,1,\'\');\" onmouseout=\"top.hic();\" onmousedown=\"top.hic();\"></div>';
|
||||
$ef .= '<div class=\"pimg\" pog=\"0\" col=\"0\" stl=\"0\" stt=\"Свернуть\"><img src=\"//img.new-combats.tech/i/eff/effs_hide.gif\"/ onclick=\"top.useMagicBattle(\'Свернуть\',7777,\'effs_show.gif\',1,2);\" onmouseover=\"top.hi(this,\'<strong>Свернуть</strong>\',event,3,1,1,1,\'\');\" onmouseout=\"top.hic();\" onmousedown=\"top.hic();\"></div>';
|
||||
|
||||
while ($i != -1) {
|
||||
$nseef = 0;
|
||||
@@ -938,7 +938,7 @@ class Battle
|
||||
$ei .= '<br><i>Информация:</i><br>' . $eff[$i]['info'];
|
||||
}
|
||||
|
||||
$ef .= '<div class=\"pimg\" pog=\"' . $efix . '\" col=\"' . $eff[$i]['x'] . '\" stl=\"0\" stt=\"' . $ei . '\"><img src=\"https://img.new-combats.com/i/eff/' . $eff[$i]['img'] . '\"/></div>';
|
||||
$ef .= '<div class=\"pimg\" pog=\"' . $efix . '\" col=\"' . $eff[$i]['x'] . '\" stl=\"0\" stt=\"' . $ei . '\"><img src=\"//img.new-combats.tech/i/eff/' . $eff[$i]['img'] . '\"/></div>';
|
||||
unset($efix);
|
||||
}
|
||||
} elseif ($eff[$i] != 'delete') {
|
||||
@@ -947,17 +947,17 @@ class Battle
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
$ef .= '<div class=\"pimg\" pog=\"0\" col=\"0\" stl=\"0\" stt=\"Развернуть\"><img src=\"https://img.new-combats.com/i/eff/effs_show.gif\"/ onclick=\"top.useMagicBattle(\'Развернуть\',5555,\'effs_show.gif\',1,2);\" onmouseover=\"top.hi(this,\'<strong>Развернуть</strong>\',event,3,1,1,1,\'\');\" onmouseout=\"top.hic();\" onmousedown=\"top.hic();\"></div>';
|
||||
$ef .= '<div class=\"pimg\" pog=\"0\" col=\"0\" stl=\"0\" stt=\"Развернуть\"><img src=\"//img.new-combats.tech/i/eff/effs_show.gif\"/ onclick=\"top.useMagicBattle(\'Развернуть\',5555,\'effs_show.gif\',1,2);\" onmouseover=\"top.hi(this,\'<strong>Развернуть</strong>\',event,3,1,1,1,\'\');\" onmouseout=\"top.hic();\" onmousedown=\"top.hic();\"></div>';
|
||||
}
|
||||
$ca = '';
|
||||
if ($ur['clan'] > 0) {
|
||||
$cl = Db::getRow('select * from clan where id = ?', [$ur['clan']]);
|
||||
if (isset($cl['id'])) {
|
||||
$ca = '<img src=\"https://img.new-combats.com/i/clan/' . $cl['name_mini'] . '.gif\" title=\"' . $cl['name'] . '\">';
|
||||
$ca = '<img src=\"//img.new-combats.tech/i/clan/' . $cl['name_mini'] . '.gif\" title=\"' . $cl['name'] . '\">';
|
||||
}
|
||||
}
|
||||
if ($ur['align'] > 0) {
|
||||
$ca = '<img src=\"https://img.new-combats.com/i/align/align' . $ur['align'] . '.gif\">' . $ca;
|
||||
$ca = '<img src=\"//img.new-combats.tech/i/align/align' . $ur['align'] . '.gif\">' . $ca;
|
||||
}
|
||||
if ($ur['login2'] == '') {
|
||||
$ur['login2'] = $ur['login'];
|
||||
@@ -1001,7 +1001,7 @@ class Battle
|
||||
11 => 17, //кольцо 2
|
||||
12 => 18, //кольцо 3
|
||||
];
|
||||
$info = 'info_reflesh(' . $t . ',' . $ur['id'] . ',"' . $ca . '<a href=\"javascript:void(0)\" onclick=\"top.chat.addto(\'' . $ur['login2'] . '\',\'to\');return false;\">' . $ur['login2'] . '</a> [' . $ur['level'] . ']<a href=\"info/' . $ur['id'] . '\" target=\"_blank\"><img src=\"https://img.new-combats.com/i/inf_' . $ur['cityreg'] . '.gif\" title=\"Инф. о ' . $ur['login2'] . '\"></a> ","' . $ur['obraz'] . '",' . floor(
|
||||
$info = 'info_reflesh(' . $t . ',' . $ur['id'] . ',"' . $ca . '<a href=\"javascript:void(0)\" onclick=\"top.chat.addto(\'' . $ur['login2'] . '\',\'to\');return false;\">' . $ur['login2'] . '</a> [' . $ur['level'] . ']<a href=\"info/' . $ur['id'] . '\" target=\"_blank\"><img src=\"//img.new-combats.tech/i/inf_' . $ur['cityreg'] . '.gif\" title=\"Инф. о ' . $ur['login2'] . '\"></a> ","' . $ur['obraz'] . '",' . floor(
|
||||
$st['hpNow']
|
||||
) . ',' . floor($st['hpAll']) . ',' . floor(
|
||||
$st['mpNow']
|
||||
@@ -1346,12 +1346,12 @@ class Battle
|
||||
//
|
||||
$btxt = '';
|
||||
if ($id['align'] > 0) {
|
||||
$btxt = $btxt . '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $id['align'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $id['align'] . '.gif >';
|
||||
}
|
||||
if ($id['clan'] > 0) {
|
||||
$btxt = $btxt . '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $id['clan'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $id['clan'] . '.gif >';
|
||||
}
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
if ($id['sex'] == 1) {
|
||||
$btxt = $btxt . ' вмешалась в поединок.';
|
||||
} else {
|
||||
@@ -1405,12 +1405,12 @@ class Battle
|
||||
//
|
||||
$btxt = '';
|
||||
if ($id['align'] > 0) {
|
||||
$btxt = $btxt . '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $id['align'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $id['align'] . '.gif >';
|
||||
}
|
||||
if ($id['clan'] > 0) {
|
||||
$btxt = $btxt . '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $id['clan'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $id['clan'] . '.gif >';
|
||||
}
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
if ($id['sex'] == 1) {
|
||||
$btxt = $btxt . ' вмешалась в поединок.';
|
||||
} else {
|
||||
@@ -1446,12 +1446,12 @@ class Battle
|
||||
//
|
||||
$btxt = '';
|
||||
if ($id['align'] > 0) {
|
||||
$btxt = $btxt . '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $id['align'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $id['align'] . '.gif >';
|
||||
}
|
||||
if ($id['clan'] > 0) {
|
||||
$btxt = $btxt . '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $id['clan'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $id['clan'] . '.gif >';
|
||||
}
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
if ($id['sex'] == 1) {
|
||||
$btxt = $btxt . ' вмешалась в поединок.';
|
||||
} else {
|
||||
@@ -1491,12 +1491,12 @@ class Battle
|
||||
//
|
||||
$btxt = '';
|
||||
if ($id['align'] > 0) {
|
||||
$btxt = $btxt . '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $id['align'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $id['align'] . '.gif >';
|
||||
}
|
||||
if ($id['clan'] > 0) {
|
||||
$btxt = $btxt . '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $id['clan'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $id['clan'] . '.gif >';
|
||||
}
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
if ($id['sex'] == 1) {
|
||||
$btxt = $btxt . ' вмешалась в поединок.';
|
||||
} else {
|
||||
@@ -1540,12 +1540,12 @@ class Battle
|
||||
//
|
||||
$btxt = '';
|
||||
if ($id['align'] > 0) {
|
||||
$btxt = $btxt . '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $id['align'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $id['align'] . '.gif >';
|
||||
}
|
||||
if ($id['clan'] > 0) {
|
||||
$btxt = $btxt . '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $id['clan'] . '.gif >';
|
||||
$btxt = $btxt . '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $id['clan'] . '.gif >';
|
||||
}
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$btxt = $btxt . '<strong>{u1}</strong>[' . $id['level'] . ']<a href=info/' . $id['id'] . ' target=_blank ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
if ($id['sex'] == 1) {
|
||||
$btxt = $btxt . ' вмешалась в поединок.';
|
||||
} else {
|
||||
@@ -2008,12 +2008,12 @@ class Battle
|
||||
}
|
||||
if (isset($usr_real['id'])) {
|
||||
if ($usr_real['align'] > 0) {
|
||||
$usrreal .= '<img src=https://img.new-combats.com/i/align/align' . $usr_real['align'] . '.gif width=12 height=15 >';
|
||||
$usrreal .= '<img src=//img.new-combats.tech/i/align/align' . $usr_real['align'] . '.gif width=12 height=15 >';
|
||||
}
|
||||
if ($usr_real['clan'] > 0) {
|
||||
$usrreal .= '<img src=https://img.new-combats.com/i/clan/' . $usr_real['clan'] . '.gif width=24 height=15 >';
|
||||
$usrreal .= '<img src=//img.new-combats.tech/i/clan/' . $usr_real['clan'] . '.gif width=24 height=15 >';
|
||||
}
|
||||
$usrreal .= '<strong>' . $usr_real['login'] . '</strong>[' . $usr_real['level'] . ']<a target=_blank href=https://new-combats.com/info/' . $usr_real['id'] . ' ><img width=12 hiehgt=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$usrreal .= '<strong>' . $usr_real['login'] . '</strong>[' . $usr_real['level'] . ']<a target=_blank href=/info/' . $usr_real['id'] . ' ><img width=12 hiehgt=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
} else {
|
||||
$mereal = '<i>Невидимка</i>[??]';
|
||||
}
|
||||
@@ -2087,7 +2087,7 @@ class Battle
|
||||
$cmsg->setText(
|
||||
str_replace(
|
||||
'{b}',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>',
|
||||
$mon['nich_text']
|
||||
)
|
||||
);
|
||||
@@ -2101,12 +2101,12 @@ class Battle
|
||||
if ($this->stats[$j]['hpNow'] > 0) {
|
||||
$usrwin .= ', ';
|
||||
if ($this->users[$j]['align'] > 0) {
|
||||
$usrwin .= '<img width=12 height=15 src=https://img.new-combats.com/i/align/align' . $this->users[$j]['align'] . '.gif >';
|
||||
$usrwin .= '<img width=12 height=15 src=//img.new-combats.tech/i/align/align' . $this->users[$j]['align'] . '.gif >';
|
||||
}
|
||||
if ($this->users[$j]['clan'] > 0) {
|
||||
$usrwin .= '<img width=24 height=15 src=https://img.new-combats.com/i/clan/' . $this->users[$j]['clan'] . '.gif >';
|
||||
$usrwin .= '<img width=24 height=15 src=//img.new-combats.tech/i/clan/' . $this->users[$j]['clan'] . '.gif >';
|
||||
}
|
||||
$usrwin .= '<strong>' . $this->users[$j]['login'] . '</strong> [' . $this->users[$j]['level'] . ']<a target=_blank href=info/' . $this->users[$j]['id'] . ' ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>';
|
||||
$usrwin .= '<strong>' . $this->users[$j]['login'] . '</strong> [' . $this->users[$j]['level'] . ']<a target=_blank href=info/' . $this->users[$j]['id'] . ' ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>';
|
||||
}
|
||||
}
|
||||
$j++;
|
||||
@@ -2129,7 +2129,7 @@ class Battle
|
||||
$cmsg->setText(
|
||||
str_replace(
|
||||
'{b}',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>',
|
||||
str_replace('{u}', $usrwin, $mon['win_text'])
|
||||
)
|
||||
);
|
||||
@@ -2148,7 +2148,7 @@ class Battle
|
||||
$cmsg->setText(
|
||||
str_replace(
|
||||
'{b}',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=https://img.new-combats.com/i/inf_capitalcity.gif ></a>',
|
||||
'<strong>' . $this->users[$i]['login'] . '</strong> [' . $this->users[$i]['level'] . ']<a target=_blank href=info/' . $this->users[$i]['id'] . ' ><img width=12 height=11 src=//img.new-combats.tech/i/inf_capitalcity.gif ></a>',
|
||||
$mon['lose_text']
|
||||
)
|
||||
);
|
||||
@@ -9666,7 +9666,7 @@ class Battle
|
||||
}
|
||||
$ldr = '';
|
||||
if ($this->users[$i]['lider'] == $this->info['id']) {
|
||||
$ldr = '<img width=24 height=15 title=Лидер группы src=https://img.new-combats.com/i/lead' . $this->users[$i]['team'] . '.gif \>';
|
||||
$ldr = '<img width=24 height=15 title=Лидер группы src=//img.new-combats.tech/i/lead' . $this->users[$i]['team'] . '.gif \>';
|
||||
}
|
||||
$teams[$this->users[$i]['team']] .= ', ' . $ldr . '<span ' . $a1ms . ' class=\"CSSteam' . $this->users[$i]['team'] . '\" onClick=\"top.chat.addto(\'' . $this->users[$i]['login2'] . '\',\'to\'); return false;\" oncontextmenu=\"top.infoMenu(\'' . $this->users[$i]['login2'] . '\',event,\'main\'); return false;\">' . $this->users[$i]['login2'] . '</span><small> [' . floor(
|
||||
$this->stats[$i]['hpNow']
|
||||
@@ -9680,7 +9680,7 @@ class Battle
|
||||
while ($i < count($tms)) {
|
||||
$teams[$tms[$i]] = ltrim($teams[$tms[$i]], ', ');
|
||||
if ($teams[$tms[$i]] != '') {
|
||||
$teams[$tms[$i]] = '<img src=\"https://img.new-combats.com/i/lock3.gif\" style=\"cursor:pointer\" width=\"20\" height=\"15\" onClick=\"top.chat.addto(\'team' . $tms[$i] . '\',\'private\'); return false;\"> ' . $teams[$tms[$i]];
|
||||
$teams[$tms[$i]] = '<img src=\"//img.new-combats.tech/i/lock3.gif\" style=\"cursor:pointer\" width=\"20\" height=\"15\" onClick=\"top.chat.addto(\'team' . $tms[$i] . '\',\'private\'); return false;\"> ' . $teams[$tms[$i]];
|
||||
$ret .= $teams[$tms[$i]];
|
||||
if (count($tms) > $i + 1) {
|
||||
$ret .= ' <span class=\"CSSvs\"> против </span> ';
|
||||
|
||||
Reference in New Issue
Block a user