<?php
// header ( "Location: https://www.ponta.club/" );
// header ( "Location: http://".$_GET['url']."\n\n" );

$file = "/var/www/www.ponta.club/files/jump.log" ; 

$fp = fopen( $file, "a" );
fputs( $fp, $_GET['url'] . "\n" . $_SERVER["HTTP_X_FORWARDED_FOR"] . "\n\n" );
fclose( $fp );

echo "not working";



exit ;
// URLジャンプのログを取る

if (!isset($_GET['url']) or $_GET['url'] == '') {
	header ( "Location: ".$_SERVER['HTTP_REFERER']."\n\n" );
	exit;
	} else {
	require_once ("../public_html/php.lib/config.php");
	$type = array ( 'm'=>'map','u'=>'url' );
	$sql = "INSERT INTO tr_ala_jump_log ".
		"(acter,type,url,ip_addr,referrer,user_agent) VALUES ".
		"('ponta','".$type[ $_GET['type'] ]."','".$_GET['url']."','".$_SERVER['REMOTE_ADDR']."','".$_SERVER['HTTP_REFERER']."','".$_SERVER['HTTP_USER_AGENT']."')";
	pg_query(CONN,$sql);
	
	//header ( "Location: http://".$_GET['url']."\n\n" );
	//exit;
	}

// echo "<!-- jump -->";

//	header ( "Location: http://".$_GET['url']."\n\n" );



/*
CREATE TABLE tr_ala_jump_log (
acter text,
url text,
ip_addr text,
referrer text,
user_agent text,
ctime timestamp without time zone not null default now()
);


*/
?>
