start('main'); // start session - neccessary if frontend users are available // session_start(); require_once ("include/inc_conf/conf.inc.php"); require_once ("include/inc_lib/default.inc.php"); require_once ("include/inc_conf/conf.template_default.inc.php"); require_once ("include/inc_conf/conf.indexpage.inc.php"); require_once ("include/inc_lib/general.inc.php"); require_once ("include/inc_front/front.func.inc.php"); require_once ("include/inc_front/content.func.inc.php"); //script chaching to allow header redirect if($phpwcms["compress_page"]) { if(ini_get('zlib.output_compression') && function_exists('ini_set')) { ini_set( 'zlib.output_compression', '1' ); ini_set( 'zlib.output_compression_level', $phpwcms["compress_page"] ); ob_start(); } else { ob_start("ob_gzhandler"); //with old style GZ Compression } } else { ob_start(); //without Compression (or use browsers default) } ?> \n\n".$content["pagetitle"]."\n"; echo '\n".$block["htmlhead"]."'."\n"; echo '\n"; echo "\n\n\n"; // this regex's call the function if($phpwcms["rewrite_url"]) { $allowed_chars_in_url = "[".implode("]|[",array("@",",","\.","+","&","-","_","=","*","#","\/","%","?"))."]"; $content["all"] = preg_replace("/( href=\"index.php?)(([a-z]|[A-Z]|[0-9]|".$allowed_chars_in_url.")*)(\")/e","url_search('\\2')",$content["all"]); $content["all"] = preg_replace("/(onClick=\"location.href='index.php?)(([a-z]|[A-Z]|[0-9]|".$allowed_chars_in_url.")*)(\')/e","js_url_search('\\2')",$content["all"]); } // show how long it needs to create content // remove comments // to use it // $timer->stop('main'); // $t = $timer->get_current('main'); // $t = number_format ( $t, 5, '.', ','); //number_format ( float number, int decimals, string dec_point, string thousands_sep) // $content["all"] = str_replace('{TIMER}', $t.' sec', $content["all"]); // return rendered content echo $content["all"]; // OR // echo spacer(5)."
 created in ".($timer->get_current('main'))." sec"; echo "\n"; ob_end_flush(); ?>