function run(&$filter_chain, &$request, &$response)
 {
     $filter_chain->next();
     debug::add_timing_point('logging filter started');
     $object = wrap_with_site_object(fetch_requested_object($request));
     $controller = $object->get_controller();
     include_once LIMB_DIR . 'core/model/stats/stats_register.class.php';
     $stats_register = new stats_register();
     $stats_register->register($object->get_node_id(), $controller->get_action(), $request->get_status());
     debug::add_timing_point('logging filter finished');
 }
Beispiel #2
0
debug::add_timing_point('object fetched');
$site_object_controller =& $site_object->get_controller();
if (($action = $site_object_controller->determine_action()) === false) {
    debug::write_error('"' . $action . '" action not found', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__);
    ob_end_clean();
    if (debug::is_console_enabled()) {
        echo debug::parse_html_console();
    }
    header("HTTP/1.1 404 Not found");
    exit;
}
$actions = $object_data['actions'];
if (!isset($actions[$action])) {
    debug::write_error('"' . $action . '" action is not accessible', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__);
    ob_end_clean();
    if (debug::is_console_enabled()) {
        echo debug::parse_html_console();
    }
    header("HTTP/1.1 403 Access denied");
    exit;
}
$response = $site_object_controller->process();
$stats_register = new stats_register();
$stats_register->register($node['id'], $action, $response->get_status());
$response->perform();
$site_object_controller->display_view();
echo message_box::parse();
if (debug::is_console_enabled()) {
    echo debug::parse_html_console();
}
ob_end_flush();
Beispiel #3
0
require_once LIMB_DIR . 'core/lib/debug/debug.class.php';
ob_start('process_output');
debug::add_timing_point('start');
require_once LIMB_DIR . 'core/lib/http/http_request.inc.php';
require_once LIMB_DIR . 'core/lib/session/session.class.php';
require_once LIMB_DIR . 'core/lib/system/message_box.class.php';
require_once LIMB_DIR . 'core/lib/db/db_table_factory.class.php';
require_once LIMB_DIR . 'core/lib/error/error.inc.php';
require_once LIMB_DIR . 'core/lib/locale/strings.class.php';
require_once LIMB_DIR . 'core/lib/http/control_flow.inc.php';
require_once LIMB_DIR . 'core/tree/tree.class.php';
require_once LIMB_DIR . 'core/fetcher.class.php';
require_once LIMB_DIR . 'core/model/stats/stats_register.class.php';
require_once LIMB_DIR . 'core/model/response/response.class.php';
start_user_session();
$stats_register = new stats_register();
debug::add_timing_point('require_done');
$recursive = false;
if (isset($_REQUEST['recursive_search_for_node']) && $_REQUEST['recursive_search_for_node']) {
    $recursive = true;
}
$node =& map_current_request_to_node($recursive);
if (!$node) {
    debug::write_error('node not found', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__);
    ob_end_clean();
    if (debug::is_console_enabled()) {
        echo debug::parse_html_console();
    }
    if (defined("ERROR_DOCUMENT_404")) {
        reload(ERROR_DOCUMENT_404);
    } else {