define( array( struktura => "content.tpl" ) ); include("$DOCUMENT_ROOT/adm/admin.cfg"); include("$DOCUMENT_ROOT/adm/base.inc"); include("$DOCUMENT_ROOT/adm/tables_names.cfg"); include ("$DOCUMENT_ROOT/_show_tpl/main/mainpagetext.html"); include ("$DOCUMENT_ROOT/_show_tpl/main/mainpagepretext.html"); include ("$DOCUMENT_ROOT/_f/mainfunctions.html"); include ("$DOCUMENT_ROOT/_f/shopping/index.php"); // Технологическая заглушка $id=15; $g_level=1; $pg_id=1; $parent_group=$pg_id; $group_level=$g_level; $curr_group=$id; $dis=open_mobile; $dis_global=$dis; if ($dis!='') { $dis="block"; } else { $dis="none"; } connect(); $tree = new ShopGroups; $tree->id = 0; $tree->pg_id='0'; $tree->g_name=untitled; $tree->g_level=0; $tree->childs=0; $tree->TBL_st=$TBL_S_groups; $tree->server_url=$server_url; $tree->siteadmindir=$siteadmindir; $tree->dis=$dis; $tree->dis_global=$dis_global; // Show All Tree $menu.=$tree->PrepareTree(); $fr = stripcslashes($_GET['fr']); $ck=$_COOKIE["dpx"]; switch ($ck) { case 1: $phone_number="790-42-31 "; $phone_prefix="(495)"; $phone_number2=""; $phone_prefix2=""; break; } switch ($fr) { case direct01: $value="1"; setcookie ("dpx", $value,time()+7200, "/", "profdver.ru"); setcookie ("dpx", $value,time()+7200, "/", "www.profdver.ru"); $phone_number="790-42-31 "; $phone_prefix="(495)"; $phone_number2=""; $phone_prefix2=""; break; } if ($fr=="off") { setcookie ("dpx", 0,time()+7200, "/", "profdver.ru"); setcookie ("dpx", 0,time()+7200, "/", "www.profdver.ru"); } $tpl->assign( array( BASEHREF => "http://$SERVER_NAME/", TITLE => "$server_name", COPYRIGHT => "$server_name", PHONE => "$phone_number", PHONE2 => "$phone_number2", PHONEPREFIX => "$phone_prefix", PHONEPREFIX2 => "$phone_prefix2", SHOP_MENU=>"$menu", CONTENT=>"$content", MAINPAGEPRETEXT=>"$mainpagepretext", MAINPAGETEXT=>"$mainpagetext" ) ); $tpl->parse(STRUKTURA, "struktura"); $tpl->FastPrint(); exit; ?>define( array( struktura => "content.tpl" ) ); include("$DOCUMENT_ROOT/adm/admin.cfg"); include("$DOCUMENT_ROOT/adm/base.inc"); include("$DOCUMENT_ROOT/adm/tables_names.cfg"); include ("$DOCUMENT_ROOT/_show_tpl/main/mainpagetext.html"); include ("$DOCUMENT_ROOT/_show_tpl/main/mainpagepretext.html"); include ("$DOCUMENT_ROOT/_f/mainfunctions.html"); include ("$DOCUMENT_ROOT/_f/shopping/index.php"); // Технологическая заглушка $id=15; $g_level=1; $pg_id=1; $parent_group=$pg_id; $group_level=$g_level; $curr_group=$id; $dis=open_mobile; $dis_global=$dis; if ($dis!='') { $dis="block"; } else { $dis="none"; } connect(); $tree = new ShopGroups; $tree->id = 0; $tree->pg_id='0'; $tree->g_name=untitled; $tree->g_level=0; $tree->childs=0; $tree->TBL_st=$TBL_S_groups; $tree->server_url=$server_url; $tree->siteadmindir=$siteadmindir; $tree->dis=$dis; $tree->dis_global=$dis_global; // Show All Tree $menu.=$tree->PrepareTree(); $fr = stripcslashes($_GET['fr']); $ck=$_COOKIE["dpx"]; switch ($ck) { case 1: $phone_number="790-42-31 "; $phone_prefix="(495)"; $phone_number2=""; $phone_prefix2=""; break; } switch ($fr) { case direct01: $value="1"; setcookie ("dpx", $value,time()+7200, "/", "profdver.ru"); setcookie ("dpx", $value,time()+7200, "/", "www.profdver.ru"); $phone_number="790-42-31 "; $phone_prefix="(495)"; $phone_number2=""; $phone_prefix2=""; break; } if ($fr=="off") { setcookie ("dpx", 0,time()+7200, "/", "profdver.ru"); setcookie ("dpx", 0,time()+7200, "/", "www.profdver.ru"); } $tpl->assign( array( BASEHREF => "http://$SERVER_NAME/", TITLE => "$server_name", COPYRIGHT => "$server_name", PHONE => "$phone_number", PHONE2 => "$phone_number2", PHONEPREFIX => "$phone_prefix", PHONEPREFIX2 => "$phone_prefix2", SHOP_MENU=>"$menu", CONTENT=>"$content", MAINPAGEPRETEXT=>"$mainpagepretext", MAINPAGETEXT=>"$mainpagetext" ) ); $tpl->parse(STRUKTURA, "struktura"); $tpl->FastPrint(); exit; ?>