public function getContent($includeMaster) { if ($this->_data->getBaseProperty('preLogin')) { $ignore = false; foreach (Kwf_Config::getValueArray('preLoginIgnoreIp') as $i) { $ip = $_SERVER['REMOTE_ADDR']; if ($ip == $i) { $ignore = true; } if (!$ignore && substr($i, -1) == '*') { $i = substr($i, 0, -1); if (substr($ip, 0, strlen($i)) == $i) { $ignore = true; } } if (!$ignore && substr($i, 0, 1) == '*') { $i = substr($i, 1); if (substr($ip, -strlen($i)) == $i) { $ignore = true; } } } Kwf_Setup::checkPreLogin($this->_data->getBaseProperty('preLoginUser'), $this->_data->getBaseProperty('preLoginPassword')); } $benchmarkEnabled = Kwf_Benchmark::isEnabled(); if ($benchmarkEnabled) { $startTime = microtime(true); } $process = $this->_getProcessInputComponents($includeMaster); if ($benchmarkEnabled) { Kwf_Benchmark::subCheckpoint('getProcessInputComponents', microtime(true) - $startTime); } self::_callProcessInput($process); if ($benchmarkEnabled) { Kwf_Benchmark::checkpoint('processInput'); } $ret = array(); $hasDynamicParts = false; $ret['content'] = $this->_render($includeMaster, $hasDynamicParts); if ($benchmarkEnabled) { Kwf_Benchmark::checkpoint('render'); } $ret['mimeType'] = 'text/html; charset=utf-8'; if (!$includeMaster) { $assetsBox = $this->_data->getChildComponent('-assets'); if ($assetsBox) { $ret['assets'] = $assetsBox->render(null, false, $hasDynamicParts); } else { $ret['assets'] = ''; } } if (!$hasDynamicParts) { $ret['lifetime'] = 60 * 60; } self::_callPostProcessInput($process); if ($benchmarkEnabled) { Kwf_Benchmark::checkpoint('postProcessInput'); } return $ret; }