header('Pragma: no-cache');
header('Cache-Control: no-cache; must-revalidate');
header('Expires: 0');
if($langset) setcookie("cookie_lang", $langset, time()+316224000);
session_start();
require("funkce/sql.php");
require("funkce/user.php");
$total_ip_ban = ipban($REMOTE_ADDR);
define ("MOJE_IP", "85.93.167.58");
define ("LOC_IP", "127.0.0.1");
if($total_ip_ban):
die("
No access
IP address ".$REMOTE_ADDR." is from ".$total_ip_ban." banned!
For unban contact Buy-Auto.eu administrator.");
endif;
session_start();
if(!empty($_SESSION['logP']) and !empty($_SESSION['logL']))
$userid = autentifikace($_SESSION['logL'], $_SESSION['logP'], $REMOTE_ADDR);
else
$userid = -1;
if(!$page)
if($userid > 0) $page = "adm_home";
else $page = "home";
if(!$_SESSION['lang'])
if($_COOKIE["cookie_lang"]) $_SESSION['lang'] = $_COOKIE["cookie_lang"];
else $_SESSION['lang'] = "en";
if($langset)
$_SESSION['lang'] = $langset;
// ověření existence obsahové stránky
if(!file_exists("pages/".$page.".php"))
{ $page = "error"; $e = 1; }
// nasvatení jazykového souboru pro obsah a zjištějí jeho existence
$lang_file = "languages/".$_SESSION['lang']."/".$page."_".$_SESSION['lang'].".php";
if(file_exists($lang_file))
require($lang_file);
else {
$_SESSION['lang'] = "en";
require("languages/en/".$page."_en.php");
}
// nasvatení jazykového souboru pro kostru a zjištějí jeho existence
$lang_file_body = "languages/".$_SESSION['lang']."/index_".$_SESSION['lang'].".php";
if(file_exists($lang_file))
require($lang_file_body);
else
require("languages/en/index_en.php");
if($page == "login") require("funkce/login.php");
if($page == "logout") require("funkce/logout.php");
if((substr($page, 0, 3) == "adm") && ($userid < 0)) die("No access!
");
?>
// titulky
switch($page):
case "about_us":
echo"$onas_text_1 - Buy-Auto.eu";
break;
case "advertiser":
echo"$dnadpis - Buy-Auto.eu";
break;
case "contact_us":
echo"$sm_text_1 - Buy-Auto.eu";
break;
case "create_account":
echo"$c_a_1 - Buy-Auto.eu";
break;
case "create_account_data":
echo"$c_a_1 - Buy-Auto.eu";
break;
case "create_account_save":
echo"$c_a_nadpis - Buy-Auto.eu";
break;
case "currency_change":
echo"$cc_text_1 - Buy-Auto.eu";
break;
case "detail_search":
echo"$text_ds_1 - Buy-Auto.eu";
break;
case "help":
echo"$nadpis_help - Buy-Auto.eu";
break;
case "prices":
echo"$ceny_text_1 - Buy-Auto.eu";
break;
case "reset_password":
echo"$rp_text_1 - Buy-Auto.eu";
break;
case "reset_password_send":
echo"$rp_text_1 - Buy-Auto.eu";
break;
case "reset_password_check":
echo"$rp_text_1 - Buy-Auto.eu";
break;
case "rules":
echo"$r_nadpis - Buy-Auto.eu";
break;
case "search":
echo"$se_text_1 - Buy-Auto.eu";
break;
case "send_mail":
echo"$sm_text_1 - Buy-Auto.eu";
break;
case "send_to_friend":
echo"$stf_text_1 - Buy-Auto.eu";
break;
case "set_language":
echo"$sl_text_1 - Buy-Auto.eu";
break;
case "ad_detail":
$sql = "SELECT vypis
FROM `inzeraty_vypis`
WHERE id = ".$ad;
$v_title = mysql_fetch_array(mysql_query($sql));
echo $v_title["vypis"]." - Buy-Auto.eu";
break;
default:
echo"Buy-Auto.eu";
break;
endswitch;
?>
if($page == "adm_add_ad_model" or $page == "adm_add_ad_data" or $page == "adm_edit_ad_data")
include("javascript/checkform.php");
?>
include("javascript/js_model_list.php"); ?>
|
if($REMOTE_ADDR != MOJE_IP and $REMOTE_ADDR != LOC_IP) echo'
';
?>
|
echo($text_vyhled_box_0 ); ?>
if($REMOTE_ADDR != MOJE_IP and $REMOTE_ADDR != LOC_IP) echo'
'; ?> |
|
if($userid < 0)
include("funkce/searchmenu.php");
else
include("funkce/adminmenu.php");
?>
|
|
include("pages/".$page.".php"); ?>
echo($google_adsence); ?>
if($REMOTE_ADDR != MOJE_IP and $REMOTE_ADDR != LOC_IP) echo'
'; ?>
|
|
Zkrátit odkaz |
Online Hry Zdarma