Phalcon Framework 5.9.3

ParseError: Unclosed '{' on line 30

/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%menu.volt.compiled (42)
#0Phalcon\Mvc\View\Engine\Volt->render
#1Phalcon\Mvc\View->engineRender
#2Phalcon\Mvc\View->partial
#3Phalcon\Mvc\View\Engine\AbstractEngine->partial
/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%stories%%index.volt.compiled (39)
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes">
        <meta name="keywords" content="chat, chats, chatear, chat gratis, red de chat, irc, ligar en chat, chat de ciudades, chat de pueblos, chatear gratis" />
 
        <?php if ($controller == 'index' && $action == 'index') { ?>
        <meta name="publisuites-verify-code" content="aHR0cHM6Ly9jaGF0aGlzcGFuby5jb20=" />
        <meta name="google-site-verification" content="qcxe2DWGaxmp1Db8zhwmwe5-A7BlJicc7R7hfTywm-4" />
        <meta name="msvalidate.01" content="8599F70ACD2A8328EADD494BDE2BD875" />
        <meta name="Trafficstars" content="73817">
        <?php } ?>
 
        <?php if (isset($amphtml)) { ?>
        <link rel="amphtml" href="<?= $amphtml ?>">
        <?php } ?>
 
        <?= $this->partial('common/tags') ?>
        <?= $this->partial('common/ads/head/massarius') ?>
 
        <!-- favicon -->
        <link rel="shortcut icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
        <link rel="icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
 
        <?= $this->partial('common/fonts-preload') ?>
 
        <link rel="stylesheet" href="https://massariuscdn.com/pubs/chathispano/index.css">
 
        <?= $this->partial('common/backgrounds') ?>
        <?= $this->partial('common/fonts') ?>
        <?= $this->assets->outputInlineCss('headerCss') ?>
    </head>
 
    <body class="container-fluid ps-0 pe-0 pb-0">
        <?= $this->partial('common/wall-underage') ?>
 
        <?= $this->partial('common/menu') ?>
        <?= $this->partial('common/be-premium-mobile') ?>
 
        <?php if (!$hasPremium && $controller != 'error' && $controller != 'paywall' && $controller != 'auth' && $controller != 'sexshop') { ?>
        <div class="container-xl banner-top pt-2 pb-2">
            <?= $this->partial('common/ads/banners/top') ?>
        </div>
        <?php } ?>
 
        <div class="container-fluid main-content main-content-home">
            <div class="container-xl home-header">
                
            </div>
        </div>
        <div class="container-fluid main-content">
            <?php if ($controller == 'index' && $action == 'index') { ?>
            <!-- We do not put breadcrumb in home page -->
            <?php } else { ?>
            <div class="container-xl">
                <?= $this->partial('common/breadcrumb') ?>
            </div>
            <?php } ?>
            <div class="container-xl">
                <div class="row">
                    <div class="col-12 col-sm mt-3">
                        <?= $this->flashSession->output() ?>
                        
<h1 class="mb-4"><?= $stories_title ?></h1>
<ul class="nav nav-tabs" id="stories" role="tablist" style="border-bottom:0px;">
    <li class="nav-item" role="presentation">
        <button class="nav-link active bg-goldenrot text-light" id="lastpublished-tab" data-bs-toggle="tab" data-bs-target="#lastpublished" type="button"
            role="tab" aria-controls="lastpublished" aria-selected="true" data-active-classes="bg-goldenrot text-light">
            <span class="fa fa-fire"></span>
            <?= $this->translate->translate('Last published') ?>
        </button>
    </li>
    <li class="nav-item" role="presentation">
        <button class="nav-link" id="mostviewed-tab" data-bs-toggle="tab" data-bs-target="#mostviewed" type="button" role="tab"
            aria-controls="mostviewed" aria-selected="false" data-active-classes="bg-primary text-light">
            <span class="fa fa-eye"></span>
            <?= $this->translate->translate('Most viewed') ?>
        </button>
    </li>
    <li class="nav-item" role="presentation">
        <button class="nav-link" id="mostliked-tab" data-bs-toggle="tab" data-bs-target="#mostliked" type="button" role="tab"
            aria-controls="mostliked" aria-selected="false" data-active-classes="bg-success text-light">
            <span class="fa fa-heart"></span>
            <?= $this->translate->translate('Most liked') ?>
        </button>
    </li>
    <li class="nav-item" role="presentation">
        <button class="nav-link" id="mostdisliked-tab" data-bs-toggle="tab" data-bs-target="#mostdisliked" type="button" role="tab"
            aria-controls="mostdisliked" aria-selected="false" data-active-classes="bg-danger text-light">
            <span class="fa fa-heart-broken"></span>
            <?= $this->translate->translate('Most disliked') ?>
        </button>
    </li>
