setDi($di); if (!$patcher->isOutdated()) { exit('There are no patches to apply'); } try { $patcher->applyConfigPatches(); $patcher->applyCorePatches(); exit('Patches have been applied'); } catch (\Exception $e) { exit('An error occurred while attempting to apply patches:
' . $e->getMessage()); } } $app->setUrl($appUrl); $di['translate'](); $app->setDi($di); // If HTTP error code has been passed, handle it. if (!is_null($http_err_code)) { switch ($http_err_code) { case '404': $e = new FOSSBilling\Exception('Page :url not found', [':url' => $url], 404); echo $app->show404($e); break; default: $http_err_code = intval($http_err_code); http_response_code($http_err_code); $e = new FOSSBilling\Exception('HTTP Error :err_code occurred while attempting to load :url', [':err_code' => $http_err_code, ':url' => $url], $http_err_code); echo $app->render('error', ['exception' => $e]); } exit; } // If no HTTP error passed, run the app. echo $app->run(); exit;