<?php
	$fp = @fopen("access/log","a");
    	fwrite($fp, "[FILE SERVED] ");
	fwrite($fp, date("d-m-y G:i:s") . ' ' . $_SERVER['PHP_SELF'] . ' ' . $_SERVER['REMOTE_ADDR']);
	fwrite($fp, ' ' . gethostbyaddr($_SERVER['REMOTE_ADDR']));
	fwrite($fp, " Redirect to " . $_GET['what'] . "\n");
	fclose($fp);                    
	header("Location: https://samuell.org/~singliar/" . $_GET['what']);
?>