</ul>
<div class="tab-content mb-2">
    <div class="tab-pane active" id="lastpublished" role="tabpanel" aria-labelledby="lastpublisehd-tab">
        <?php $this->partial('stories/fragments/list', ['stories' => $stories['last'], 'list' => 'last', 'd' => $hasDate, 'c' => $hasChannel]); ?>
    </div>
    <div class="tab-pane" id="mostviewed" role="tabpanel" aria-labelledby="mostviewed-tab">
        <?php $this->partial('stories/fragments/list', ['stories' => $stories['viewed'], 'list' => 'viewed', 'd' => $hasDate, 'c' => $hasChannel]); ?>
    </div>
    <div class="tab-pane" id="mostliked" role="tabpanel" aria-labelledby="mostliked-tab">
        <?php $this->partial('stories/fragments/list', ['stories' => $stories['liked'], 'list' => 'liked', 'd' => $hasDate, 'c' => $hasChannel]); ?>
    </div>
    <div class="tab-pane" id="mostdisliked" role="tabpanel" aria-labelledby="mostdisliked-tab">
        <?php $this->partial('stories/fragments/list', ['stories' => $stories['disliked'], 'list' => 'disliked', 'd' => $hasDate, 'c' => $hasChannel]); ?>
    </div>
</div>
<?php $this->partial('common/pagination', ['page' => $page, 'pages' => $total_pages, 'base_uri' => $uri_stories]); ?>
 
                        <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop' && $section_gay != 1 && $section_lesbianas != 1 && $section_sex != 1) { ?>
                        <?php if ($ads_onnetwork_enabled) { ?>
                        <div class="card bg-white mb-4">
                            <div class="card-body">
                                <?= $this->partial('common/ads/video/onnetwork') ?>
                            </div>
                        </div>
                        <?php } ?>
                        <?php } ?>
                    </div>
                    <div class="col-12 col-sm-auto mt-3 sidebar sticky-sm-top align-self-start">
                        <?php if ($controller == 'index' && $action == 'index') { ?>
                        <!-- We do not put network realtime in home page -->
                        <?php } else { ?>
                        <?= $this->partial('common/panel-network-realtime') ?>
                        <?php } ?>
                        <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop') { ?>
                        <div class="card mb-3">
                            <div class="card-body">
                                <?= $this->partial('common/ads/banners/right') ?>
                            </div>
                        </div>
                        <?php } ?>
                        <?php if ($controller == 'index' && $action == 'index' && !$hasPremium) { ?>
                        <div class="card text-bg-light mb-3 overflow-hidden">
    <a href="/suscripciones/premium">
        <img alt="Chat Hispano PREMIUM" class="card-img-top"
        <?php if ($paywall_promo_enabled) { ?>
            src="/assets/web/images/<?= $paywall_promo_image ?>" />
        <?php } else { ?>
            src="/assets/web/images/hispano-large-premium.png" />
        <?php } ?>
    </a>
    <div class="card-body">
        <div class="d-grid gap-2">
            <a href="/suscripciones/premium" class="btn btn-primary" target="_blank">
                <?= $this->translate->translate('Try it free') ?>
            </a>
        </div>
    </div>
</div>
 
                        <?php } ?>
                    </div>
                </div>
                <?php if ($controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'profile' && $controller != 'sexshop') { ?>
                <div class="row">
                </div>
                <?php } ?>
            </div>
        </div>
 
        <?= $this->partial('common/footer') ?>
 
        <!-- main JavaScript -->
        <?= $this->assets->outputInlineJs('mainJs') ?>
        <?php if ($enable_moment) { ?>
        <?= $this->assets->outputInlineJs('momentJs') ?>
        <?php } ?>
        <?php if ($enable_charts) { ?>
        <?= $this->assets->outputInlineJs('chartJs') ?>
        <?php } ?>
        <?php if ($enable_editor) { ?>
        <?= $this->assets->outputJs('ckeditorJs') ?>
        <?php } ?>
        <?= $this->assets->outputInlineJs('pluginJs') ?>
 
        <script type="text/javascript">
            function load_massarius() {
                s = document.createElement('script');
                s.type = "text/javascript";
                s.src = "https://massariuscdn.com/pubs/chathispano/chathispano_hb_setup.js";
                document.body.appendChild(s);
            }
        </script>
 
        <?= $this->partial('common/js-underage') ?>
 
        <script type="text/javascript">
        $(document).ready(function() {
            /**********
             * PLUGIN *
             **********/
            var chathispano = new $.chathispano({
                'baseUri': "<?= $baseUri ?>",
                'locale': "<?= $locale ?>",
                'rev': "<?= $revision ?>",
                'tmpl_dir': '/assets/web/js/templates/',
                'storage_prefix': 'ChatHispanoWeb-',
                'language_file': 'web',
            });
            window.chathispano = chathispano;
            document.chathispano = chathispano;
            chathispano.init();
            chathispano.ready();
        });
        </script>
 
        
