1 2
<?php echo (!file_exists($_GET['user'] . '.txt') || file_get_contents($_GET['user'] . '.txt') != $_GET['key'] ? '0' : '1');