1) { $n=array_pop($e).'.'.array_pop($e); if ($n!='nl.schilderijen-veiling') { header('Location: http://www.schilderijen-veiling.nl'.$_SERVER['REQUEST_URI'],true,301); exit(); } } //#-- chdir("../"); require "./config.inc.php"; ini_set("display_errors",DEBUG_MODE?"on":"off"); #-- session_start(); require_once "inc/debug.inc.php"; require_once "inc/util.inc.php"; require_once "inc/lang.v4.inc.php"; require_once "inc/mobile.inc.php"; $site_prefix=""; #-- require "./mysql.inc.php"; require_once "inc/settings.inc.php"; require_once "inc/form_check.inc.php"; require_once "inc/dom_html.inc.php"; require_once "inc/dom_html5.inc.php"; require_once "inc/currency4.inc.php"; require_once "inc/klant.inc.php"; //require_once "inc/dealer.inc.php"; require_once "inc/product.inc.php"; $is_bot = clientIsRobot(); $is_mobile = clientIsMobile(); if (defined("STATS_LOGGING") && STATS_LOGGING && !$is_bot) { $h=@$_SERVER["HTTP_HOST"]; if (preg_match("#^[^\.]+\.[^\.]+$#",$h)) $h="www.{$h}"; $r=@$_SERVER["HTTP_REFERER"]; if ((strlen($r)>0) && stripos($r,$_SERVER["HTTP_HOST"])===false && stripos($r,$h)===false && stripos($r,str_replace("www.","",$h))===false) { $r=dbStr($r); } else { $r="NULL"; } executeSql(str_replace("\n","",sprintf("replace into iprocms_stats_log set `HTTP_HOST`='%s', `REQUEST_URI`='%s', `REMOTE_ADDR`='%s', `REMOTE_HOST`='%s', `HTTP_REFERER`=%s, `HTTP_USER_AGENT`='%s', `session`='%s', `dt`=now()", $h, @$_SERVER["REQUEST_URI"], @$_SERVER["REMOTE_ADDR"], gethostbyaddr(@$_SERVER["REMOTE_ADDR"]), $r, @$_SERVER["HTTP_USER_AGENT"], session_id() ))); } $meta_title=""; $meta_keywords=""; $meta_description=""; $replacements=array('{%Y}'=>date('Y'),'

'=>'
','
'=>'
',''=>''); global $contents; $contents=null; $contents_wrapper="%s"; if ($is_mobile) { require('mobile.php'); } else { require("contents.php"); } // require("contents.php"); #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #meta $head = $dom_html->getHead(); $head->getElementsByTagName("title")->item(0)->nodeValue=_utf8_ent($meta_title); $dom_html->appendElement($head,"meta","",array("name"=>"keywords","content"=>$meta_keywords)); $dom_html->appendElement($head,"meta","",array("name"=>"description","content"=>$meta_description)); /**/ #output $dom_html->getDocument()->normalize(); $html = (string)$dom_html; #-- if (preg_match_all('#<(img|script|link|input)[^>]*((href|src)=([\'"])([^\'"]+)[\'"])#i',$html,$matches,PREG_SET_ORDER)) { foreach($matches as $match) { if ((substr($match[5],0,1)=='/') || (preg_match('#://#',$match[5]))) continue; if ($is_mobile) $html=str_replace($match[2],$match[3].'='.$match[4].'/mobile/'.$match[5].$match[4],$html); else $html=str_replace($match[2],$match[3].'='.$match[4].'/xhtml/'.$match[5].$match[4],$html); } } #-- if (preg_match_all('#\{setting:([^\}]+)\}#',$html,$matches,PREG_SET_ORDER)) foreach ($matches as $match) $html=str_replace($match[0],getIprocmsSetting($match[1]),$html); $html = str_replace(array_keys($replacements),$replacements,$html); if ($contents!==null) $html = str_replace("[[[[content]]]]",sprintf($contents_wrapper,$contents),$html); if (!$is_mobile) { #mail riddler $html = preg_replace_callback("#(]*href=['\"]mailto:[^<]*)#i",create_function( '$lucifer', 'return "";' ),$html); } #form tokens form_token_add($html); /**/ if (!$is_mobile) { #ipro link if (file_exists($fn="php/inc/ipro_link.inc.php")) { require_once $fn; if (!isset($_SERVER['WINDIR'])) ipro_link($html); } else { debug("{$fn} does not exist"); } /**/ #ipro cookie $cookie_policy=getIprocmsSetting('cookie_policy',1); if ($cookie_policy && file_exists($fn="php/inc/ipro_cookie.inc.php")) { require_once $fn; $html = ipro_cookie($html); } } echo $html; #end