Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
function onload() {
var d=document.images;
var wait="wait.gif#";
for(item of d) {
var s=item.src;
if (s.indexOf(wait)>0) {
item.src=s.replace("wait.gif#", "");
}
};
if(parent.iframe!=null) {
if (parent.iframe.document.body.innerHTML!="1") {
}
}
}
var uploadStatus='none';
var uploadLoaded=0;
var uploadTotal=0;
var ClientList = new Array();
function uploadCheck(t,maxsize,types) {
var fileList = t.files;
types=","+types+",";
var count=0;
document.getElementById("progress").value=0;
document.getElementById("prozent").innerHTML = "0%";
document.getElementById("msg").innerHTML="Keine Datei ausgewählt\n";
document.getElementById("response").innerHTML="";
alert('q');
for (file of fileList) {
parts = file.name.split(".");
if (parts.length<2) {
document.getElementById("msg").innerHTML = "Dateiname hat keine Dateiendung";
return 1;
}
if(types.indexOf(parts[parts.length-1])==false) {
document.getElementById("msg").innerHTML = "Dateiname hat keine Dateiendung";
return 1;
}
if (file.size>=maxsize) {
document.getElementById("msg").innerHTML = "Dateigröße von "+file.name+" darf nicht größer als "+maxsize+" sein";
return 1;
}
count++;
uploadTotal+=file.size;
}
document.getElementById("msg").innerHTML=count+" Dateien ausgewählt\n";
t.disabled=true;
t.form.elements['abort'].disabled=false;
upload(t);
}
function upload(t) {
var filedata = t;
var formData = new FormData();
document.getElementById("msg").innerHTML+="starte hochladen\n";
document.getElementById("status").innerHTML="starte hochladen";
var loaded=0;
var total=0;
for(item of t.form.elements) {
switch (item.type) {
case 'hidden':
formData.append(item.name, item.value);
break;
case 'file':
for(const file of item.files) {
total+=file.size;
}
break;
}
}
for(item of t.form.elements) {
switch (item.type) {
case 'file':
var i=0;
uploadStatus="wait";
for(const file of item.files) {
formData.delete("filedata");
formData.append("filedata",file);
uploadFile(formData,file.name,i,item.files.length,file.size);
i++;
}
break;
}
}
uploadFinish();
}
function uploadFinish() {
if(uploadStatus=="abort") {
document.getElementById("msg").innerHTML += "Upload abgebrochen\n";
} else {
if(uploadStatus!="finish") {
setTimeout(function(){ uploadFinish(); }, 200);
return 0;
}
if (uploadLoaded!=uploadTotal) {
document.getElementById("msg").innerHTML+="Daten unvollständig "+uploadLoaded+"/"+uploadTotal+"\n";
document.getElementById("status").innerHTML="Daten unvollständig "+uploadLoaded+"/"+uploadTotal;
} else {
document.getElementById("msg").innerHTML+="abgeschlossen\n";
document.getElementById("status").innerHTML = "abgeschlossen";
}
}
document.getElementById("progress").value=100;
document.getElementById("prozent").innerHTML = "100%";
document.forms[0].elements['filedata'].disabled=false;
document.forms[0].elements['abort'].disabled=true;
uploadStatus="none";
}
function uploadFile(formData,filename,i,count,size) {
if (uploadStatus=="abort") {
return 0;
}
if (uploadStatus=="running") {
setTimeout(function(){ uploadFile(formData,filename,i,count,size); }, 200);
return 0;
}
uploadStatus="running";
var prozent=100/uploadTotal*uploadLoaded;
document.getElementById("msg").innerHTML+="sende Datei "+filename+" ("+(i+1)+"/"+count+")\n";
document.getElementById("status").innerHTML="sende Datei "+filename+" ("+(i+1)+"/"+count+")\n";
client = new XMLHttpRequest();
client.onerror = function(e) {
document.getElementById("msg").innerHTML += "Fehler bei Kommunikation";
};
client.onload = function(e) {
if (client.readyState === client.DONE) {
if (client.status === 200) {
var errortxt='';
var tag='';
var txt=client.response;
document.getElementById("msg").innerHTML+="Antwort Länge="+client.response.length+"\n";
var a=client.response.indexOf(tag);
if (a>=0) {
a+=tag.length;
txt=txt.substr(a);
var b=txt.lastIndexOf('
');
if (b>=0) {
txt=txt.substring(0,b);
var c=txt.lastIndexOf('');
if (c>=0) {
txt=txt.substring(0,c);
txt=txt.trim();
}
}
}
document.getElementById("response").innerHTML+=txt+"------------------------------------------\n";
if(errortxt!="") {
document.getElementById("msg").innerHTML = errortxt;
} else {
document.getElementById("msg").innerHTML += "Datei '"+filename+"' empfangen\n";
}
} else {
document.getElementById("msg").innerHTML += "Falscher Status\n";
}
} else {
document.getElementById("msg").innerHTML += "nicht abgeschlossen\n";
}
uploadStatus="wait";
if (i+1==count) {
uploadStatus="finish";
}
};
client.upload.onprogress = function(e) {
var p = Math.round((uploadLoaded+(e.loaded/e.total)*size)/uploadTotal*100);
document.getElementById("progress").value=p;
document.getElementById("prozent").innerHTML=p+"%";
if (e.loaded==e.total) {
uploadLoaded+=size;
}
};
client.onabort = function(e) {
//document.getElementById("msg").innerHTML += "Upload abgebrochen\n";
};
client.open("POST", "?");
client.send(formData);
ClientList.push(client);
}
function uploadAbort() {
for(c of ClientList) {
if (c instanceof XMLHttpRequest) {
c.abort();
}
}
uploadStatus="abort";
}
function md5(inputString) {
var hc="0123456789abcdef";
function rh(n) {var j,s="";for(j=0;j<=3;j++) s+=hc.charAt((n>>(j*8+4))&0x0F)+hc.charAt((n>>(j*8))&0x0F);return s;}
function ad(x,y) {var l=(x&0xFFFF)+(y&0xFFFF);var m=(x>>16)+(y>>16)+(l>>16);return (m<<16)|(l&0xFFFF);}
function rl(n,c) {return (n<>>(32-c));}
function cm(q,a,b,x,s,t) {return ad(rl(ad(ad(a,q),ad(x,t)),s),b);}
function ff(a,b,c,d,x,s,t) {return cm((b&c)|((~b)&d),a,b,x,s,t);}
function gg(a,b,c,d,x,s,t) {return cm((b&d)|(c&(~d)),a,b,x,s,t);}
function hh(a,b,c,d,x,s,t) {return cm(b^c^d,a,b,x,s,t);}
function ii(a,b,c,d,x,s,t) {return cm(c^(b|(~d)),a,b,x,s,t);}
function sb(x) {
var i;var nblk=((x.length+8)>>6)+1;var blks=new Array(nblk*16);for(i=0;i>2]|=x.charCodeAt(i)<<((i%4)*8);
blks[i>>2]|=0x80<<((i%4)*8);blks[nblk*16-2]=x.length*8;return blks;
}
var i,x=sb(inputString),a=1732584193,b=-271733879,c=-1732584194,d=271733878,olda,oldb,oldc,oldd;
for(i=0;i
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42
Deprecated: Function strftime() is deprecated in /var/www/vhosts/h8141.web82.alfahosting-server.de/html/photonicware/error.php on line 42