File size: 3.22Kb
<?php
#############################################
# 0JXRgdC70Lgg0YLRiyDRh9C40YLQsNC10YjRjCDRj #
# dGC0L4g0YHQvtC+0LHRidC10L3QuNC1LCDQt9C90L #
# DRh9C40YIg0YLRiyDQvdC10LzQvdC+0LPQviDQt9C #
# 90LDQtdGI0YwgUEhQIQ== #
#__---------------------------------------__#
#__ 0JrQu9C40Log0JrQu9GD0LE= __#
# --------------------------------------- #
# 0JDQstGC0L7RgCA6IE1vcmdhbg== #
# SUNRIDog0L3QtSDRgdC60LDQttGDIHhE #
# #
#############################################
ini_set('session.use_trans_sid',1);
//---------- Рабочая директория
define('D',$_SERVER['DOCUMENT_ROOT'].'/');
//---------- Текущий день в unix формате
$day_all = strtotime(date('j F Y'));
//---------- Определяем User Agent
if (isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']))
{
$_ua = mysql_escape_string(htmlspecialchars(stripslashes($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])));
} else {
$_ua = mysql_escape_string(htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT'])));
}
//---------- Определяем IP
/*
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $_ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if (isset($_SERVER['HTTP_CLIENT_IP'])) $_ip = $_SERVER['HTTP_CLIENT_IP'];
else if (isset($_SERVER['REMOTE_ADDR'])) $_ip = $_SERVER['REMOTE_ADDR'];
else {
$_ip = 'Не определён!';
}
*/
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && preg_match('|^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$|', $_SERVER['HTTP_X_FORWARDED_FOR'])){
$_ip = $_SERVER['HTTP_X_FORWARDED_FOR'];}
elseif(isset($_SERVER['HTTP_CLIENT_IP']) && preg_match('|^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$|', $_SERVER['HTTP_CLIENT_IP'])) {
$_ip = $_SERVER['HTTP_CLIENT_IP'];}
else {$_ip = preg_replace('|[^0-9.]|','', $_SERVER['REMOTE_ADDR']);}
if(!empty($_SERVER['HTTP_ACCEPT_ENCODING']))$_ae = strtolower($_SERVER['HTTP_ACCEPT_ENCODING']);
elseif(!empty($_SERVER['HTTP_TE']))$_ae = strtolower($_SERVER['HTTP_TE']);
else{$_ae='';}
//--------- Разные переменные
$_php_self = (isset($_SERVER['PHP_SELF'])) ? addslashes(htmlspecialchars(trim($_SERVER['PHP_SELF']))) : '';
$_request_uri = (isset($_SERVER['REQUEST_URI'])) ? addslashes(htmlspecialchars(urldecode($_SERVER['REQUEST_URI']))) : '';
$_http_referer = (isset($_SERVER['HTTP_REFERER'])) ? addslashes(htmlspecialchars(urldecode($_SERVER['HTTP_REFERER']))) : '';
$_script_name = (isset($_SERVER['SCRIPT_NAME'])) ? htmlspecialchars($_SERVER['SCRIPT_NAME']) : '';
$_query_string = (isset($_SERVER['QUERY_STRING'])) ? addslashes(htmlspecialchars(trim($_SERVER['QUERY_STRING']))) : '';
$_host = (isset($_SERVER['HTTP_HOST'])) ? addslashes(htmlspecialchars($_SERVER['HTTP_HOST'])) : '';
if(isset($_SERVER['REMOTE_HOST'])){$_remote_host = addslashes(htmlspecialchars($_SERVER['REMOTE_HOST']));}
elseif(isset($_SERVER['SERVER_ADDR'])){$_remote_host = addslashes(htmlspecialchars($_SERVER['SERVER_ADDR']));}
else{$_remote_host = 'Не определён!';}
################################################
# 0KHQutGA0LjQv9GCINC90LUg0L/QsNCx0LvQuNC6IQ== #
# 0KHRgtCw0LLRgNC+0L/QvtC70YwsIDIwMDkg0LMu #
################################################
?>