Error 503

{$errorMessage}

"; exit(); } /* start output buffering */ ob_start(); /* Create an instance of the modX class */ $modx = new \MODX\Revolution\modX(); if (!is_object($modx) || !($modx instanceof \MODX\Revolution\modX)) { ob_get_level() && @ob_end_flush(); $errorMessage = 'MODX not installed. Install now?'; @include MODX_CORE_PATH . 'error/unavailable.include.php'; header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service Unavailable'); echo "Error 503: Site temporarily unavailable

Error 503

{$errorMessage}

"; exit(); } /* Set the actual start time */ $modx->startTime = $tstart; /* Initialize a context */ $contextKey = 'web'; if (is_readable(__DIR__ . '/config.context.php')) { $contextKey = require __DIR__ . '/config.context.php'; } $modx->initialize($contextKey); /* execute the request handler */ if (!MODX_API_MODE) { $modx->handleRequest(); }