0) && stripos($r,$_SERVER["HTTP_HOST"])===false && stripos($r,$h)===false && stripos($r,str_replace("www.","",$h))===false) { $r="'".mysql_real_escape_string($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(); global $contents; $contents=null; $contents_wrapper="%s"; require "jongeleu.php"; #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #meta $head = $dom_html->getHead(); $head->getElementsByTagName("title")->item(0)->nodeValue=$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('#\{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); #mail riddler $html = preg_replace_callback("#(]*href=['\"]mailto:[^<]*)#i",create_function( '$lucifer', 'return "";' ),$html); #form tokens form_token_add($html); #ipro link if (file_exists($fn="php/inc/ipro_link.inc.php")) { require_once $fn; ipro_link($html); } else { debug("{$fn} does not exist"); } #end echo $html; //end