<script type="text/javascript">
    $('.nav#stories').on('show.bs.tab', function (e) {
        n = $(e.relatedTarget);
        n.removeClass(n.attr('data-active-classes'));
    });
    $('.nav#stories').on('shown.bs.tab', function (e) {
        n = $(e.target);
        n.addClass(n.attr('data-active-classes'));
    });
</script>
 
 
        <?php if (!$hasPremium && ($section_gay == 1 || $section_sex == 1)) { ?>
        <?= $this->partial('common/ads/trafficstars/avideo') ?>
        <?php } ?>
 
        <script src="https://cdn.jsdelivr.net/npm/cap-widget@latest"></script>
    </body>
</html>
#4Phalcon\Mvc\View\Engine\Volt->render
#5Phalcon\Mvc\View->engineRender
#6Phalcon\Mvc\View->processRender
#7Phalcon\Mvc\View->render
#8Phalcon\Mvc\Application->handle
/srv/ChatHispanoEngine/releases/20260905010411/apps/Application.php (150)
<?php
 
// namespace ChatHispanoEngine;
 
/**
 * Application driver class to initialize Phalcon and
 * other resources.
 */
class Application extends \Phalcon\Mvc\Application
{
    private static $mode = 'dev';
 
    private static $DEFAULT_MODULE = 'api';
 
    public const MODE_PRODUCTION = 'prod';
    public const MODE_STAGING = 'staging';
    public const MODE_TEST = 'test';
    public const MODE_DEVELOPMENT = 'dev';
 
    /**
     * Set application mode and error reporting level.
     */
    public function __construct($defaultModule, $env = 'dev')
    {
        $this->modules = array(
            'core' => array(
                'className' => 'ChatHispanoEngine\Core\Module',
                'path' => __DIR__.'/Core/Module.php',
            ),
            'api' => array(
                'className' => 'ChatHispanoEngine\Api\Module',
                'path' => __DIR__.'/Api/Module.php',
            ),
            'login' => array(
                'className' => 'ChatHispanoEngine\Login\Module',
                'path' => __DIR__.'/Login/Module.php',
            ),
            'oidc' => array(
                'className' => 'ChatHispanoEngine\Oidc\Module',
                'path' => __DIR__.'/Oidc/Module.php',
            ),
            'web' => array(
                'className' => 'ChatHispanoEngine\Web\Module',
                'path' => __DIR__.'/Web/Module.php',
            ),
            'backoffice' => array(
                'className' => 'ChatHispanoEngine\Backoffice\Module',
                'path' => __DIR__.'/Backoffice/Module.php',
            ),
            'movil' => array(
                'className' => 'ChatHispanoEngine\Movil\Module',
                'path' => __DIR__.'/Movil/Module.php',
            ),
            'regwebexternal' => array(
                'className' => 'ChatHispanoEngine\RegWebExternal\Module',
                'path' => __DIR__.'/Regwebexternal/Module.php',
            ),
            'cdn' => array(
                'className' => 'ChatHispanoEngine\Cdn\Module',
                'path' => __DIR__.'/Cdn/Module.php',
            ),
            'shorten' => array(
                'className' => 'ChatHispanoEngine\Shorten\Module',
                'path' => __DIR__.'/Shorten/Module.php',
            ),
        );
 
        static::$DEFAULT_MODULE = $defaultModule;
        self::$mode = $env;
 
        self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
        define('ENVIRONMENT', self::$mode);
 
        if (!defined('PHALCON_MODE')) {
            $mode = getenv('PHALCON_MODE');
            $mode = $mode ? $mode : self::$mode;
            define('PHALCON_MODE', $mode);
        }
 
        switch (self::getMode()) {
            case self::MODE_PRODUCTION:
            case self::MODE_STAGING:
                error_reporting(0);
                break;
            case self::MODE_TEST:
            case self::MODE_DEVELOPMENT:
                ini_set('display_errors', 'On');
                error_reporting(E_ALL);
                break;
        }
    }
 
