if so then do not initialize session for larger search engines if(!$IS_A_BOT && !empty($phpwcms['SESSION_FEinit'])) { _initSession(); } // some initial actions cleanupPOSTandGET(); buildGlobalGET(); define('FE_CURRENT_URL', abs_url(array(),array('phpwcms_output_action')) ); // init some special rights and also frontend edit init_frontend_edit(); // buffer everything ob_start(); $content['page_end'] = ''; require_once PHPWCMS_ROOT.'/config/phpwcms/conf.template_default.inc.php'; require_once PHPWCMS_ROOT.'/config/phpwcms/conf.indexpage.inc.php'; require_once PHPWCMS_ROOT.'/include/inc_lib/general.inc.php'; require_once PHPWCMS_ROOT.'/include/inc_front/cnt.lang.inc.php'; require_once PHPWCMS_ROOT.'/include/inc_lib/modules.check.inc.php'; require_once PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'; require PHPWCMS_ROOT.'/include/inc_lib/imagick.convert.inc.php'; require PHPWCMS_ROOT.'/include/inc_front/front.func.inc.php'; require PHPWCMS_ROOT.'/include/inc_front/ext.func.inc.php'; require PHPWCMS_ROOT.'/include/inc_front/content.func.inc.php'; // SEO logging if(!empty($phpwcms['enable_seolog']) && !empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['SERVER_NAME']) === false) { $phpwcms['seo_referrer_data'] = seReferrer( $_SERVER['HTTP_REFERER'] ); if( is_array( $phpwcms['seo_referrer_data'] ) ) { @_dbInsert('phpwcms_log_seo', $phpwcms['seo_referrer_data'], 'DELAYED'); } } if(!empty($phpwcms['Bad_Behavior'])) { require PHPWCMS_ROOT.'/include/inc_module/mod_bad-behavior/bad-behavior-phpwcms.php'; } $phpwcms["templates"] = TEMPLATE_PATH; $phpwcms['DOCTYPE_LANG'] = str_replace( '{DOCTYPE_LANG}', $phpwcms['DOCTYPE_LANG'], PHPWCMS_DOCTYPE_LANG ); $content['page_start'] = str_replace( '{DOCTYPE_LANG}', $phpwcms['DOCTYPE_LANG'], PHPWCMS_DOCTYPE ); $content['page_start'] .= ''.LF; $content['page_start'] .= '