diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:37:01 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:37:01 +0200 |
commit | e3298dbeaae79bb1d384fa8cd78a67be89819720 (patch) | |
tree | 871560e330f6c7225fb50ae86e3586776d81356a /check.php | |
download | kartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.tar.gz kartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.tar.bz2 kartik-net-e3298dbeaae79bb1d384fa8cd78a67be89819720.zip |
Initial commit
Diffstat (limited to 'check.php')
-rw-r--r-- | check.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/check.php b/check.php new file mode 100644 index 0000000..d221550 --- /dev/null +++ b/check.php @@ -0,0 +1,18 @@ +<?php + +header("Content-Type: text/plain"); + +if (isset($_GET['k'])) { + if (strlen($_GET['k']) >= "35" || trim($_GET['k']) === "") { + die("0"); + } else { + $keys = explode("\n", file_get_contents("/data-krtk/data/eaps.txt")); + if (in_array($_GET['k'], $keys)) { + die("1"); + } else { + die("0"); + } + } +} else { + die("0"); +} |