    /**
     * Register the services here to make them general or register in
     * the ModuleDefinition to make them module-specific.
     */
    protected function _registerServices()
    {
        $defaultModule = self::$DEFAULT_MODULE;
        $modules = $this->modules;
        $config = include __DIR__.'/../config/config.php';
        $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
        $config->merge($env_config);
 
        $di = new \Phalcon\DI\FactoryDefault();
 
        include __DIR__.'/../config/loader.php';
        include __DIR__.'/../config/services.php';
        include __DIR__.'/../config/routing.php';
 
        $this->setDI($di);
    }
 
    /**
     * Run the application.
     */
    public function main()
    {
        if (static::MODE_PRODUCTION === static::getMode()) {
            $this->mainProd();
        } else {
            $this->mainDev();
        }
    }
 
    private function getRequestUri()
    {
        if (!isset($_SERVER)) {
            return "/";
        }
        if (!is_array($_SERVER)) {
            return "/";
        }
        if (!isset($_SERVER['REQUEST_URI'])) {
            return "/";
        }
        return $_SERVER['REQUEST_URI'];
    }
 
    /**
     * Run the development environment.
     */
    private function mainDev()
    {
        (new \Phalcon\Support\Debug())->listen();
 
        $this->_registerServices();
        $this->registerModules($this->modules);
 
        $response = $this->handle($this->getRequestUri());
        $response->send();
    }
 
    /**
     * Run the production environment.
     */
    private function mainProd()
    {
        try {
            $this->registerModules($this->modules);
            $this->_registerServices();
 
            $response = $this->handle($this->getRequestUri());
            $response->send();
        } catch (\Exception $e) {
            $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
            $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
            $msg .= "\n".$e->getTraceAsString();
            $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
            $logger->close();
 
            // remove view contents from buffer
            ob_clean();
 
            $errorCode = 500;
            $errorView = __DIR__.'/../public/errors/error.html';
 
            if (401 === $e->getCode()) {
                // 401 UNAUTHORIZED
                $errorCode = 401;
            } elseif (403 === $e->getCode()) {
                // 403 FORBIDDEN
                $errorCode = 403;
            } elseif (404 === $e->getCode()
                || $e instanceof Phalcon\Mvc\View\Exception
                || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
                // 404 NOT FOUND
                $errorCode = 404;
            }
 
            // Get error view contents. Since we are including the view
            // file here you can use PHP and local vars inside the error view.
            ob_start();
            include_once $errorView;
            $contents = ob_get_contents();
            ob_end_clean();
 
            // send view to header
            $response = $this->getDI()->getShared('response');
            $response->resetHeaders()
                ->setStatusCode($errorCode, null)
                ->setContent($contents)
                ->send()
            ;
 
            /**
             * We try to register in MongoDB the error to be able to
             * track it in backoffice and/or receive emails
             */
            try {
                $system_log_manager = $this->getDI()->get('system_log_manager');
                if ($errorCode == 500) {
                    $system_log_manager->createError([
                        'ip' => $_SERVER['SERVER_ADDR'],
                        'host' => $_SERVER['SERVER_NAME'],
                        'process' => 'php-fpm',
                        'message' => $e->getMessage(),
                        'file' => $e->getFile(),
                        'line' => $e->getLine(),
                    ]);
                } else {
                    $system_log_manager->createWarning([
                        'ip' => $_SERVER['SERVER_ADDR'],
                        'host' => $_SERVER['SERVER_NAME'],
                        'process' => 'php-fpm',
                        'message' => $e->getMessage(),
                        'file' => $e->getFile(),
                        'line' => $e->getLine(),
                    ]);
                }
            } catch (\Exception $e) {
            }
        }
    }
 
