예제 #1
0
     * @author <erik@colosa.com
     */
    if ($isControllerCall) { //Instance the Controller object and call the request method
        $controller = new $controllerClass();
        $controller->setHttpRequestData($_REQUEST);//NewRelic Snippet - By JHL
        transactionLog($controllerAction);

        if ($isPluginController) {
            $controller->setPluginName($pluginName);
            $controller->setPluginHomeDir(PATH_PLUGINS . $pluginName . PATH_SEP);
        }

        $controller->call($controllerAction);
    } else {
        //NewRelic Snippet - By JHL
        transactionLog($phpFile);
        require_once $phpFile;
    }

    if (defined( 'SKIP_HEADERS' )) {
        header( "Expires: " . gmdate( "D, d M Y H:i:s", mktime( 0, 0, 0, date( 'm' ), date( 'd' ), date( 'Y' ) + 1 ) ) . " GMT" );
        header( 'Cache-Control: public' );
        header( 'Pragma: ' );
    }

    ob_end_flush();
    if (DEBUG_TIME_LOG) {
        bootstrap::logTimeByPage(); //log this page
    }
}
예제 #2
0
     * New feature for Gulliver framework to support Controllers & HttpProxyController classes handling
     *
     * @author <erik@colosa.com
     */
    if ($isControllerCall) {
        //Instance the Controller object and call the request method
        $controller = new $controllerClass();
        $controller->setHttpRequestData($_REQUEST);
        //NewRelic Snippet - By JHL
        transactionLog($controllerAction);
        $controller->call($controllerAction);
    } elseif ($isRestRequest) {
        //NewRelic Snippet - By JHL
        transactionLog($restConfig . $restApiClassPath . SYS_TARGET);
        Bootstrap::dispatchRestService(SYS_TARGET, $restConfig, $restApiClassPath);
    } else {
        //NewRelic Snippet - By JHL
        transactionLog($phpFile);
        require_once $phpFile;
    }
    if (defined('SKIP_HEADERS')) {
        header("Expires: " . gmdate("D, d M Y H:i:s", mktime(0, 0, 0, date('m'), date('d'), date('Y') + 1)) . " GMT");
        header('Cache-Control: public');
        header('Pragma: ');
    }
    ob_end_flush();
    if (DEBUG_TIME_LOG) {
        bootstrap::logTimeByPage();
        //log this page
    }
}