diff --git a/upload/index.php b/upload/index.php new file mode 100644 index 0000000..3cd1011 --- /dev/null +++ b/upload/index.php @@ -0,0 +1,56 @@ +open($target_path); + if ($x === true) { + $oldname = $zip->getNameIndex(0); + $zip->extractTo("c:\\xampp\\htdocs\\drip\\upload\\"); // change this to the correct site path + $zip->close(); + rename("c:\\xampp\\htdocs\\drip\\upload\\".$oldname,"c:\\xampp\\htdocs\\drip\\xdrip.sqlite"); + unlink($target_path); + } + $message = "Click Here to import new data."; + } else { + $message = "There was a problem with the upload. Please try again."; + } +} +?> + + +
+ +