    public function slowLog($t)
    {
        $config = $this->getDI()->get('config');
        $irc_manager = $this->getDI()->get('inspircd_irc_manager');
        $server = gethostname() ? gethostname() : 'unknown';
        $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
        if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
            return;
        }
        $msg = "\x02[SLOWLOG] [".str_pad($server, 6, " ", STR_PAD_LEFT)."] [".str_pad(round($t, 1), 5, " ", STR_PAD_LEFT)."s] PATH=\x02 ".$_SERVER['REQUEST_URI']
            ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
        $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
    }
 
    /**
     * Get the current mode.
     *
     * @return string
     */
    public static function getMode()
    {
        return self::$mode;
    }
}
#9Application->mainDev
/srv/ChatHispanoEngine/releases/20260905010411/apps/Application.php (122)
<?php
 
// namespace ChatHispanoEngine;
 
/**
 * Application driver class to initialize Phalcon and
 * other resources.
 */
class Application extends \Phalcon\Mvc\Application
{
    private static $mode = 'dev';
 
    private static $DEFAULT_MODULE = 'api';
 
    public const MODE_PRODUCTION = 'prod';
    public const MODE_STAGING = 'staging';
    public const MODE_TEST = 'test';
    public const MODE_DEVELOPMENT = 'dev';
 
    /**
     * Set application mode and error reporting level.
     */
    public function __construct($defaultModule, $env = 'dev')
    {
        $this->modules = array(
            'core' => array(
                'className' => 'ChatHispanoEngine\Core\Module',
                'path' => __DIR__.'/Core/Module.php',
            ),
            'api' => array(
                'className' => 'ChatHispanoEngine\Api\Module',
                'path' => __DIR__.'/Api/Module.php',
            ),
            'login' => array(
                'className' => 'ChatHispanoEngine\Login\Module',
                'path' => __DIR__.'/Login/Module.php',
            ),
            'oidc' => array(
                'className' => 'ChatHispanoEngine\Oidc\Module',
                'path' => __DIR__.'/Oidc/Module.php',
            ),
            'web' => array(
                'className' => 'ChatHispanoEngine\Web\Module',
                'path' => __DIR__.'/Web/Module.php',
            ),
            'backoffice' => array(
                'className' => 'ChatHispanoEngine\Backoffice\Module',
                'path' => __DIR__.'/Backoffice/Module.php',
            ),
            'movil' => array(
                'className' => 'ChatHispanoEngine\Movil\Module',
                'path' => __DIR__.'/Movil/Module.php',
            ),
            'regwebexternal' => array(
                'className' => 'ChatHispanoEngine\RegWebExternal\Module',
                'path' => __DIR__.'/Regwebexternal/Module.php',
            ),
            'cdn' => array(
                'className' => 'ChatHispanoEngine\Cdn\Module',
                'path' => __DIR__.'/Cdn/Module.php',
            ),
            'shorten' => array(
                'className' => 'ChatHispanoEngine\Shorten\Module',
                'path' => __DIR__.'/Shorten/Module.php',
            ),
        );
 
        static::$DEFAULT_MODULE = $defaultModule;
        self::$mode = $env;
 
        self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
        define('ENVIRONMENT', self::$mode);
 
        if (!defined('PHALCON_MODE')) {
            $mode = getenv('PHALCON_MODE');
            $mode = $mode ? $mode : self::$mode;
            define('PHALCON_MODE', $mode);
        }
 
        switch (self::getMode()) {
            case self::MODE_PRODUCTION:
            case self::MODE_STAGING:
                error_reporting(0);
                break;
            case self::MODE_TEST:
            case self::MODE_DEVELOPMENT:
                ini_set('display_errors', 'On');
                error_reporting(E_ALL);
                break;
        }
    }
 
