????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.221.79.24 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.notes-online.se/symbols/notes/golv/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> <style> input { height: 60px; width: 150px; } .text { font-family: "Arial Black", Gadget, sans-serif; } </style> <script> function showCSV(){ var companyid = extractValue("companyid"); window.open("excel_html.php?companyId="+companyid,"_blank"); } function init(){ var path = extractValue("drawingpath"); var companyid = extractValue("companyid"); var forvaltningsid = path.substr(path.lastIndexOf("/A")+2,4); localStorage.setItem("Current_forvaltningsid",forvaltningsid); if(localStorage.getItem("Synced_"+companyid+"_"+path) != "Spara"){ document.getElementById("start").value = "Checka ut!"; }else{ document.getElementById("start").value = "Checka in!"; } document.getElementById("temp_path").innerHTML = "Fil: "+path.substr(19,100); // Ignore: /Notes Online Files/ } // Extract variable from url function extractValue(variable){ var url = decodeURIComponent(document.location.toString()); var value = url.substring(url.indexOf(variable+"=") + variable.length + 1); var pos = value.indexOf("&"); if(pos !== -1){ return value.substring(0, pos); }else{ return value; } } function delete_permission(){ var path = extractValue("drawingpath"); var companyid = extractValue("companyid"); path = path.substr(0,path.lastIndexOf("#")); var c = confirm("Är du säker på att du vill nollställa rättigheterna för: "+path); if(c == true){ if(checkIfInternet() == true){ var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.readyState==4 && xmlhttp.status==200) { alert("Rättigheterna är nollställda! Testa att checka ut filen på nytt!"); }else{ alert("Något gick fel vid anropet, var god försök igen!\nFelkoder: "+xmlhttp.status+" : "+xmlhttp.readyState + ":" + data.length); } } }; xmlhttp.open("POST","http://www.notes-online.se/symbols/notes/reklam/reset_permissions.php",true); xmlhttp.send("companyid="+companyid+"&drawingpath="+path); } } } function delete_cache(){ var c = confirm("Är du säker på att du vill tömma cachen? All osynkad data kommer att försvinna!"); if(c == true){ localStorage.removeItem("DATA"); for (var key in localStorage){ /*if(key.indexOf("Synced_") !== -1){ localStorage.removeItem(key); }*/ if(key.indexOf("SENDTOSERVER") !== -1){ localStorage.removeItem(key); } if(key.indexOf("_count") !== -1){ localStorage.removeItem(key); } if(key.indexOf("highest") !== -1){ localStorage.removeItem(key); } } } } function sync(){ var path = extractValue("drawingpath"); var companyid = extractValue("companyid"); if(localStorage.getItem("Synced_"+companyid+"_"+path) == null || localStorage.getItem("Synced_"+companyid+"_"+path) == undefined || localStorage.getItem("Synced_"+companyid+"_"+path) == "" ){ get_data(); }else if(localStorage.getItem("Synced_"+companyid+"_"+path) == "Spara"){ submit_data(); }else{ get_data(); } } function addZeros(n) { return (n<10? '00' : n<100? '0' : '') + n; } function get_data(){ var xmlhttp = new XMLHttpRequest(); var path = extractValue("drawingpath"); var companyid = extractValue("companyid"); var forvaltningsid = localStorage.getItem("Current_forvaltningsid"); xmlhttp.open("POST","http://www.notes-online.se/symbols/notes/reklam/getData.php",false); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("companyid="+extractValue("companyid")+"&username="+extractValue("username")+"&drawingpath="+extractValue("drawingpath")+"&forvaltningsid="+forvaltningsid); if(xmlhttp.status == 200){ var arr = xmlhttp.responseText.split("###"); if(arr[0].indexOf("ERROR") < 0){ var stationID = ""; var forvaltningsid = localStorage.getItem("Current_forvaltningsid"); var highestCountArr = arr[arr.length-1].split("@"); var highestLPT = highestCountArr[0]; var highestPUC = highestCountArr[1]; var highestTBN = highestCountArr[2]; var highestELA = highestCountArr[3]; var LPT_count = localStorage.getItem(forvaltningsid+"LPT_count"); var PUC_count = localStorage.getItem(forvaltningsid+"PUC_count"); var TBN_count = localStorage.getItem(forvaltningsid+"TBN_count"); var ELA_count = localStorage.getItem(forvaltningsid+"ELA_count"); if(highestLPT < LPT_count){ localStorage.setItem(forvaltningsid+"LPT_count",LPT_count); }else{ localStorage.setItem(forvaltningsid+"LPT_count",highestLPT); } if(highestPUC < PUC_count){ localStorage.setItem(forvaltningsid+"PUC_count",PUC_count); }else{ localStorage.setItem(forvaltningsid+"PUC_count",highestPUC); } if(highestTBN < TBN_count){ localStorage.setItem(forvaltningsid+"TBN_count",TBN_count); }else{ localStorage.setItem(forvaltningsid+"TBN_count",highestTBN); } if(highestELA < ELA_count){ localStorage.setItem(forvaltningsid+"ELA_count",ELA_count); }else{ localStorage.setItem(forvaltningsid+"ELA_count",highestELA); } arr.splice(arr.length-1, 1); var x = 0; for (var a in arr){ if(arr[x] != ""){ var obj = JSON.parse(arr[x]); }else{ var obj = null; } var y = 0; for(var o in obj){ if(obj[y][0] == "localStorageName"){ localStorage.setItem(obj[y][2],arr[x]); } if(obj[y][0] == "installationsid"){ stationID = obj[y][2].substr(0,4); } y++; } x++; } localStorage.setItem(stationID+"LPT_count",addZeros(highestLPT++)); localStorage.setItem(stationID+"PUC_count",addZeros(highestPUC++)); localStorage.setItem(stationID+"ELA_count",addZeros(highestELA++)); localStorage.setItem(stationID+"TBN_count",addZeros(highestTBN++)); localStorage.setItem("Synced_"+companyid+"_"+path,"Spara"); document.getElementById("start").value = "Checka in!"; alert("Filen har checkats ut och kan inte ändras av någon annan än dig!"); }else{ alert(arr[0]); } }else{ alert("Något gick fel vid hämtningen, var god försök igen!"); } } function submit_data(){ if(checkIfInternet() == true){ var data = ""; var path = ""; for (var key in localStorage){ if(key.indexOf("SENDTOSERVER") !== -1){ data += localStorage.getItem(key) + "###"; //path = key.substr(13,500); } } //localStorage.setItem("DATA",data); var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.readyState==4 && xmlhttp.status==200) { alert(xmlhttp.responseText); document.getElementById("start").value = "Checka ut!"; localStorage.setItem("Synced_"+companyid+"_"+path,"Hämta"); // Aktivera när allt funkar var storedDataName = "SENDTOSERVER_"+localStorage.getItem("companyid")+"_"+localStorage.getItem("drawingpath"); for (var key in localStorage){ if(key.indexOf(storedDataName) !== -1){ localStorage.removeItem(key); } } }else{ alert("Något gick fel vid synkronisering, var god försök igen!\nFelkoder: "+xmlhttp.status+" : "+xmlhttp.readyState + ":" + data.length); } } }; var path = extractValue("drawingpath"); var companyid = extractValue("companyid"); xmlhttp.open("POST","http://www.notes-online.se/symbols/notes/sllas/saveData.php",true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); var forvaltningsid = localStorage.getItem("Current_forvaltningsid"); var highestLPT = localStorage.getItem(forvaltningsid+"LPT_count"); var highestPUC =localStorage.getItem(forvaltningsid+"PUC_count"); var highestTBN = localStorage.getItem(forvaltningsid+"TBN_count"); var highestELA = localStorage.getItem(forvaltningsid+"ELA_count"); if(highestLPT == "null"){ highestLPT = "000"; } if(highestPUC == "null"){ highestPUC = "000"; }if(highestTBN == "null"){ highestTBN = "000"; }if(highestELA == "null"){ highestELA = "000"; } xmlhttp.send("data="+data+"&companyid="+companyid+"&drawingpath="+path+"&highestLPT="+highestLPT+"&highestPUC="+highestPUC+"&highestTBN="+highestTBN+"&highestELA="+highestELA+"&forvaltningsid="+forvaltningsid); // xmlhttp.onreadystatechange=function(){ // } }else{ alert("Det gick inte att ansluta till servern. Kontrollera din Internetanslutning och försök igen!"); } } function checkIfInternet(){ var req = new XMLHttpRequest(); req.open('GET', "http://www.notes-online.se", false); req.send(null); if(req.status == 200){ return true; }else{ return false; } } function fillTextArea(){ var data = ""; var path = ""; var x = 0; for (var key in localStorage){ if( x >= 2000 && x <= 2500){ if(key.indexOf("SENDTOSERVER") !== -1 ){ data += localStorage.getItem(key) + "###"; //path = key.substr(13,500); } } x++; } document.getElementById("textarea").value = data; } </script> </head> <body onload="init();"> <center> <a name="TOP" id="ADVANCED2"></a> <input name="start" id="start" type="button" value="Spara!" style="font-size:16px" onclick="sync();"/> <br /> <br /> <span class="text"> <div id="temp_path"></div> </span> <p><span class="text"> </span> <input name="start5" id="start5" type="button" value="Exportera PDF och bilder!" style="font-size:16px;width:210px" onclick="document.location.href='ExportToNotesServer://EXPORT'"/> <input name="start4" id="start4" type="button" value="Spara utan att Exportera!" style="font-size:16px;width:210px" onclick="document.location.href='Save://SAVE'"/> <br /> <span class="text"><br /> <a href="#ADVANCED">Avancerade funktioner >></a><br /> <br /> <br /> <br /> <br /> SPECIAL:</span><br /> <input name="start3" id="start3" type="button" value="Ta bort CACHE!" style="font-size:16px" onclick="delete_cache();"/> <input name="start2" id="start2" type="button" value="Nollställ rättigheter!" style="font-size:16px" onclick="delete_permission();"/> <br /> </p> <p><a href="#TOP"><span class="text">Tillbaka</span></a><br /> </p> <p><a name="ADVANCED" id="ADVANCED"></a> <br /> </p> <p> </p> <p><br /> </p> </center> <p> <!-- <form action="mailto.php" method="post" enctype="application/x-www-form-urlencoded"> <textarea name="textarea" id="textarea" cols="55" rows="10"></textarea> <a href="javascript:fillTextArea();">Fyll</a> <input name="" type="submit" /> </form> --> </p> </body> </html>