summaryrefslogtreecommitdiff
path: root/check.php
blob: d221550b0a570083010357a2d3025d2b6ac7604c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
}