29) AND ($ip_filter['whitelist']==0)) { # header("Location: https://www.google.com"); exit; } session_start(); $sid=session_id(); #############FR REDIRECT if ($lang == 'fr') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.wristbands.fr'); } #############FR REDIRECT #############IT REDIRECT if ($lang == 'it') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.braccialetta.it'); } #############IT REDIRECT #############HR REDIRECT if ($lang == 'hr') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.idnarukvice.eu'); } #############HR REDIRECT #############SI REDIRECT if ($lang == 'si') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.zapestnice.si'); } #############SI REDIRECT #############RO REDIRECT if ($lang == 'ro') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.idbratari.ro'); } #############RO REDIRECT #############NL REDIRECT if ($lang == 'nl') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.idpolsbandjes.nl'); } #############RO REDIRECT #############BE REDIRECT if ($lang == 'be') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.idbracelets.be'); } #############BE REDIRECT #############PL REDIRECT if ($lang == 'pl') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.opaskinareke.pl'); } #############PL REDIRECT #############FI REDIRECT if ($lang == 'fi') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.paperirannekkeet.fi'); } #############FI REDIRECT #############DE REDIRECT if ($lang == 'de') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); if (($visitor != 'sk') AND (($continent=='eu') OR ($continent=='na'))) header('Location: https://www.kontrollarmbander.de'); } #############DE REDIRECT #############SK REDIRECT if ($lang == 'sk') { if ($_SESSION['ip_cntry_data'] == '') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); $_SESSION['ip_cntry_data'] = $visitor; $_SESSION['ip_cont_data'] = $continent; } else { $visitor = $_SESSION['ip_cntry_data']; $continent = $_SESSION['ip_cont_data']; } # echo $visitor; } #############SK REDIRECT #$_SESSION['ip_cntry_data'] =''; #############CZ REDIRECT if ($lang == 'cz') { if ($_SESSION['ip_cntry_data'] == '') { $geoIPx = check_ip_cntr($ipaddr); $visitor = strtolower($geoIPx['country']); $continent = strtolower($geoIPx['continent']); $_SESSION['ip_cntry_data'] = $visitor; $_SESSION['ip_cont_data'] = $continent; } else { $visitor = $_SESSION['ip_cntry_data']; $continent = $_SESSION['ip_cont_data']; } # echo $visitor; } #############CZ REDIRECT include 'content/un/fnc_location.php'; include 'vars.php'; include 'db.php'; include 'fnct.php'; include 'fnct_seo.php'; include 'seo.php'; include 'pocitanieceny.php'; include 'content/un/'.$lang.'/identikit.php'; include 'content/un/fnc_ups_api.php'; if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $urll = "https://"; else $urll = "http://"; $urll.= $_SERVER['HTTP_HOST']; $urll.= $_SERVER['REQUEST_URI']; $vars_post_string = json_encode($_POST); $vars_get_string = json_encode($_GET); #$save_ip2 = mysql_query("INSERT INTO ip_log_full (ip,session,site,datum,url_called,get_vars,post_vars) VALUES ('".$_SERVER['REMOTE_ADDR']."','".$sid."','".$lang."',NOW(),'".$urll."','".$vars_get_string."','".$vars_post_string."')"); if ($selected=='google744c734e9bf0109c.html') { echo 'google-site-verification: google744c734e9bf0109c.html'; exit; } if ($selected=='abuseipdb-verification.html') { echo 'abuseipdb-verification-fdNpdVJL'; exit; } if ($selected=='googlef9dda376c3c4ee8a.html') { echo 'google-site-verification: googlef9dda376c3c4ee8a.html'; exit; } if ($selected=='robots.txt') { echo "User-agent: *"."\n"; echo "Disallow:"."\n"; echo "User-agent: ia_archiver"."\n"; echo "Disallow: /"."\n"; exit; } #------UZ JE VAT OVERENE if ($_SESSION['idzak']!='') { $edeff=mysql_query("SELECT platca FROM zakaznik WHERE id_usr='".$_SESSION['idzak']."'"); $ertyty=mysql_fetch_row($edeff); if ($ertyty[0]=='1') $vatcheck='0'; #echo $_SESSION['idzak']; } #------UZ JE VAT OVERENE if ($_SESSION['idzak']!='') zapisppc($_SESSION['idzak'],$_SESSION['idobj'],$sid); if ($selected=='iframeexit') { include 'content/'.$idnt.'/iframeexit.php'; exit; } if ($selected=='adwords') { $ref_goo = $_SERVER['HTTP_REFERER']; getadwords_kw($ref_goo,$subdir,$subsub,$subsubsub,$sid); header("Location: ".$httpt."://".$linkdomain); } if ($selected=='login') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain); } if ($selected=='pricecalculator') { include 'calcprice.php'; exit; } if ($selected=='mail-send') { # include 'gcaptcha.php'; if ($spammer == 2) { # include 'content/'.$idnt.'/mailer.php'; # header("Location: /mail-sent"); } else { # echo 'Please solve CAPTCHA'; exit; } } if ($selected=='mail-send-sk') { include 'content/'.$idnt.'/mailer.php'; header("Location: ".$httpt."://".$linkdomain."/mail-sent"); } if ($selected=='savedetails') { include 'savedetails.php'; header("Location: ".$httpt."://".$linkdomain."/myaccount"); } if ($selected=='loginc') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/checkout"); } if ($selected=='loginprt') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/myprint/".$order); } if ($selected=='loginord') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/orders/".$order); } if ($selected=='loginacc') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/myaccount"); } if ($selected=='loginadr') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/addresses"); } if ($selected=='loginpay') { include 'login.php'; header("Location: ".$httpt."://".$linkdomain."/pay/".$order); } if ($selected=='logout') { include 'logout.php'; header("Location: ".$httpt."://".$linkdomain); } if ($selected=='add-to-cart') { include 'tocart.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='add-to-cart-x') { include 'tocart.php'; header("Location: /iframeexit"); } if ($selected=='deletecart') { include 'delete.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='updatecart') { include 'update.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='updateshipzip') { include 'updatezip.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='updateimprint') { include 'updateimprint.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='updateimprintuv') { include 'updateimprintuv.php'; header("Location: ".$httpt."://".$linkdomain."/shopping-cart"); } if ($selected=='deleteprint') { include 'deleteprint.php'; header("Location: ".$httpt."://".$linkdomain."/checkout/printing-details"); } if ($selected=='updateadr') { include 'updateadr.php'; # echo $linkdomain; # exit; header("Location: ".$httpt."://".$linkdomain."/checkout/printing-details"); /* if ($vatcheck=='1') { header("Location: ".$httpt."://".$linkdomain."/checkout/vatid"); } else { header("Location: ".$httpt."://".$linkdomain."/checkout/printing-details"); } */ } if ($selected=='deleteadr') { include 'deladr.php'; header("Location: ".$httpt."://".$linkdomain."/addresses"); } if ($selected=='approveprintuni') { include 'approveprint_token.php'; header("Location: ".$httpt."://".$linkdomain."/".$redi_link); } if ($selected=='approveprint') { include 'approveprint.php'; header("Location: ".$httpt."://".$linkdomain."/myprint/".$subdir); } if ($selected=='notapproveprint') { include 'notapproveprint.php'; header("Location: ".$httpt."://".$linkdomain."/myprint/".$subdir); } if ($selected=='commentprint') { include 'commentprint.php'; header("Location: ".$httpt."://".$linkdomain."/myprint/".$idorder); } if ($selected=='commentprintuni') { include 'commentprint_token.php'; header("Location: ".$httpt."://".$linkdomain."/".$redi_link); } if ($selected=='image') { include 'image.php'; break; } if ($selected=='imagep') { include 'imagep.php'; break; } if ($selected=='detailmini') { include 'content/'.$idnt.'/detailmini.php'; exit; } if ($selected=='sendorder') { include 'sendorder.php'; header("Location: ".$httpt."://".$linkdomain."/checkout/ordersent"); } if ($selected=='sendorderpaypal') { include 'sendorder.php'; header("Location: ".$httpt."://".$linkdomain."/checkout/paypalok"); } if ($selected=='sendordermb') { include 'sendorder.php'; header("Location: ".$httpt."://".$linkdomain."/checkout/mbok"); } #----------Funkcie shopu #----------Obsah include 'content/'.$idnt.'/cartvalue.php'; include 'content/'.$idnt.'/header_it.php'; if ($selected=='loginbox') { include 'loginbox.php'; } else { if ($_SESSION['logged']=='1') { include 'content/'.$idnt.'/logedtop.php'; } else { include 'content/'.$idnt.'/logintop.php'; } include 'mainpage.php'; include 'content/'.$idnt.'/footer.php'; } #} #else { #echo "Working on Update"; #} ?>