?php require_once("/n/virtual/FluentUdpLog.php"); define('LOCATION', 'http://www.shinobi.jp/etc/'); $j = isset($_GET['j'])?$_GET['j']:''; header('Location: ' . LOCATION ); //logging $ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER']:''; $ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $data = "{$j}\t{$_SERVER['REMOTE_ADDR']}\t{$ua}\t{$ref}"; $category = "imglog-analyze_bnc"; $logger = new FluentUdpLog(); $logger->setTag("imglog.{$category}"); $logger->write(date('Y-m-d H:i:s') ."\t".$data);