0.09)? '!': ' '; $d = date('ymdHis'); $di = sprintf('"%s %s %6.3f - %15s - %s"', $d, $w, $t, $_SERVER['REMOTE_ADDR'], $_SERVER['REQUEST_URI']); `echo $di >> times.txt`; } require_once('_sys/before.inc.php'); if (constant('TIME_ZONE')) { date_default_timezone_set(TIME_ZONE); } require_once('app/Member/Member.php'); start_timer('Script duration'); if (defined('LOG_ACCESS_TIMES') && LOG_ACCESS_TIMES) { register_shutdown_function(shd); } //var_dump( SiteMap::getPath('CMS/SiteMapApp.php') ); if (is_file(SiteMap::getPath('CMS/SiteMapApp.php'))){ $SiteMap = SiteMap::getObj('CMS/SiteMapApp.php'); }else { $SiteMap = new SiteMap(); } //dump(CURR_PAGE); define('CURR_LANG', $lang); $pageArr = $SiteMap->getArr($curr_page); // Show user end maintenance page if (defined('SHOW_USEREND_MAINTENANCE_PAGE') && SHOW_USEREND_MAINTENANCE_PAGE && 0 !== strncmp('Admin', $pageArr['docHandler'], 5)) { require_once('class/HTTP.php'); skHTTP::redirect(BASE_URL . '/maintenance.html'); } // end show user end maintenance page $pageArr['lang'] = CURR_LANG; define('CURR_PAGE', $pageArr['CURR_PAGE'] ? $pageArr['CURR_PAGE'] : $curr_page); define('CURR_PAGE_FULL', $curr_page); unset($SiteMap); $docHandler = $pageArr['docHandler']; //vdie($pageArr); $item = (array)$pageArr['item']; unset($pageArr['item']); $options = Qs_Array::get($__EXTENDED_CONFIG, 'app[' . $docHandler . ']', Qs_Array::get($__EXTENDED_CONFIG, 'app[doc]', array())); $Doc = SiteMap::getObj('Doc/'.$docHandler.'.php', $pageArr, $options); //vdie($docHandler, $Doc); $Doc->showDocItemList($item); //vdie($docHandler, $Doc); if ($pageArr['tpl']) { $Doc->setMainTpl($pageArr['tpl']); } $Doc->display(); finish_timer('Script duration'); if (defined('DEBUG') && DEBUG) { echo '
SCRIPT DURATION: '.$TIMER['Script duration']['total'] . '
'; } ?>