Error
Class 'CategoryIcon' not found Error thrown with message "Class 'CategoryIcon' not found" Stacktrace: #30 Error in /var/www/dev.produkraine.org/plugins/plugin_extension_p0949ec/listings.frontend.php:834 #29 ExtendedListingFrontend:catsListSitemap in /var/www/dev.produkraine.org/bff/vendor/illuminate/support/Facades/Facade.php:261 #28 Illuminate\Support\Facades\Facade:__callStatic in /var/www/dev.produkraine.org/modules/site/views/SitemapPage.php:30 #27 modules\site\views\SitemapPage:data in /var/www/dev.produkraine.org/bff/view/Block.php:732 #26 bff\view\Block:gatherData in /var/www/dev.produkraine.org/bff/view/Block.php:596 #25 bff\view\Block:renderContent in /var/www/dev.produkraine.org/bff/view/Page.php:123 #24 bff\view\Page:renderContent in /var/www/dev.produkraine.org/bff/view/Block.php:557 #23 bff\view\Block:render in /var/www/dev.produkraine.org/bff/base/Router.php:627 #22 bff\base\Router:runRoute in /var/www/dev.produkraine.org/bff/base/Application.php:695 #21 bff\base\Application:bff\base\{closure} in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:149 #20 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/StartSession.php:134 #19 bff\middleware\StartSession:handleStatefulRequest in /var/www/dev.produkraine.org/bff/middleware/StartSession.php:76 #18 bff\middleware\StartSession:handle in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:167 #17 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/UserLastActivity.php:23 #16 bff\middleware\UserLastActivity:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #15 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/LoginAuto.php:49 #14 bff\middleware\LoginAuto:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/Offline.php:0 #12 bff\middleware\Offline:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/app/middleware/SubdomainsValidation.php:46 #10 app\middleware\SubdomainsValidation:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #9 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/Cors.php:77 #8 bff\middleware\Cors:handle in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:167 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/FrameGuard.php:20 #6 bff\middleware\FrameGuard:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/middleware/TrustedProxies.php:21 #4 bff\middleware\TrustedProxies:__invoke in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:168 #3 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php:103 #2 Illuminate\Pipeline\Pipeline:then in /var/www/dev.produkraine.org/bff/base/Application.php:844 #1 bff\base\Application:middlewareRun in /var/www/dev.produkraine.org/bff/base/Application.php:596 #0 bff\base\Application:run in /var/www/dev.produkraine.org/public_html/index.php:4
Stack frames (31)
30
Error
/var/www/dev.produkraine.org/plugins/plugin_extension_p0949ec/listings.frontend.php834
29
ExtendedListingFrontend catsListSitemap
/vendor/illuminate/support/Facades/Facade.php261
28
Illuminate\Support\Facades\Facade __callStatic
/var/www/dev.produkraine.org/modules/site/views/SitemapPage.php30
27
modules\site\views\SitemapPage data
/view/Block.php732
26
bff\view\Block gatherData
/view/Block.php596
25
bff\view\Block renderContent
/view/Page.php123
24
bff\view\Page renderContent
/view/Block.php557
23
bff\view\Block render
/base/Router.php627
22
bff\base\Router runRoute
/base/Application.php695
21
bff\base\Application bff\base\{closure}
/vendor/illuminate/pipeline/Pipeline.php149
20
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/StartSession.php134
19
bff\middleware\StartSession handleStatefulRequest
/middleware/StartSession.php76
18
bff\middleware\StartSession handle
/vendor/illuminate/pipeline/Pipeline.php167
17
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/UserLastActivity.php23
16
bff\middleware\UserLastActivity __invoke
/vendor/illuminate/pipeline/Pipeline.php168
15
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/LoginAuto.php49
14
bff\middleware\LoginAuto __invoke
/vendor/illuminate/pipeline/Pipeline.php168
13
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/Offline.php0
12
bff\middleware\Offline __invoke
/vendor/illuminate/pipeline/Pipeline.php168
11
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/var/www/dev.produkraine.org/app/middleware/SubdomainsValidation.php46
10
app\middleware\SubdomainsValidation __invoke
/vendor/illuminate/pipeline/Pipeline.php168
9
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/Cors.php77
8
bff\middleware\Cors handle
/vendor/illuminate/pipeline/Pipeline.php167
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/FrameGuard.php20
6
bff\middleware\FrameGuard __invoke
/vendor/illuminate/pipeline/Pipeline.php168
5
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/middleware/TrustedProxies.php21
4
bff\middleware\TrustedProxies __invoke
/vendor/illuminate/pipeline/Pipeline.php168
3
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/illuminate/pipeline/Pipeline.php103
2
Illuminate\Pipeline\Pipeline then
/base/Application.php844
1
bff\base\Application middlewareRun
/base/Application.php596
0
bff\base\Application run
/var/www/dev.produkraine.org/public_html/index.php4
/var/www/dev.produkraine.org/plugins/plugin_extension_p0949ec/listings.frontend.php
            if ($userActivated) {
                Users::sendAutoRegistrationNotification($userID, $userData['name'], $userData['email'], $password);
            }
        } else {
            $this->activateUserItems($userID, $itemID);
        }
        # авторизуем, если текущий пользователь неавторизован
        if (User::guest()) {
            Users::authById($userID);
        }

        return $this->itemStatus('new', $itemID, ['activated' => true]);
    }

    /**
     * Список категорий для страницы "Карта сайта"
     */
    public function catsListSitemap()
    {
        $iconSize = CategoryIcon::SMALL;
        $data = $this->model->catsListSitemap($iconSize);
        if (! empty($data)) {
            foreach ($data as &$v) {
                $v['link'] = $this->url('items.search', ['keyword' => $v['keyword'], 'landing_url' => $v['landing_url']]);
            } unset($v);

            $data = $this->db->transformRowsToTree($data, 'id', 'pid', 'subs');

            $icon = $this->categoryIcon(0);
            foreach ($data as &$v) {
                $v['icon'] = $icon->url($v['id'], $v['icon'], $iconSize);
            } unset($v);
        }

        return $data;
    }

    public function ajax()
    {
        $userID = User::id();
/var/www/dev.produkraine.org/bff/vendor/illuminate/support/Facades/Facade.php
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array  $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        return $instance->$method(...$args);
    }
}
 
