public static function raiseError($code, $text)
{
switch($code)
{
case 404:
throw new JException\ResourceNotFound($text, $code);
break;
default:
throw new Exception($text, $code);
break;
}
function error404() {
if(!defined('MVC_FRAMEWORK_ADMIN') && false === $this->disable404) {
cmsFramework::raiseError( 404, s2Messages::errorGeneric() );
return false;
}
else {
$disallowedAction = $this->action[0] == '_' || in_array($this->action,$this->disallowed_actions);
if(!$this->controller || (( (!isset($_POST) && !isset($this->params['form'])) || (empty($_POST) && empty($this->params['form']))) && $disallowedAction && !S2Dispatcher::isAjax()))
{
return $this->error404();
}
elseif(substr($this->action,0,1)=='__') // Private methods
{
return $this->error404();
}
if (isset($dispatchParams[$key]) && !$dispatchParams[$key]) {
unset($dispatchParams[$key]);
}
}
echo $Dispatcher->dispatch($dispatchParams);
unset($menu,$Dispatcher);
}
function JReviewsRouteActionsMap($action)
defined('MVC_FRAMEWORK') or die;
$this->app['router']->any('{any}', function () {
require_once __DIR__.'/web-legacy-'._CMS_NAME.'.php';
return JReviewsLegacyRouting($this->app['request']->server->get('REQUEST_URI'));
})->where('any', '(.*)');
{
$callable = $this->action['uses'];
if ($this->isSerializedClosure()) {
$callable = \unserialize($this->action['uses'])->getClosure();
}
return $callable(...\array_values($this->resolveMethodDependencies($this->parametersWithoutNulls(), new \ReflectionFunction($callable))));
}
/**
* Determine if the route action is a serialized Closure.
*
* @return bool
$this->container = $this->container ?: new \FWD\Illuminate\Container\Container();
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (\FWD\Illuminate\Http\Exceptions\HttpResponseException $e) {
return $e->getResponse();
}
}
/**
protected function runRouteWithinStack(\FWD\Illuminate\Routing\Route $route, \FWD\Illuminate\Http\Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === \true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new \FWD\Illuminate\Routing\Pipeline($this->container))->send($request)->through($middleware)->then(function ($request) use($route) {
return $this->prepareResponse($request, $route->run());
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
*/
protected function prepareDestination(\Closure $destination)
{
return function ($passable) use($destination) {
try {
return $destination($passable);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
* @return mixed
*/
public function then(\Closure $destination)
{
$pipeline = \array_reduce(\array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination));
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') && $this->container->make('middleware.disable') === \true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new \FWD\Illuminate\Routing\Pipeline($this->container))->send($request)->through($middleware)->then(function ($request) use($route) {
return $this->prepareResponse($request, $route->run());
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
{
$request->setRouteResolver(function () use($route) {
return $route;
});
$this->events->dispatch(new \FWD\Illuminate\Routing\Events\RouteMatched($route, $request));
return $this->prepareResponse($request, $this->runRouteWithinStack($route, $request));
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(\FWD\Illuminate\Http\Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(\FWD\Illuminate\Http\Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
*/
protected function prepareDestination(\Closure $destination)
{
return function ($passable) use($destination) {
try {
return $destination($passable);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
*/
public function handle($request, \Closure $next)
{
// Check if we're dealing with CORS and if we should handle it
if (!$this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
$this->cors->varyHeader($response, 'Access-Control-Request-Method');
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = \method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (\Throwable $e) {
return $this->handleException($passable, $e);
}
};
* @return mixed
*/
public function then(\Closure $destination)
{
$pipeline = \array_reduce(\array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination));
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
\FWD\Illuminate\Support\Facades\Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new \FWD\Illuminate\Routing\Pipeline($this->app))->send($request)->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (\Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(new \FWD\Illuminate\Foundation\Http\Events\RequestHandled($request, $response));
function s2_dispatch()
{
$app = fwd_app();
$request = fwd_request();
$kernel = $app->get('kernel');
$response = $kernel->handle($request);
if ($app->has('response_headers')) {
$response->withHeaders($app->make('response_headers'));
}
if ($response->getStatusCode() === 204) {
$response->send();
defined('_JEXEC') or die;
require_once JPATH_SITE.'/components/com_jreviews/jreviews/framework.php';
s2framework\s2_dispatch();
if (! static::throw_s2framework_error()) {
return;
}
}
require __DIR__.DS.'jreviews'.DS.'cms_compat'.DS.'joomla'.DS.'bootloader.php';
}
public static function s2framework_is_not_active()
{
return ! function_exists('s2framework\s2_boot');
require_once __DIR__."/{$cmsName}.php";
$jreviews = new JReviews\JReviews();
$jreviews(__FILE__);
// Load common and local language files.
$lang->load($this->app->scope, JPATH_BASE) || $lang->load($this->app->scope, JPATH_COMPONENT);
// Execute the component
$loader = static function ($path) {
require_once $path;
};
$loader($path);
}
}
// Execute the component
$loader = static function ($path) {
require_once $path;
};
$loader($path);
}
}
{
throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
}
ob_start();
$app->bootComponent($option)->getDispatcher($app)->dispatch();
$contents = ob_get_clean();
// Revert the scope
$app->scope = $scope;
else
{
$document->setGenerator('Joomla! - Open Source Content Management');
}
$contents = ComponentHelper::renderComponent($component);
$document->setBuffer($contents, 'component');
// Trigger the onAfterDispatch event.
PluginHelper::importPlugin('system');
$this->triggerEvent('onAfterDispatch');
* ex: due of the sef urls
*/
$this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
// Dispatch the application
$this->dispatch();
// Mark afterDispatch in the profiler.
JDEBUG ? $this->profiler->mark('afterDispatch') : null;
}
$this->sanityCheckSystemVariables();
$this->setupLogging();
$this->createExtensionNamespaceMap();
// Perform application routines.
$this->doExecute();
// If we have an application document object, render it.
if ($this->document instanceof \Joomla\CMS\Document\Document)
{
// Render the application output.
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
ResourceNotFound
|
---|
Joomla\CMS\MVC\Controller\Exception\ResourceNotFound: There was a problem processing the request. at /home/legalst3/public_html/components/com_s2framework/s2framework/libs/cms_compat/joomla/framework_joomla4.php:1370 at cmsFramework::raiseError() (/home/legalst3/public_html/components/com_s2framework/s2framework/dispatcher.php:443) at S2Dispatcher->error404() (/home/legalst3/public_html/components/com_s2framework/s2framework/dispatcher.php:241) at S2Dispatcher->dispatch() (/home/legalst3/public_html/components/com_jreviews/routes/web-legacy-joomla.php:137) at JReviewsLegacyRouting() (/home/legalst3/public_html/components/com_jreviews/routes/web.php:7) at FWD\Illuminate\Support\ServiceProvider->{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Route.php:206) at FWD\Illuminate\Routing\Route->runCallable() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Route.php:181) at FWD\Illuminate\Routing\Route->run() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:607) at FWD\Illuminate\Routing\Router->FWD\Illuminate\Routing\{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:111) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:88) at FWD\Illuminate\Pipeline\Pipeline->then() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:608) at FWD\Illuminate\Routing\Router->runRouteWithinStack() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:593) at FWD\Illuminate\Routing\Router->runRoute() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:565) at FWD\Illuminate\Routing\Router->dispatchToRoute() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Routing/Router.php:555) at FWD\Illuminate\Routing\Router->dispatch() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:124) at FWD\Illuminate\Foundation\Http\Kernel->FWD\Illuminate\Foundation\Http\{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:111) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/fruitcake/laravel-cors/src/HandleCors.php:34) at FWD\Fruitcake\Cors\HandleCors->handle() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:145) at FWD\Illuminate\Pipeline\Pipeline->FWD\Illuminate\Pipeline\{closure}() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:88) at FWD\Illuminate\Pipeline\Pipeline->then() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:102) at FWD\Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() (/home/legalst3/public_html/components/com_s2framework/build/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:83) at FWD\Illuminate\Foundation\Http\Kernel->handle() (/home/legalst3/public_html/components/com_s2framework/build/bootstrap/joomla.php:72) at s2framework\s2_dispatch() (/home/legalst3/public_html/components/com_jreviews/jreviews/cms_compat/joomla/bootloader.php:13) at require('/home/legalst3/public_html/components/com_jreviews/jreviews/cms_compat/joomla/bootloader.php') (/home/legalst3/public_html/components/com_jreviews/joomla.php:17) at JReviews\JReviews->__invoke() (/home/legalst3/public_html/components/com_jreviews/jreviews.php:25) at require_once('/home/legalst3/public_html/components/com_jreviews/jreviews.php') (/home/legalst3/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69) at Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() (/home/legalst3/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71) at Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() (/home/legalst3/public_html/libraries/src/Component/ComponentHelper.php:389) at Joomla\CMS\Component\ComponentHelper::renderComponent() (/home/legalst3/public_html/libraries/src/Application/SiteApplication.php:204) at Joomla\CMS\Application\SiteApplication->dispatch() (/home/legalst3/public_html/libraries/src/Application/SiteApplication.php:243) at Joomla\CMS\Application\SiteApplication->doExecute() (/home/legalst3/public_html/libraries/src/Application/CMSApplication.php:278) at Joomla\CMS\Application\CMSApplication->execute() (/home/legalst3/public_html/includes/app.php:63) at require_once('/home/legalst3/public_html/includes/app.php') (/home/legalst3/public_html/index.php:32) |
© 2022 LegalStavki.com - Где делать легальные ставки на спорт в России.
Использование любых материалов, размещённых на сайте, разрешается при условии ссылки на наш сайт.
18+ LegalStavki.com не занимается организацией и проведением азартных игр. Вся представленная на сайте информация носит ознакомительный характер.