Autofix small errors

This commit is contained in:
Igor Barkov [iwork]
2019-01-16 19:45:30 +02:00
parent d330721114
commit 094b8a6027
313 changed files with 736 additions and 2280 deletions

View File

@@ -1043,17 +1043,17 @@ if ($_POST['login'] && $_POST['krest']) {
?>
<script type="text/javascript">
var xmlHttpp = [];
const xmlHttpp = [];
function ajax_func(func, iid, getpar, postpar) {
xmlHttpp[iid] = GetXmlHttpObject1();
if (xmlHttpp[iid] == null) {
alert("Browser does not support HTTP Request")
alert("Browser does not support HTTP Request");
return
}
document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />";
var url = "./ajax/" + func + ".php"
url = url + "?" + getpar
var url = "./ajax/" + func + ".php";
url = url + "?" + getpar;
xmlHttpp[iid].open("POST", url, true);
xmlHttpp[iid].onreadystatechange = function () {
if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") {
@@ -1063,13 +1063,13 @@ if ($_POST['login'] && $_POST['krest']) {
document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText;
document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10;
}
}
};
xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttpp[iid].send(postpar);
}
function GetXmlHttpObject1() {
var xmlHttp1 = null;
let xmlHttp1 = null;
try {
xmlHttp1 = new XMLHttpRequest();
}
@@ -1085,7 +1085,7 @@ if ($_POST['login'] && $_POST['krest']) {
}
function show(ele) {
var srcElement = document.getElementById(ele);
const srcElement = document.getElementById(ele);
if (srcElement != null) {
if (srcElement.style.display == "block") {
srcElement.style.display = 'none';
@@ -1095,8 +1095,8 @@ if ($_POST['login'] && $_POST['krest']) {
}
}
var Hint3Name = '';
var Hint3Closed = false;
let Hint3Name = '';
let Hint3Closed = false;
function runmagic0(title, magic, name) {
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</b></BIG></td></tr><tr><td colspan=2>' +
@@ -1248,17 +1248,17 @@ if ($_POST['login'] && $_POST['krest']) {
</script>
<script>
var xmlHttpp = []
var xmlHttpp = [];
function ajax_func(func, iid, getpar, postpar) {
xmlHttpp[iid] = GetXmlHttpObject1()
xmlHttpp[iid] = GetXmlHttpObject1();
if (xmlHttpp[iid] == null) {
alert("Browser does not support HTTP Request")
alert("Browser does not support HTTP Request");
return
}
document.getElementById(iid).innerHTML = "<img src='../i/loading2.gif' />";
var url = "./ajax/" + func + ".php"
url = url + "?" + getpar
var url = "./ajax/" + func + ".php";
url = url + "?" + getpar;
xmlHttpp[iid].open("POST", url, true);
xmlHttpp[iid].onreadystatechange = function () {
if (xmlHttpp[iid].readyState == 4 || xmlHttpp[iid].readyState == "complete") {
@@ -1268,13 +1268,13 @@ if ($_POST['login'] && $_POST['krest']) {
document.getElementById(iid).innerHTML = xmlHttpp[iid].responseText;
document.getElementById('chat').scrollTop = document.getElementById('chat').scrollHeight + 10;
}
}
};
xmlHttpp[iid].setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttpp[iid].send(postpar);
}
function GetXmlHttpObject1() {
var xmlHttp1 = null;
let xmlHttp1 = null;
try {
// Firefox, Opera 8.0+, Safari
xmlHttp1 = new XMLHttpRequest();

View File

@@ -26,4 +26,3 @@ while($check++ < $clans) {
}
}
?>

View File

@@ -184,4 +184,4 @@ if($res[0]!=$res2[0])
}
?>