require("session_start.php");
require("connect.php");
require("log_lang.php");
$sql = "SELECT * FROM pmshop_page_info WHERE id = '1' LIMIT 0,1;";
$wynik = @mysql_query ($sql);
$db2 = @mysql_fetch_array ($wynik);
$db_page_info = $db2;
$db2_des=$db2['des'];
$db2_keys=$db2['keys'];
$sql = "SELECT * FROM pmshop_page_home WHERE id = '1' LIMIT 0,1;";
$wynik_page_home = @mysql_query ($sql);
$db_page_home = @mysql_fetch_array ($wynik_page_home);
require("licznik.php");
require("functions.php");
$title_bar.=$db2['pmshop_name'];
$pmshop_access=$db2['act'];
if($pmshop_access==1){
if(!$_SESSION['log']){
require("access.php");
exit;
}
}
?>
echo $title_bar; ?>
/*
*/ ?>
if(!$old_ie){ ?>
} ?>
if(($db_page_info['ga_act']==1) && (!empty($db_page_info['ga_code']))){ echo htmlspecialchars_decode($db_page_info['ga_code'], ENT_QUOTES); } ?>
require("cookie_check.php");
?>
$pm_logo='
';
$pm_logo_url=false;
if($page_url!='home.php') $pm_logo_url=true;
if($pm_logo_url) $pm_logo='
'.$pm_logo.'';
echo $pm_logo;
?>
if($page_url=='home.php') {
?>
$sql = "SELECT * FROM pmshop_banners WHERE act=1 ORDER BY poz ASC;";
$wynik_banners = @mysql_query ($sql);
$irow_banners = mysql_num_rows($wynik_banners);
if($irow_banners>0){
?>
$i=0;
while ($db_banners = @mysql_fetch_array ($wynik_banners)){
$i++;
if($i==1){
}// $i==1
?>
} //while
?>
}//$irow_banners
?>
} ?>
require($page_url);
?>