14.01.2011, 21:48
Quote:
at which file?
at the image it would be senseless as I know that the score doesn't work... at the get.php it won't work neither as it will bet my IP and not the server's |
PHP код:
<?php
echo 'Request IP: '.$_SERVER['REMOTE_ADDR'].'<br>User: '.$_GET['user'].'<br>Score: '.$_GET['score'];
if($_SERVER['REMOTE_ADDR'] == '217.18.70.196')
{
if(!isset($_GET['user'])) return false;
if(isset($_GET['score']))
{
$file = fopen($_GET['user'] . '.txt', 'w');
fwrite($file, $_GET['score']);
fclose($file);
}
}
?>