<?php $dir = "logs"; // папка для хранения логов // $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'] ; $us = $_SERVER['HTTP_USER_AGENT']; $path = $_SERVER['REQUEST_URI']; $ref = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : 'none'; { } ?>