error_reporting(E_ALL & ~(E_STRICT|E_NOTICE|E_DEPRECATED));
// doplneo odraneni PHPSESSID
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
/* dalsi moznost je doplnit tyto radky do httaccess
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
*/
settype($_INCLUDE,'string');
session_start();
unset($_USER);
include_once 'system/settings.php';
include_once 'system/sql_interface.php';
include_once 'system/functions.php';
include_once 'system/common/gen_html.php';
mysqlc();
//include 'mroov/mroovcastats.php';
include 'system/gen_page_html.php';
mysql_query("SET character_set_results=utf8mb4, character_set_connection=cp1250, character_set_client=utf8");
//mysql_query("SET character_set_results=cp1250, character_set_connection=cp1250, character_set_client=cp1250");
//mysql_query("SET character_set_results=utf8, character_set_connection=utf8, character_set_client=utf8");
// ******************* zpracovani parametru
if (!$_GET['site']) $_GET['site'] = 'default';
if (!$_GET['p']) $_GET['p'] = 'index';
$_USER['domain'] = 'default';
$_GET['domain'] = 'default';
if ($_GET['p']!='fotogalerie') {
$_SESSION['last_page']=$_GET['p'];
$_SESSION['last_site']=$_GET['site'];
}
// ....................
if ($_SESSION['_USER']['authorization']) {
$_USER['authorization'] = authorization();
$_SESSION['_USER']['authorization'] = $_USER['authorization'];
$_USER = $_SESSION['_USER'];
}
global $lang;
// ******************** test na opravnene IP adresy
if ($_GET[auth]==1) {
$cookie_time = (3600 * 24 * 10); // 1 days
setcookie ($cookie_name, 1, time() + $cookie_time);
}
if (isSet($_COOKIE[$cookie_name]) || $_GET[auth]==1) {
} else {
$domain = $_SERVER['REMOTE_ADDR']; ;
/*if ($domain=='90.182.73.105' || $domain=='90.179.181.1') {
} else {
//header('location: http://patrimonia.cz/index2.html');
//header("Status: 404 Not Found");
header('This is not the page you are looking for', true, 404);
echo '
Stranky jsou ve vystavbe, zobrazeny budou po dokonceni. Vase IP: '.$domain.'
';
die;
} */
}
switch ($_GET['site']) {
case 'hipo_pl': $lang='pl'; break;
default: $lang='cz';
}
gen_page_html('');
?>