    /**
     * Register the services here to make them general or register in
     * the ModuleDefinition to make them module-specific.
     */
    protected function _registerServices()
    {
        $defaultModule = self::$DEFAULT_MODULE;
        $modules = $this->modules;
        $config = include __DIR__.'/../config/config.php';
        $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
        $config->merge($env_config);
 
        $di = new \Phalcon\DI\FactoryDefault();
 
        include __DIR__.'/../config/loader.php';
        include __DIR__.'/../config/services.php';
        include __DIR__.'/../config/routing.php';
 
        $this->setDI($di);
    }
 
    /**
     * Run the application.
     */
    public function main()
    {
        if (static::MODE_PRODUCTION === static::getMode()) {
            $this->mainProd();
        } else {
            $this->mainDev();
        }
    }
 
    private function getRequestUri()
    {
        if (!isset($_SERVER)) {
            return "/";
        }
        if (!is_array($_SERVER)) {
            return "/";
        }
        if (!isset($_SERVER['REQUEST_URI'])) {
            return "/";
        }
        return $_SERVER['REQUEST_URI'];
    }
 
    /**
     * Run the development environment.
     */
    private function mainDev()
    {
        (new \Phalcon\Support\Debug())->listen();
 
        $this->_registerServices();
        $this->registerModules($this->modules);
 
        $response = $this->handle($this->getRequestUri());
        $response->send();
    }
 
    /**
     * Run the production environment.
     */
    private function mainProd()
    {
        try {
            $this->registerModules($this->modules);
            $this->_registerServices();
 
            $response = $this->handle($this->getRequestUri());
            $response->send();
        } catch (\Exception $e) {
            $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
            $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
            $msg .= "\n".$e->getTraceAsString();
            $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
            $logger->close();
 
            // remove view contents from buffer
            ob_clean();
 
            $errorCode = 500;
            $errorView = __DIR__.'/../public/errors/error.html';
 
            if (401 === $e->getCode()) {
                // 401 UNAUTHORIZED
                $errorCode = 401;
            } elseif (403 === $e->getCode()) {
                // 403 FORBIDDEN
                $errorCode = 403;
            } elseif (404 === $e->getCode()
                || $e instanceof Phalcon\Mvc\View\Exception
                || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
                // 404 NOT FOUND
                $errorCode = 404;
            }
 
            // Get error view contents. Since we are including the view
            // file here you can use PHP and local vars inside the error view.
            ob_start();
            include_once $errorView;
            $contents = ob_get_contents();
            ob_end_clean();
 
            // send view to header
            $response = $this->getDI()->getShared('response');
            $response->resetHeaders()
                ->setStatusCode($errorCode, null)
                ->setContent($contents)
                ->send()
            ;
 
            /**
             * We try to register in MongoDB the error to be able to
             * track it in backoffice and/or receive emails
             */
            try {
                $system_log_manager = $this->getDI()->get('system_log_manager');
                if ($errorCode == 500) {
                    $system_log_manager->createError([
                        'ip' => $_SERVER['SERVER_ADDR'],
                        'host' => $_SERVER['SERVER_NAME'],
                        'process' => 'php-fpm',
                        'message' => $e->getMessage(),
                        'file' => $e->getFile(),
                        'line' => $e->getLine(),
                    ]);
                } else {
                    $system_log_manager->createWarning([
                        'ip' => $_SERVER['SERVER_ADDR'],
                        'host' => $_SERVER['SERVER_NAME'],
                        'process' => 'php-fpm',
                        'message' => $e->getMessage(),
                        'file' => $e->getFile(),
                        'line' => $e->getLine(),
                    ]);
                }
            } catch (\Exception $e) {
            }
        }
    }
 
    public function slowLog($t)
    {
        $config = $this->getDI()->get('config');
        $irc_manager = $this->getDI()->get('inspircd_irc_manager');
        $server = gethostname() ? gethostname() : 'unknown';
        $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
        if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
            return;
        }
        $msg = "\x02[SLOWLOG] [".str_pad($server, 6, " ", STR_PAD_LEFT)."] [".str_pad(round($t, 1), 5, " ", STR_PAD_LEFT)."s] PATH=\x02 ".$_SERVER['REQUEST_URI']
            ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
        $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
    }
 
    /**
     * Get the current mode.
     *
     * @return string
     */
    public static function getMode()
    {
        return self::$mode;
    }
}
#10Application->main
/srv/ChatHispanoEngine/releases/20260905010411/public/index.php (13)
<?php
 
