diff options
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"); +} |