Example #1
0
 if (!empty($this->root->k_tai_conf['docomoGuidTTL'])) {
     $r->Config_docomoGuidTTL = $this->root->k_tai_conf['docomoGuidTTL'];
 }
 if (!empty($this->root->k_tai_conf['urlRewrites'])) {
     $r->marge_urlRewites('urlRewrites', $this->root->k_tai_conf['urlRewrites']);
 }
 if (!empty($this->root->k_tai_conf['urlImgRewrites'])) {
     $r->marge_urlRewites('urlImgRewrites', $this->root->k_tai_conf['urlImgRewrites']);
 }
 if (!empty($this->root->k_tai_conf['googleAdsense']['config'])) {
     $r->Config_googleAdSenseConfig = $this->root->k_tai_conf['googleAdsense']['config'];
     $r->Config_googleAdSenseBelow = $this->root->k_tai_conf['googleAdsense']['below'];
 }
 $googleAnalytics = '';
 if ($this->root->k_tai_conf['googleAnalyticsId']) {
     $googleAnalytics = $r->googleAnalyticsGetImgTag($this->root->k_tai_conf['googleAnalyticsId'], $title);
 }
 $r->inputEncode = $this->cont['SOURCE_ENCODING'];
 $r->outputEncode = $this->root->keitai_output_filter;
 $r->outputMode = 'xhtml';
 $r->langcode = $this->cont['LANG'];
 if (!empty($_SESSION['hyp_redirect_message'])) {
     $header = $this->root->k_tai_conf['rebuilds']['redirectMessage']['above'] . $_SESSION['hyp_redirect_message'] . $this->root->k_tai_conf['rebuilds']['redirectMessage']['below'] . $header;
     unset($_SESSION['hyp_redirect_message']);
 }
 $r->contents['header'] = $header . $googleAnalytics;
 $r->contents['body'] = $body . $pageinfo;
 $r->contents['footer'] = $footer;
 $r->doOptimize();
 $charset = strtoupper($r->outputEncode) === 'UTF-8' ? 'UTF-8' : 'Shift_JIS';
 if (method_exists($r, 'getHtmlDeclaration')) {