diff --git a/index.php b/index.php index cb78cf6..0e73c5b 100644 --- a/index.php +++ b/index.php @@ -5,6 +5,8 @@ include "db/functions.php"; session_start(); + + if(empty($_SESSION['csrf_token'])){ $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); } @@ -253,197 +255,6 @@
- + \ No newline at end of file diff --git a/script.php b/script.php new file mode 100644 index 0000000..383bf17 --- /dev/null +++ b/script.php @@ -0,0 +1,195 @@ + + + + \ No newline at end of file