diff --git a/website/button.js b/website/button.js new file mode 100644 index 0000000..9bd8724 --- /dev/null +++ b/website/button.js @@ -0,0 +1,17 @@ +const realFileBtn = document.getElementById("real-file"); +const customBtn = document.getElementById("custom-button"); +const customTxt = document.getElementById("custom-text"); + +customBtn.addEventListener("click", function() { + realFileBtn.click(); +}); + +realFileBtn.addEventListener("change", function() { + if (realFileBtn.value) { + customTxt.innerHTML = realFileBtn.value.match( + /[\/\\]([\w\d\s\.\-\(\)]+)$/ + )[1]; + } else { + customTxt.innerHTML = "No file chosen, yet."; + } +}); diff --git a/website/clientIP.php b/website/clientIP.php new file mode 100644 index 0000000..e8b8287 --- /dev/null +++ b/website/clientIP.php @@ -0,0 +1,7 @@ + diff --git a/website/dbcon.php b/website/dbcon.php index 3c9518f..8a1738b 100644 --- a/website/dbcon.php +++ b/website/dbcon.php @@ -1,5 +1,5 @@
-