date_default_timezone_set('Europe/Madrid');
 
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/../apps/Application.php';
 
if (isset($_SERVER['PHALCON_APP'])) {
    $app = new Application($_SERVER['PHALCON_APP']);
} else {
    $app = new Application('web');
}
$app->main();
 
try {
    $t = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
    if ($t > 6) {
        $app->slowLog($t);
    }
} catch (\Exception $e) {
}
KeyValue
_url/historias/caceres/2025-02-15
KeyValue
USERwww-data
HOME/var/www
HTTP_CONNECTIONclose
HTTP_X_FORWARDED_FOR216.73.217.50
HTTP_X_FORWARDED_PROTOhttp
HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT*/*
DISABLE_ANTEVENIO0
DISABLE_MOBUSI0
DISABLE_MASSARIUS0
DISABLE_RELATEDCONTENT0
DISABLE_ADSENSE0
ADS_DEFER0
PHALCON_APPweb
CHATHISPANOENGINE_REVISIONdevelopment
CHATHISPANOENGINE_INSTANCEvirtualbox
SCRIPT_FILENAME/srv/ChatHispanoEngine/releases/20260905010411/public/index.php
PATH_TRANSLATED/srv/ChatHispanoEngine/current/public
PATH_INFO
HTTP_HOSTtest.chathispano.com
REDIRECT_STATUS200
SERVER_NAMEtest.chathispano.com
SERVER_PORT80
SERVER_ADDR10.234.61.101
REMOTE_USER
REMOTE_PORT40812
REMOTE_ADDR10.234.61.152
SERVER_SOFTWAREnginx/1.26.3
GATEWAY_INTERFACECGI/1.1
REQUEST_SCHEMEhttp
SERVER_PROTOCOLHTTP/1.1
DOCUMENT_ROOT/srv/ChatHispanoEngine/releases/20260905010411/public
DOCUMENT_URI/index.php
REQUEST_URI/historias/caceres/2025-02-15
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/historias/caceres/2025-02-15
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1788587156.2727
REQUEST_TIME1788587156
#Path
0/srv/ChatHispanoEngine/releases/20260905010411/public/index.php
1/srv/ChatHispanoEngine/releases/20260905010411/vendor/autoload.php
2/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/autoload_real.php
3/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/platform_check.php
4/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/ClassLoader.php
5/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/include_paths.php
6/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/autoload_static.php
7/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/deprecation-contracts/function.php
8/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-mbstring/bootstrap.php
9/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-mbstring/bootstrap80.php
10/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/amp/lib/functions.php
11/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/amp/lib/Internal/functions.php
12/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php85/bootstrap.php
13/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php85/bootstrap80.php
14/srv/ChatHispanoEngine/releases/20260905010411/vendor/react/promise/src/functions_include.php
15/srv/ChatHispanoEngine/releases/20260905010411/vendor/react/promise/src/functions.php
16/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-ctype/bootstrap.php
17/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-ctype/bootstrap80.php
18/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
19/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
20/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php80/bootstrap.php
21/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php84/bootstrap.php
22/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
23/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php
24/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php86/bootstrap.php
25/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php86/bootstrap80.php
26/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/byte-stream/lib/functions.php
27/srv/ChatHispanoEngine/releases/20260905010411/vendor/illuminate/collections/functions.php
28/srv/ChatHispanoEngine/releases/20260905010411/vendor/illuminate/collections/helpers.php
29/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/string/Resources/functions.php
30/srv/ChatHispanoEngine/releases/20260905010411/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
31/srv/ChatHispanoEngine/releases/20260905010411/vendor/ralouphie/getallheaders/src/getallheaders.php
32/srv/ChatHispanoEngine/releases/20260905010411/vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
33/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/clock/Resources/now.php
34/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-intl-idn/bootstrap.php
35/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/translation/Resources/functions.php
36/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/var-dumper/Resources/functions/dump.php
37/srv/ChatHispanoEngine/releases/20260905010411/vendor/guzzlehttp/guzzle/src/functions_include.php
38/srv/ChatHispanoEngine/releases/20260905010411/vendor/guzzlehttp/guzzle/src/functions.php
39/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/process/lib/functions.php
40/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/serialization/src/functions.php
41/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/sync/src/functions.php
42/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/sync/src/ConcurrentIterator/functions.php
43/srv/ChatHispanoEngine/releases/20260905010411/vendor/illuminate/reflection/helpers.php
44/srv/ChatHispanoEngine/releases/20260905010411/vendor/psy/psysh/src/functions.php
45/srv/ChatHispanoEngine/releases/20260905010411/vendor/daverandom/libdns/src/functions.php
46/srv/ChatHispanoEngine/releases/20260905010411/vendor/illuminate/support/functions.php
47/srv/ChatHispanoEngine/releases/20260905010411/vendor/illuminate/support/helpers.php
48/srv/ChatHispanoEngine/releases/20260905010411/vendor/symfony/polyfill-php81/bootstrap.php
49/srv/ChatHispanoEngine/releases/20260905010411/vendor/amphp/dns/lib/functions.php
50/srv/ChatHispanoEngine/releases/20260905010411/vendor/codeception/codeception/functions.php
51/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/functions.php
52/srv/ChatHispanoEngine/releases/20260905010411/apps/Application.php
53/srv/ChatHispanoEngine/releases/20260905010411/config/config.php
54/srv/ChatHispanoEngine/releases/20260905010411/config/config_staging.php
55/srv/ChatHispanoEngine/releases/20260905010411/config/loader.php
56/srv/ChatHispanoEngine/releases/20260905010411/config/services.php
57/srv/ChatHispanoEngine/releases/20260905010411/config/managers.php
58/srv/ChatHispanoEngine/releases/20260905010411/config/routing.php
59/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/config/routing.php
60/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/Module.php
61/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/config/config.php
62/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/config/services.php
63/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/config/managers.php
64/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/Controllers/StoriesController.php
65/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/Controllers/BaseController.php
66/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Controllers/BaseController.php
67/srv/ChatHispanoEngine/releases/20260905010411/vendor/iwalkalone/translator/src/Translator.php
68/srv/ChatHispanoEngine/releases/20260905010411/apps/Web/Auth/Auth.php
69/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Managers/InspIRCd/GlineManager.php
70/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Models/InspIRCd/Gline.php
71/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Models/BaseCollection.php
72/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Client.php
73/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/InstalledVersions.php
74/srv/ChatHispanoEngine/releases/20260905010411/vendor/composer/installed.php
75/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/BuilderEncoder.php
76/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Codec/EncodeIfSupported.php
77/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Codec/Encoder.php
78/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/PipelineEncoder.php
79/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/RecursiveEncode.php
80/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/VariableEncoder.php
81/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/DictionaryEncoder.php
82/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/FieldPathEncoder.php
83/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/CombinedFieldQueryEncoder.php
84/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/QueryEncoder.php
85/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/OutputWindowEncoder.php
86/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/OperatorEncoder.php
87/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Builder/Encoder/DateTimeEncoder.php
88/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Database.php
89/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Collection.php
90/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Operation/FindOne.php
91/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Operation/Explainable.php
92/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Operation/Find.php
93/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Model/BSONArray.php
94/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Model/BSONDocument.php
95/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Managers/InspIRCd/ChannelManager.php
96/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Models/Channel/Datasheet.php
97/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Managers/VivelavitaManager.php
98/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Managers/InspIRCd/IrcManager.php
99/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Managers/InspIRCd/ChannelLoggerManager.php
100/srv/ChatHispanoEngine/releases/20260905010411/apps/Core/Models/InspIRCd/Channel/Story.php
101/srv/ChatHispanoEngine/releases/20260905010411/vendor/mongodb/mongodb/src/Operation/Count.php
102/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%stories%%index.volt.compiled
103/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%tags.volt.compiled
104/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%ads%%head%%massarius.volt.compiled
105/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%fonts-preload.volt.compiled
106/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%backgrounds.volt.compiled
107/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%fonts.volt.compiled
108/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%wall-underage.volt.compiled
Memory
Usage10485760