rendered paste body<?php
//if($_GET['dev'] != 'y')
//die('Serwis tymczasowo nieczynny, trawaja prace nad modernizacja slilnika, zapraszamy za 15 minut.');
require_once('config.inc.php');
/**
* wildcart
*/
preg_match('/(.*?)\.XXXXXXXXXXXXXXXX\.pl/', $_SERVER['HTTP_HOST'], $aService);
$sWildcart = (isset($aService[1])) ? $aService[1] : null;
/*if($_SERVER['HTTP_HOST'] == URL_SHORT)
{
header("Location: " . URL . substr($_SERVER['REQUEST_URI'], 1));
}
else*/if($sWildcart && $sWildcart != 'www')
{
header("Location: " . URL . "profil/" . $sWildcart . "/");
//die(file_get_contents(URL . "profil/" . $sWildcart . "/"));
exit;
}
// end of WC
else
{
session_set_cookie_params(time() + TIMEOUT, COOKIE_PATCH, COOKIE_DOMAIN);
require_once(V_LOADER);
try
{
$oVframe = new Vframe(V_AUTORUN, V_AUTOCHECK);
}
catch(Vexception $e)
{
if(V_EXCEPTIONS === TRUE)
require_once(V_REPORTER);
}
catch(Exception $e)
{
if(V_EXCEPTIONS === TRUE)
require_once(V_REPORTER);
}
}
?>