3 require_once('config.php'); |
3 require_once('config.php'); |
4 |
4 |
5 if (isset($_GET["code"])) |
5 if (isset($_GET["code"])) |
6 $code = $_GET["code"] . ' ' . $_GET["name"]; |
6 $code = $_GET["code"] . ' ' . $_GET["name"]; |
7 else |
7 else |
8 $code = "TB0091 Kwik"; |
8 $code = "CB0081 Keuls"; |
9 |
9 |
10 $filename = 'log/ispindel/' . $code . '.log'; |
10 $filename = 'log/ispindel/' . $code . '.log'; |
11 if (! file_exists($filename)) { |
11 if (! file_exists($filename)) { |
12 header("Content-type: application/json"); |
12 header("Content-type: application/json"); |
13 echo '{}'; |
13 echo '{}'; |