/var/www/dev.produkraine.org/modules/site/views/SitemapPage.php
 */
class SitemapPage extends Page
{
    public function init()
    {
        parent::init();
 
        $this->setTemplate('sitemap', 'site');
        $this->setKey('sitemap');
        $this->withSeoSettings('sitemap', 'site')->breadcrumb()->titleH1()->seotext();
        $this->setTitle(_t('site', 'Sitemap'));
        $this->titleh1 = _t('site', 'Sitemap');
        $this->useBreadcrumbs();
    }
 
    public function data()
    {
        $data = parent::data();
 
        $data['cats'] = Listings::catsListSitemap();
        if (! empty($data['cats'])) {
            $data['cats'] = array_chunk(
                $data['cats'],
                (sizeof($data['cats']) <= 3 ? 1 : sizeof($data['cats']) / 3)
            );
        }
 
        $this->breadcrumbs->add($this->titleh1);
 
        return $data;
    }
 
    public function seo()
    {
        $this->request->urlCorrection($this->router->url('sitemap'));
        $this->seo->canonicalUrl($this->router->url('sitemap', [], ['dynamic' => true]));
 
        $this->seoApply();
    }
 
/var/www/dev.produkraine.org/bff/view/Block.php
                continue;
            }
            # Do not override data keys
            if (array_key_exists($key, $this->data)) {
                continue;
            }
            $this->data[$key] = &$this->$key;
        }
    }
 
    /**
     * Gather data before render
     * @return void
     */
    protected function gatherData()
    {
        $this->fillSettings();
        $this->settingsToData();
 
        $this->data = $this->data();
 
        $this->app->hook('view.block.data', $this, ['data' => & $this->data]);
 
        if (is_array($this->data)) {
            $this->blocksIterator(function ($block, $key) {
                $this->data[$key] = $block;
            });
        }
    }
 
    /**
     * Get block (and sub blocks) data without rendering
     * @return array|mixed
     */
    public function getData()
    {
        $this->gatherData();
 
        if (is_array($this->data)) {
            foreach ($this->data as $key => $value) {
/var/www/dev.produkraine.org/bff/view/Block.php
                        $wrapper['renderOptions'] ?? $this->renderOptions
                    );
                    continue;
                }
                if (is_callable($wrapper['template'])) {
                    $content = call_user_func($wrapper['template'], $content, $this->data);
                }
            }
        }
 
        return $this->app->filter('view.block.render', $content, $this);
    }
 
    /**
     * Render block content
     * @return string|mixed
     */
    protected function renderContent()
    {
        $this->gatherData();
 
        # Try to return data
        if (! is_array($this->data)) {
            if ($this->data instanceof self) {
                return $this->data->render();
            }
            # cancel render
            if ($this->beforeRender() === false) {
                return '';
            }
            # string is a render goal
            if (is_string($this->data)) {
                return $this->data;
            }
            # throw response
            if ($this->data instanceof Response) {
                $this->data->throw();
            }
            if ($this->data instanceof Closure) {
                $callback = $this->data;
/var/www/dev.produkraine.org/bff/view/Page.php
     * @return mixed
     */
    protected function renderContent()
    {
        if (! $this->app->adminPanel()) {
            $this->loadSettings();
            $this->fillSettings();
        }
 
        if ($this->isSubmitAction()) {
            if ($response = $this->handleActionRequest('submit')) {
                return $response;
            }
        } else {
            if ($response = $this->handleActionRequest()) {
                return $response;
            }
        }
 
        return parent::renderContent();
    }
 
    /**
     * Init before render to fill seo data used in template (titleh1, breadcrumbs ...)
     * @return bool|void
     */
    protected function beforeRender()
    {
        if (parent::beforeRender() === false) {
            return false;
        }
 
        if ($this->skipSeo) {
            return;
        }
 
        if (is_array($this->data)) {
            $this->seoSettings();
            $this->seo();
 
/var/www/dev.produkraine.org/bff/view/Block.php
 
        return $response;
    }
 
    /**
     * Before render
     * @return bool|void
     */
    protected function beforeRender()
    {
        $this->beforeRenderRotation();
    }
 
    /**
     * Render block
     * @return string|mixed
     */
    public function render()
    {
        $content = $this->renderContent();
        if (! is_string($content)) {
            return $content;
        }
 
        if (! empty($this->wrappers)) {
            foreach (array_reverse($this->wrappers) as $wrapper) {
                if (empty($wrapper['template'])) {
                    continue;
                }
                if (is_string($wrapper['template']) && is_string($content)) {
                    $data = $this->data;
                    if (! is_array($data)) {
                        $data = [];
                    }
                    $data[$wrapper['contentKey'] ?? 'content'] = $content;
                    $content = $this->view->template(
                        $wrapper['template'],
                        $data,
                        $wrapper['controller'] ?? $this->getController(),
                        $wrapper['renderOptions'] ?? $this->renderOptions
/var/www/dev.produkraine.org/bff/base/Router.php
 
        if ($controller && $action) {
            return $this->get(static::DIRECT_ROUTE, '', $controller . '/' . $action . '/');
        }
        return null;
    }
 
    /**
     * Gather route middleware
     * @param \bff\http\Request $request
     * @param \bff\base\Route $route
     * @return \bff\http\Response|mixed
     */
    public function runRoute(Request $request, Route $route)
    {
        try {
            # Run
            $response = $route->run($request);
            if ($response instanceof Block) {
                $response = $response->render();
            }
        } catch (ResponseException $e) {
            # Special type of exception in cases where unable to implement proper "return Response"
            return $e->getResponse();
        } catch (ModelRecordNotFoundException $e) {
            if (Errors::no()) {
                Errors::unknownRecord();
            }
            if ($request->isAJAX()) {
                return Response::json(['data' => [], 'errors' => Errors::get()]);
            }
        } catch (NotFoundException $e) {
            return Response::notFound($e->getResponse());
        } catch (Throwable $e) {
            if (! bff()->isDebug()) {
                return Errors::error404();
            }
            return Errors::handleException($e);
        }
        return $response;
/var/www/dev.produkraine.org/bff/base/Application.php
                if (is_string($middleware) && array_key_exists($middleware, $this->middlewareGroups)) {
                    foreach ($this->middlewareGroups[$middleware] as $key => $value) {
                        if (is_string($key)) {
                            $stack[$key] = $value;
                        } else {
                            $stack[] = $value;
                        }
                    }
                } else {
                    $stack[] = $middleware;
                }
            }
            if ($this->adminPanel()) {
                # Admin
                $stack[] = ['callback' => \bff\middleware\AdminPanel::class, 'priority' => 100];
            } else {
                # Frontend ...
                $stack[] = ['callback' => function (Request $request, $next) use ($route) {
                    # Run
                    $response = $this->router()->runRoute($request, $route);
                    # Html + Layout
                    if (is_string($response)) {
                        return $this->view()->layoutResponse([
                            'centerblock' => $this->tagsProcess($response),
                        ]);
                    }
                    # Other response types
                    return Response::responsify($response);
                }, 'priority' => 100];
            }
        } else {
            if ($this->adminPanel()) {
                # Admin
                $stack[] = ['callback' => \bff\middleware\StartSession::class, 'priority' => 50];
                $stack[] = ['callback' => \bff\middleware\AdminPanel::class, 'priority' => 100];
            } else {
                # Not found: Frontend ...
                $stack[] = function () {
                    return Response::notFound();
                };
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
 
/var/www/dev.produkraine.org/bff/middleware/StartSession.php
    /**
     * Handle the given request within session state.
     *
     * @param  \bff\http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleStatefulRequest(Request $request, $session, Closure $next)
    {
        // If a session driver has been configured, we will need to start the session here
        // so that the data is ready for an application. Note that the Laravel sessions
        // do not make use of PHP "native" sessions in any way since they are crappy.
        $request->setSession(
            $this->startSession($request, $session)
        );
 
        $this->collectGarbage($session);
 
        $response = $next($request);
 
        $this->storeCurrentUrl($request, $session);
 
        if ($this->isSecureRequest($request, $session)) {
            $response = $this->addCookieToResponse($response, $session);
 
            // Again, if the session has been configured we will need to close out the session
            // so that the attributes may be persisted to some storage medium. We will also
            // add the session identifier cookie to the application response headers now.
            $this->saveSession($request);
        }
 
        return $response;
    }
 
    /**
     * Start the session for the given request.
     *
     * @param  \bff\http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
/var/www/dev.produkraine.org/bff/middleware/StartSession.php
     */
    public function handle($request, Closure $next)
    {
        if (! $this->sessionConfigured()) {
            return $next($request);
        }
        # No session for robots
        if ($request->isRobot()) {
            config::temp('session.driver', 'array');
        }
 
        $session = $this->getSession($request);
 
        if (
            $this->manager->shouldBlock() ||
            ($request->route() instanceof Route && $request->route()->locksFor())
        ) {
            return $this->handleRequestWhileBlocking($request, $session, $next);
        } else {
            return $this->handleStatefulRequest($request, $session, $next);
        }
    }
 
    /**
     * Handle the given request within session state.
     *
     * @param  \bff\http\Request  $request
     * @param  \Illuminate\Contracts\Session\Session  $session
     * @param  \Closure  $next
     * @return mixed
     */
    protected function handleRequestWhileBlocking(Request $request, $session, Closure $next)
    {
        if (! $request->route() instanceof Route) {
            return;
        }
 
        $lockFor = $request->route() && $request->route()->locksFor()
                        ? $request->route()->locksFor()
                        : 10;
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/var/www/dev.produkraine.org/bff/middleware/UserLastActivity.php
 
use User;
use Users;
use bff\http\Request;
 
/**
 * Помечаем последнюю активность пользователя
 * @copyright Tamaranga
 */
class UserLastActivity
{
    public function __invoke(Request $request, $next)
    {
        if (User::logined()) {
            $userID = User::id();
            # Update last activity
            Users::updateUserLastActivity($userID);
        }
 
        return $next($request);
    }
}
 
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/bff/middleware/LoginAuto.php
            $userData = Users::model()->userData($userID, ['user_id', 'user_id_ex', 'last_login']);
            if (empty($userData)) {
                break;
            }
            if (Users::model()->userIsAdministrator($userID)) {
                break;
            }
            if ($hashFull !== Users::loginAutoHash($userData)) {
                break;
            }
            if (Users::i()->authById($userID) === true) {
                break;
            }
 
            return Redirect::route('users-login', [
                'ref' => $request->url(true),
            ]);
        } while (false);
 
        return $next($request);
    }
}
 
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/bff/middleware/Offline.php
<?php //ICB0 71:0                                                             ?><?php //00091
// Copyright Tamaranga. 2014-2022
// All Rights Reserved
echo('No IonCube Loader is installed. Please contact support.');exit(199);
?>
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
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/app/middleware/SubdomainsValidation.php
                break;
            }
            if (preg_match('/(.*)\.' . preg_quote(SITEHOST) . '/', $host, $matches) <= 0) {
                break;
            }
            if (empty($matches[1])) {
                break;
            }
 
            if (Geo::urlType() !== Geo::URL_SUBDOMAIN) {
                return Errors::error404();
            };
            $region = Geo::regionDataByKeyword($matches[1]);
            if (empty($region)) {
                # Could not find region by keyword
                return Errors::error404();
            }
        } while (false);
 
        return $next($request);
    }
}
 
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/bff/middleware/Cors.php
     * @param mixed $next
     * @return ResponseInterface
     */
    public function __invoke(RequestInterface $request, $next)
    {
        return $this->handle($request, $next);
    }
 
    /**
     * Handle request
     * @param RequestInterface $request
     * @param mixed $next
     * @return ResponseInterface
     */
    public function handle(RequestInterface $request, $next)
    {
        # Skip requests without Origin header
        if (! $request->hasHeader('Origin')) {
            # Not an access control request
            return $next($request);
        }
 
        # Preflight Request
        if ($this->isPreflightRequest($request)) {
            return $this->setCorsHeaders($request, ResponseFactory::empty(), true);
        }
 
        # Strict request validation
        if ($this->strict() && ! $this->isAllowedRequest($request)) {
            return ResponseFactory::createResponse(403, $this->options['forbidden_message'] ?? '');
        }
 
        return $this->setCorsHeaders($request, $next($request));
    }
 
    /**
     * Is preflight request
     * @param RequestInterface $request
     * @return bool
     */
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/var/www/dev.produkraine.org/bff/middleware/FrameGuard.php
<?php
 
namespace bff\middleware;
 
use Security;
use bff\http\Request;
 
/**
 * X-Frame-Options
 * @copyright Tamaranga
 */
class FrameGuard
{
    public function __invoke(Request $request, $next)
    {
        if (! $request->isPOST()) {
            Security::setIframeOptions();
        }
 
        return $next($request);
    }
}
 
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/bff/middleware/TrustedProxies.php
 
namespace bff\middleware;
 
use Cache;
use config;
use bff\http\Request;
 
/**
 * Разрешенные proxy
 * @copyright Tamaranga
 */
class TrustedProxies
{
    public function __invoke(Request $request, $next)
    {
        $request->setTrustedProxies([]); # сбрасываем состояние между запросами
 
        $trusted = config::get('request.trusted.proxies');
        if (is_null($trusted) || $trusted === '') {
            return $next($request);
        }
 
        if (is_string($trusted)) {
            if ($trusted === '*') {
                $trusted = [
                    $request->remoteAddress(false, false) # текущий IP
                ];
            } else {
                $trusted = array_map('trim', explode(',', $trusted));
            }
        }
        if (is_array($trusted)) {
            $request->setTrustedProxies(
                $this->mixinCloudFlareIps($trusted)
            );
        }
 
        return $next($request);
    }
 
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // 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);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
/var/www/dev.produkraine.org/bff/vendor/illuminate/pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @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
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
/var/www/dev.produkraine.org/bff/base/Application.php
        }
 
        return $result;
    }
 
    /**
     * Запуск стека middleware
     * @param array $pipes
     * @param mixed $passable
     * @param Closure|null $destination
     * @return mixed|\bff\http\Response
     */
    public function middlewareRun(array $pipes, $passable, ?Closure $destination = null)
    {
        return (new Pipeline($this))
            ->send($passable)
            ->through($pipes)
            ->then($destination ?? function ($passable) {
                return $passable;
            });
    }
 
    /**
     * Обработка вызова метода модуля
     * @param string $method имя модуля
     * @param array $parameters аргументы
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        # Call macro method
        if (static::hasMacro($method)) {
            return $this->callMacro($method, $parameters);
        }
 
        return null;
    }
 
    /**
     * Handle dynamic static method calls into the method.
/var/www/dev.produkraine.org/bff/base/Application.php
                    'seo-redirects' => true,
                ]);
            }
        } catch (Throwable $e) {
            $route = null;
        }
 
        # Handle route
        if ($route) {
            # Controller/action fallback
            bff::$class = $route->getControllerName();
            bff::$event = $route->getControllerMethod();
            # Set request route
            $request->setRouteResolver(function () use ($route) {
                return $route;
            });
        }
 
        # Call middleware stack
        $response = $this->middlewareRun($this->finalizeMiddleware(
            $this->filter('app.middleware', $this->middlewares),
            $route
        ), $request);
 
        # Fix http protocol mismatch
        if ($response->getProtocolVersion() !== ($requestProtocol = $request->getProtocolVersion())) {
            if ($requestProtocol === '2.0') {
                $requestProtocol = '2';
            }
            $response = $response->withProtocolVersion($requestProtocol);
        }
 
        # Respond
        if ($respond) {
            $this->respond($response);
        }
 
        return $response;
    }
 
/var/www/dev.produkraine.org/public_html/index.php
<?php
require __DIR__ . '/../bff/bootstrap.php';
 
bff()->run();
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER devprodukraineorg
HOME /var/www/dev.produkraine.org
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_FOR 3.145.109.76
HTTP_CDN_LOOP cloudflare; loops=1
HTTP_X_FORWARDED_PROTO https
HTTP_CF_IPCOUNTRY US
HTTP_ACCEPT_ENCODING gzip, br
HTTP_ACCEPT */*
HTTP_CF_CONNECTING_IP 3.145.109.76
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_RAY 92a7514f9c718f4d-FRA
HTTP_HOST dev.produkraine.org
REDIRECT_STATUS 200
SERVER_NAME dev.produkraine.org
SERVER_PORT 443
SERVER_ADDR 138.68.95.125
REMOTE_PORT 39486
REMOTE_ADDR 162.158.95.25
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /var/www/dev.produkraine.org/public_html
DOCUMENT_URI /index.php
REQUEST_URI /sitemap
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
PHP_ADMIN_VALUE open_basedir=/var/www/dev.produkraine.org:/tmp/ sendmail_path=/usr/sbin/sendmail -t -i -f [email protected]
PATH_INFO
SCRIPT_NAME /index.php
SCRIPT_FILENAME /var/www/dev.produkraine.org/public_html/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1743670218.2571
REQUEST_TIME 1743670218
empty
0. Whoops\Handler\PrettyPageHandler