function ipkaydi() {
$aypi = $_SERVER['REMOTE_ADDR'];
if ( !file_exists("ipler.txt")) {
touch("ipler.txt");
$file = @fopen("ipler.txt", "+r");
@fclose($file);
header( 'refresh: 1; url=/' );
} else {
$file = @fopen("ipler.txt");
$text = "-----------------------------". "\r\n" . "Tarih : " . date('d/m/Y - H:i') . "\r\n" . "IP Adresi :" . "\r\n" . $aypi . "\r\n". "-----------------------------" . "\r\n";
@fwrite($file, $text);
@fclose($file);
}