//make infos about the selected page available $INFO = pageinfo(); //export minimal infos to JS, plugins can add more $JSINFO['id'] = $ID; $JSINFO['namespace'] = (string) $INFO['namespace']; // handle debugging if ($conf['allowdebug'] && $ACT == 'debug') { html_debug(); exit; } //send 404 for missing pages if configured or ID has special meaning to bots if (!$INFO['exists'] && ($conf['send404'] || preg_match('/^(robots\\.txt|sitemap\\.xml(\\.gz)?|favicon\\.ico|crossdomain\\.xml)$/', $ID)) && ($ACT == 'show' || !is_array($ACT) && substr($ACT, 0, 7) == 'export_')) { header('HTTP/1.0 404 Not Found'); } //prepare breadcrumbs (initialize a static var) if ($conf['breadcrumbs']) { breadcrumbs(); } // check upstream checkUpdateMessages(); $tmp = array(); // No event data trigger_event('DOKUWIKI_STARTED', $tmp); //close session session_write_close(); //do the work (picks up what to do from global env) act_dispatch(); $tmp = array(); // No event data trigger_event('DOKUWIKI_DONE', $tmp); // xdebug_dump_function_profile(1);
//make infos about the selected page available $INFO = pageinfo(); //export minimal infos to JS, plugins can add more $JSINFO['id'] = $ID; $JSINFO['namespace'] = (string) $INFO['namespace']; // handle debugging if ($conf['allowdebug'] && $ACT == 'debug') { html_debug(); exit; } //send 404 for missing pages if configured or ID has special meaning to bots if (!$INFO['exists'] && ($conf['send404'] || preg_match('/^(robots\\.txt|sitemap\\.xml(\\.gz)?|favicon\\.ico|crossdomain\\.xml)$/', $ID)) && ($ACT == 'show' || substr($ACT, 0, 7) == 'export_')) { header('HTTP/1.0 404 Not Found'); } //prepare breadcrumbs (initialize a static var) if ($conf['breadcrumbs']) { breadcrumbs(); } // check upstream checkUpdateMessages(); $tmp = array(); // No event data trigger_event('DOKUWIKI_STARTED', $tmp); //close session session_write_close(); //do the work act_dispatch($ACT); $tmp = array(); // No event data trigger_event('DOKUWIKI_DONE', $tmp); // xdebug_dump_function_profile(1);