Phalcon Debug
v5.20.3
ParseError

Unclosed '{' on line 30

/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%menu.volt.compiled : 42 |PHP 8.4.25
#1 Phalcon\Mvc\View->engineRender ▸
#2 Phalcon\Mvc\View->partial ▸
/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%contact%%index.volt.compiled : 39
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes">
7 <meta name="keywords" content="chat, chats, chatear, chat gratis, red de chat, irc, ligar en chat, chat de ciudades, chat de pueblos, chatear gratis" />
8
9 <?php if ($controller == 'index' && $action == 'index') { ?>
10 <meta name="publisuites-verify-code" content="aHR0cHM6Ly9jaGF0aGlzcGFuby5jb20=" />
11 <meta name="google-site-verification" content="qcxe2DWGaxmp1Db8zhwmwe5-A7BlJicc7R7hfTywm-4" />
12 <meta name="msvalidate.01" content="8599F70ACD2A8328EADD494BDE2BD875" />
13 <meta name="Trafficstars" content="73817">
14 <?php } ?>
15
16 <?php if (isset($amphtml)) { ?>
17 <link rel="amphtml" href="<?= $amphtml ?>">
18 <?php } ?>
19
20 <?= $this->partial('common/tags') ?>
21 <?= $this->partial('common/ads/head/massarius') ?>
22
23 <!-- favicon -->
24 <link rel="shortcut icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
25 <link rel="icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
26
27 <?= $this->partial('common/fonts-preload') ?>
28
29 <link rel="stylesheet" href="https://massariuscdn.com/pubs/chathispano/index.css">
30
31 <?= $this->partial('common/backgrounds') ?>
32 <?= $this->partial('common/fonts') ?>
33 <?= $this->assets->outputInlineCss('headerCss') ?>
34 </head>
35
36 <body class="container-fluid ps-0 pe-0 pb-0">
37 <?= $this->partial('common/wall-underage') ?>
38
39 <?= $this->partial('common/menu') ?>
40 <?= $this->partial('common/be-premium-mobile') ?>
41
42 <?php if (!$hasPremium && $controller != 'error' && $controller != 'paywall' && $controller != 'auth' && $controller != 'sexshop') { ?>
43 <div class="container-xl banner-top pt-2 pb-2">
44 <?= $this->partial('common/ads/banners/top') ?>
45 </div>
46 <?php } ?>
47
48 <div class="container-fluid main-content main-content-home">
49 <div class="container-xl home-header">
50
51 </div>
52 </div>
53 <div class="container-fluid main-content">
54 <?php if ($controller == 'index' && $action == 'index') { ?>
55 <!-- We do not put breadcrumb in home page -->
56 <?php } else { ?>
57 <div class="container-xl">
58 <?= $this->partial('common/breadcrumb') ?>
59 </div>
60 <?php } ?>
61 <div class="container-xl">
62 <div class="row">
63 <div class="col-12 col-sm mt-3">
64 <?= $this->flashSession->output() ?>
65
66<h1 class="mb-4 text-center"><?= $this->translate->translate('Contact') ?></h1>
67<div class="row justify-content-center">
68 <div class="col-12 col-md-10 col-lg-8 col-xl-6">
69 <form method="POST" class="mb-4" enctype="multipart/form-data">
70 <?php $this->partial('common/forms/text', ['text_label' => $this->translate->translate('Name'), 'text_name' => 'name', 'text_type' => 'text', 'text_placeholder' => $this->translate->translate('Type your nick or name'), 'text_visible' => 1, 'text_value' => $form_data['name'], 'text_size' => 'big']); ?>
71 <?php $this->partial('common/forms/text', ['text_label' => $this->translate->translate('Email'), 'text_name' => 'email', 'text_type' => 'email', 'text_placeholder' => $this->translate->translate('Type your email'), 'text_visible' => 1, 'text_value' => $form_data['email'], 'text_size' => 'big']); ?>
72 <?php $this->partial('common/forms/select', ['select_label' => $this->translate->translate('Type'), 'select_name' => 'type', 'select_visible' => 1, 'select_default_name' => $this->translate->translate('Choose type'), 'select_options' => [['value' => 1, 'name' => $this->translate->translate('Submit a complaint')], ['value' => 2, 'name' => $this->translate->translate('Request information')], ['value' => 3, 'name' => $this->translate->translate('Make a suggestion')], ['value' => 4, 'name' => $this->translate->translate('Commercial')]], 'select_value' => $form_data['type'], 'select_size' => 'big']); ?>
73 <?php $this->partial('common/forms/select', ['select_label' => $this->translate->translate('Type of complaint'), 'select_name' => 'subtype', 'select_visible' => ($form_data['type'] == 1 ? 1 : 0), 'select_default_name' => $this->translate->translate('Choose complaint type'), 'select_options' => [['value' => 1, 'name' => $this->translate->translate('Connection problems')], ['value' => 2, 'name' => $this->translate->translate('Channel conflict')], ['value' => 3, 'name' => $this->translate->translate('Nick conflict')], ['value' => 4, 'name' => $this->translate->translate('Channel register')], ['value' => 5, 'name' => $this->translate->translate('Nick register')], ['value' => 7, 'name' => $this->translate->translate('Report story')], ['value' => 6, 'name' => $this->translate->translate('Problem with an operator / Other')]], 'select_value' => $form_data['subtype'], 'select_size' => 'big']); ?>
74 <?php $this->partial('common/forms/textarea', ['textarea_label' => $this->translate->translate('Message'), 'textarea_name' => 'message', 'textarea_rows' => 12, 'textarea_value' => $form_data['message'], 'textarea_visible' => 1]); ?>
75 <?php $this->partial('common/forms/file', ['file_label' => $this->translate->translate('Attach images'), 'file_name' => 'attachments[]', 'file_placeholder' => $this->translate->translate('Select images'), 'file_multiple' => 1, 'file_visible' => 1]); ?>
76 <?php $this->partial('common/forms/captcha', ['captcha_label' => $this->translate->translate('Resolve captcha')]); ?>
77 <?php $this->partial('common/forms/submit', ['submit_cancel_text' => $this->translate->translate('Cancel'), 'submit_text' => $this->translate->translate('Send'), 'submit_buttons_block' => 1, 'submit_buttons_size' => 'big', 'submit_with_cancel' => 0]); ?>
78 </form>
79 </div>
80</div>
81
82 <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop' && $section_gay != 1 && $section_lesbianas != 1 && $section_sex != 1) { ?>
83 <?php if ($ads_onnetwork_enabled) { ?>
84 <div class="card bg-white mb-4">
85 <div class="card-body">
86 <?= $this->partial('common/ads/video/onnetwork') ?>
87 </div>
88 </div>
89 <?php } ?>
90 <?php } ?>
91 </div>
92 <div class="col-12 col-sm-auto mt-3 sidebar sticky-sm-top align-self-start">
93 <?php if ($controller == 'index' && $action == 'index') { ?>
94 <!-- We do not put network realtime in home page -->
95 <?php } else { ?>
96 <?= $this->partial('common/panel-network-realtime') ?>
97 <?php } ?>
98 <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop') { ?>
99 <div class="card mb-3">
100 <div class="card-body">
101 <?= $this->partial('common/ads/banners/right') ?>
102 </div>
103 </div>
104 <?php } ?>
105 <?php if ($controller == 'index' && $action == 'index' && !$hasPremium) { ?>
106 <div class="card text-bg-light mb-3 overflow-hidden">
107 <a href="/suscripciones/premium">
108 <img alt="Chat Hispano PREMIUM" class="card-img-top"
109 <?php if ($paywall_promo_enabled) { ?>
110 src="/assets/web/images/<?= $paywall_promo_image ?>" />
111 <?php } else { ?>
112 src="/assets/web/images/hispano-large-premium.png" />
113 <?php } ?>
114 </a>
115 <div class="card-body">
116 <div class="d-grid gap-2">
117 <a href="/suscripciones/premium" class="btn btn-primary" target="_blank">
118 <?= $this->translate->translate('Try it free') ?>
119 </a>
120 </div>
121 </div>
122</div>
123
124 <?php } ?>
125 </div>
126 </div>
127 <?php if ($controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'profile' && $controller != 'sexshop') { ?>
128 <div class="row">
129 </div>
130 <?php } ?>
131 </div>
132 </div>
133
134 <?= $this->partial('common/footer') ?>
135
136 <!-- main JavaScript -->
137 <?= $this->assets->outputInlineJs('mainJs') ?>
138 <?php if ($enable_moment) { ?>
139 <?= $this->assets->outputInlineJs('momentJs') ?>
140 <?php } ?>
141 <?php if ($enable_charts) { ?>
142 <?= $this->assets->outputInlineJs('chartJs') ?>
143 <?php } ?>
144 <?php if ($enable_editor) { ?>
145 <?= $this->assets->outputJs('ckeditorJs') ?>
146 <?php } ?>
147 <?= $this->assets->outputInlineJs('pluginJs') ?>
148
149 <script type="text/javascript">
150 function load_massarius() {
151 s = document.createElement('script');
152 s.type = "text/javascript";
153 s.src = "https://massariuscdn.com/pubs/chathispano/chathispano_hb_setup.js";
154 document.body.appendChild(s);
155 }
156 </script>
157
158 <?= $this->partial('common/js-underage') ?>
159
160 <script type="text/javascript">
161 $(document).ready(function() {
162 /**********
163 * PLUGIN *
164 **********/
165 var chathispano = new $.chathispano({
166 'baseUri': "<?= $baseUri ?>",
167 'locale': "<?= $locale ?>",
168 'rev': "<?= $revision ?>",
169 'tmpl_dir': '/assets/web/js/templates/',
170 'storage_prefix': 'ChatHispanoWeb-',
171 'language_file': 'web',
172 });
173 window.chathispano = chathispano;
174 document.chathispano = chathispano;
175 chathispano.init();
176 chathispano.ready();
177 });
178 </script>
179
180
181<script type="text/javascript">
182 $(document).ready(function () {
183 $('select[name=type]').on('change', function () {
184 if ($(this).val() == 1) {
185 $('div#fg-subtype').removeClass('d-none');
186 } else {
187 $('div#fg-subtype').addClass('d-none');
188 }
189 })
190 });
191</script>
192
193
194 <?php if (!$hasPremium && ($section_gay == 1 || $section_sex == 1)) { ?>
195 <?= $this->partial('common/ads/trafficstars/avideo') ?>
196 <?php } ?>
197
198 <script src="https://cdn.jsdelivr.net/npm/cap-widget@latest"></script>
199 </body>
200</html>
#5 Phalcon\Mvc\View->engineRender ▸
#6 Phalcon\Mvc\View->processRender ▸
#7 Phalcon\Mvc\View->render ▸
#8 Phalcon\Mvc\Application->handleapp ▸
/srv/ChatHispanoEngine/releases/20260905010411/apps/Application.php : 150
1<?php
2
3// namespace ChatHispanoEngine;
4
5/**
6 * Application driver class to initialize Phalcon and
7 * other resources.
8 */
9class Application extends \Phalcon\Mvc\Application
10{
11 private static $mode = 'dev';
12
13 private static $DEFAULT_MODULE = 'api';
14
15 public const MODE_PRODUCTION = 'prod';
16 public const MODE_STAGING = 'staging';
17 public const MODE_TEST = 'test';
18 public const MODE_DEVELOPMENT = 'dev';
19
20 /**
21 * Set application mode and error reporting level.
22 */
23 public function __construct($defaultModule, $env = 'dev')
24 {
25 $this->modules = array(
26 'core' => array(
27 'className' => 'ChatHispanoEngine\Core\Module',
28 'path' => __DIR__.'/Core/Module.php',
29 ),
30 'api' => array(
31 'className' => 'ChatHispanoEngine\Api\Module',
32 'path' => __DIR__.'/Api/Module.php',
33 ),
34 'login' => array(
35 'className' => 'ChatHispanoEngine\Login\Module',
36 'path' => __DIR__.'/Login/Module.php',
37 ),
38 'oidc' => array(
39 'className' => 'ChatHispanoEngine\Oidc\Module',
40 'path' => __DIR__.'/Oidc/Module.php',
41 ),
42 'web' => array(
43 'className' => 'ChatHispanoEngine\Web\Module',
44 'path' => __DIR__.'/Web/Module.php',
45 ),
46 'backoffice' => array(
47 'className' => 'ChatHispanoEngine\Backoffice\Module',
48 'path' => __DIR__.'/Backoffice/Module.php',
49 ),
50 'movil' => array(
51 'className' => 'ChatHispanoEngine\Movil\Module',
52 'path' => __DIR__.'/Movil/Module.php',
53 ),
54 'regwebexternal' => array(
55 'className' => 'ChatHispanoEngine\RegWebExternal\Module',
56 'path' => __DIR__.'/Regwebexternal/Module.php',
57 ),
58 'cdn' => array(
59 'className' => 'ChatHispanoEngine\Cdn\Module',
60 'path' => __DIR__.'/Cdn/Module.php',
61 ),
62 'shorten' => array(
63 'className' => 'ChatHispanoEngine\Shorten\Module',
64 'path' => __DIR__.'/Shorten/Module.php',
65 ),
66 );
67
68 static::$DEFAULT_MODULE = $defaultModule;
69 self::$mode = $env;
70
71 self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
72 define('ENVIRONMENT', self::$mode);
73
74 if (!defined('PHALCON_MODE')) {
75 $mode = getenv('PHALCON_MODE');
76 $mode = $mode ? $mode : self::$mode;
77 define('PHALCON_MODE', $mode);
78 }
79
80 switch (self::getMode()) {
81 case self::MODE_PRODUCTION:
82 case self::MODE_STAGING:
83 error_reporting(0);
84 break;
85 case self::MODE_TEST:
86 case self::MODE_DEVELOPMENT:
87 ini_set('display_errors', 'On');
88 error_reporting(E_ALL);
89 break;
90 }
91 }
92
93 /**
94 * Register the services here to make them general or register in
95 * the ModuleDefinition to make them module-specific.
96 */
97 protected function _registerServices()
98 {
99 $defaultModule = self::$DEFAULT_MODULE;
100 $modules = $this->modules;
101 $config = include __DIR__.'/../config/config.php';
102 $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
103 $config->merge($env_config);
104
105 $di = new \Phalcon\DI\FactoryDefault();
106
107 include __DIR__.'/../config/loader.php';
108 include __DIR__.'/../config/services.php';
109 include __DIR__.'/../config/routing.php';
110
111 $this->setDI($di);
112 }
113
114 /**
115 * Run the application.
116 */
117 public function main()
118 {
119 if (static::MODE_PRODUCTION === static::getMode()) {
120 $this->mainProd();
121 } else {
122 $this->mainDev();
123 }
124 }
125
126 private function getRequestUri()
127 {
128 if (!isset($_SERVER)) {
129 return "/";
130 }
131 if (!is_array($_SERVER)) {
132 return "/";
133 }
134 if (!isset($_SERVER['REQUEST_URI'])) {
135 return "/";
136 }
137 return $_SERVER['REQUEST_URI'];
138 }
139
140 /**
141 * Run the development environment.
142 */
143 private function mainDev()
144 {
145 (new \Phalcon\Support\Debug())->listen();
146
147 $this->_registerServices();
148 $this->registerModules($this->modules);
149
150 $response = $this->handle($this->getRequestUri());
151 $response->send();
152 }
153
154 /**
155 * Run the production environment.
156 */
157 private function mainProd()
158 {
159 try {
160 $this->registerModules($this->modules);
161 $this->_registerServices();
162
163 $response = $this->handle($this->getRequestUri());
164 $response->send();
165 } catch (\Exception $e) {
166 $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
167 $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
168 $msg .= "\n".$e->getTraceAsString();
169 $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
170 $logger->close();
171
172 // remove view contents from buffer
173 ob_clean();
174
175 $errorCode = 500;
176 $errorView = __DIR__.'/../public/errors/error.html';
177
178 if (401 === $e->getCode()) {
179 // 401 UNAUTHORIZED
180 $errorCode = 401;
181 } elseif (403 === $e->getCode()) {
182 // 403 FORBIDDEN
183 $errorCode = 403;
184 } elseif (404 === $e->getCode()
185 || $e instanceof Phalcon\Mvc\View\Exception
186 || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
187 // 404 NOT FOUND
188 $errorCode = 404;
189 }
190
191 // Get error view contents. Since we are including the view
192 // file here you can use PHP and local vars inside the error view.
193 ob_start();
194 include_once $errorView;
195 $contents = ob_get_contents();
196 ob_end_clean();
197
198 // send view to header
199 $response = $this->getDI()->getShared('response');
200 $response->resetHeaders()
201 ->setStatusCode($errorCode, null)
202 ->setContent($contents)
203 ->send()
204 ;
205
206 /**
207 * We try to register in MongoDB the error to be able to
208 * track it in backoffice and/or receive emails
209 */
210 try {
211 $system_log_manager = $this->getDI()->get('system_log_manager');
212 if ($errorCode == 500) {
213 $system_log_manager->createError([
214 'ip' => $_SERVER['SERVER_ADDR'],
215 'host' => $_SERVER['SERVER_NAME'],
216 'process' => 'php-fpm',
217 'message' => $e->getMessage(),
218 'file' => $e->getFile(),
219 'line' => $e->getLine(),
220 ]);
221 } else {
222 $system_log_manager->createWarning([
223 'ip' => $_SERVER['SERVER_ADDR'],
224 'host' => $_SERVER['SERVER_NAME'],
225 'process' => 'php-fpm',
226 'message' => $e->getMessage(),
227 'file' => $e->getFile(),
228 'line' => $e->getLine(),
229 ]);
230 }
231 } catch (\Exception $e) {
232 }
233 }
234 }
235
236 public function slowLog($t)
237 {
238 $config = $this->getDI()->get('config');
239 $irc_manager = $this->getDI()->get('inspircd_irc_manager');
240 $server = gethostname() ? gethostname() : 'unknown';
241 $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
242 if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
243 return;
244 }
245 $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']
246 ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
247 $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
248 }
249
250 /**
251 * Get the current mode.
252 *
253 * @return string
254 */
255 public static function getMode()
256 {
257 return self::$mode;
258 }
259}
#9 Application->mainDevapp ▸
/srv/ChatHispanoEngine/releases/20260905010411/apps/Application.php : 122
1<?php
2
3// namespace ChatHispanoEngine;
4
5/**
6 * Application driver class to initialize Phalcon and
7 * other resources.
8 */
9class Application extends \Phalcon\Mvc\Application
10{
11 private static $mode = 'dev';
12
13 private static $DEFAULT_MODULE = 'api';
14
15 public const MODE_PRODUCTION = 'prod';
16 public const MODE_STAGING = 'staging';
17 public const MODE_TEST = 'test';
18 public const MODE_DEVELOPMENT = 'dev';
19
20 /**
21 * Set application mode and error reporting level.
22 */
23 public function __construct($defaultModule, $env = 'dev')
24 {
25 $this->modules = array(
26 'core' => array(
27 'className' => 'ChatHispanoEngine\Core\Module',
28 'path' => __DIR__.'/Core/Module.php',
29 ),
30 'api' => array(
31 'className' => 'ChatHispanoEngine\Api\Module',
32 'path' => __DIR__.'/Api/Module.php',
33 ),
34 'login' => array(
35 'className' => 'ChatHispanoEngine\Login\Module',
36 'path' => __DIR__.'/Login/Module.php',
37 ),
38 'oidc' => array(
39 'className' => 'ChatHispanoEngine\Oidc\Module',
40 'path' => __DIR__.'/Oidc/Module.php',
41 ),
42 'web' => array(
43 'className' => 'ChatHispanoEngine\Web\Module',
44 'path' => __DIR__.'/Web/Module.php',
45 ),
46 'backoffice' => array(
47 'className' => 'ChatHispanoEngine\Backoffice\Module',
48 'path' => __DIR__.'/Backoffice/Module.php',
49 ),
50 'movil' => array(
51 'className' => 'ChatHispanoEngine\Movil\Module',
52 'path' => __DIR__.'/Movil/Module.php',
53 ),
54 'regwebexternal' => array(
55 'className' => 'ChatHispanoEngine\RegWebExternal\Module',
56 'path' => __DIR__.'/Regwebexternal/Module.php',
57 ),
58 'cdn' => array(
59 'className' => 'ChatHispanoEngine\Cdn\Module',
60 'path' => __DIR__.'/Cdn/Module.php',
61 ),
62 'shorten' => array(
63 'className' => 'ChatHispanoEngine\Shorten\Module',
64 'path' => __DIR__.'/Shorten/Module.php',
65 ),
66 );
67
68 static::$DEFAULT_MODULE = $defaultModule;
69 self::$mode = $env;
70
71 self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
72 define('ENVIRONMENT', self::$mode);
73
74 if (!defined('PHALCON_MODE')) {
75 $mode = getenv('PHALCON_MODE');
76 $mode = $mode ? $mode : self::$mode;
77 define('PHALCON_MODE', $mode);
78 }
79
80 switch (self::getMode()) {
81 case self::MODE_PRODUCTION:
82 case self::MODE_STAGING:
83 error_reporting(0);
84 break;
85 case self::MODE_TEST:
86 case self::MODE_DEVELOPMENT:
87 ini_set('display_errors', 'On');
88 error_reporting(E_ALL);
89 break;
90 }
91 }
92
93 /**
94 * Register the services here to make them general or register in
95 * the ModuleDefinition to make them module-specific.
96 */
97 protected function _registerServices()
98 {
99 $defaultModule = self::$DEFAULT_MODULE;
100 $modules = $this->modules;
101 $config = include __DIR__.'/../config/config.php';
102 $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
103 $config->merge($env_config);
104
105 $di = new \Phalcon\DI\FactoryDefault();
106
107 include __DIR__.'/../config/loader.php';
108 include __DIR__.'/../config/services.php';
109 include __DIR__.'/../config/routing.php';
110
111 $this->setDI($di);
112 }
113
114 /**
115 * Run the application.
116 */
117 public function main()
118 {
119 if (static::MODE_PRODUCTION === static::getMode()) {
120 $this->mainProd();
121 } else {
122 $this->mainDev();
123 }
124 }
125
126 private function getRequestUri()
127 {
128 if (!isset($_SERVER)) {
129 return "/";
130 }
131 if (!is_array($_SERVER)) {
132 return "/";
133 }
134 if (!isset($_SERVER['REQUEST_URI'])) {
135 return "/";
136 }
137 return $_SERVER['REQUEST_URI'];
138 }
139
140 /**
141 * Run the development environment.
142 */
143 private function mainDev()
144 {
145 (new \Phalcon\Support\Debug())->listen();
146
147 $this->_registerServices();
148 $this->registerModules($this->modules);
149
150 $response = $this->handle($this->getRequestUri());
151 $response->send();
152 }
153
154 /**
155 * Run the production environment.
156 */
157 private function mainProd()
158 {
159 try {
160 $this->registerModules($this->modules);
161 $this->_registerServices();
162
163 $response = $this->handle($this->getRequestUri());
164 $response->send();
165 } catch (\Exception $e) {
166 $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
167 $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
168 $msg .= "\n".$e->getTraceAsString();
169 $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
170 $logger->close();
171
172 // remove view contents from buffer
173 ob_clean();
174
175 $errorCode = 500;
176 $errorView = __DIR__.'/../public/errors/error.html';
177
178 if (401 === $e->getCode()) {
179 // 401 UNAUTHORIZED
180 $errorCode = 401;
181 } elseif (403 === $e->getCode()) {
182 // 403 FORBIDDEN
183 $errorCode = 403;
184 } elseif (404 === $e->getCode()
185 || $e instanceof Phalcon\Mvc\View\Exception
186 || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
187 // 404 NOT FOUND
188 $errorCode = 404;
189 }
190
191 // Get error view contents. Since we are including the view
192 // file here you can use PHP and local vars inside the error view.
193 ob_start();
194 include_once $errorView;
195 $contents = ob_get_contents();
196 ob_end_clean();
197
198 // send view to header
199 $response = $this->getDI()->getShared('response');
200 $response->resetHeaders()
201 ->setStatusCode($errorCode, null)
202 ->setContent($contents)
203 ->send()
204 ;
205
206 /**
207 * We try to register in MongoDB the error to be able to
208 * track it in backoffice and/or receive emails
209 */
210 try {
211 $system_log_manager = $this->getDI()->get('system_log_manager');
212 if ($errorCode == 500) {
213 $system_log_manager->createError([
214 'ip' => $_SERVER['SERVER_ADDR'],
215 'host' => $_SERVER['SERVER_NAME'],
216 'process' => 'php-fpm',
217 'message' => $e->getMessage(),
218 'file' => $e->getFile(),
219 'line' => $e->getLine(),
220 ]);
221 } else {
222 $system_log_manager->createWarning([
223 'ip' => $_SERVER['SERVER_ADDR'],
224 'host' => $_SERVER['SERVER_NAME'],
225 'process' => 'php-fpm',
226 'message' => $e->getMessage(),
227 'file' => $e->getFile(),
228 'line' => $e->getLine(),
229 ]);
230 }
231 } catch (\Exception $e) {
232 }
233 }
234 }
235
236 public function slowLog($t)
237 {
238 $config = $this->getDI()->get('config');
239 $irc_manager = $this->getDI()->get('inspircd_irc_manager');
240 $server = gethostname() ? gethostname() : 'unknown';
241 $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
242 if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
243 return;
244 }
245 $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']
246 ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
247 $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
248 }
249
250 /**
251 * Get the current mode.
252 *
253 * @return string
254 */
255 public static function getMode()
256 {
257 return self::$mode;
258 }
259}
#10 Application->mainapp ▸
/srv/ChatHispanoEngine/releases/20260905010411/public/index.php : 13
1<?php
2
3date_default_timezone_set('Europe/Madrid');
4
5require_once __DIR__.'/../vendor/autoload.php';
6require_once __DIR__.'/../apps/Application.php';
7
8if (isset($_SERVER['PHALCON_APP'])) {
9 $app = new Application($_SERVER['PHALCON_APP']);
10} else {
11 $app = new Application('web');
12}
13$app->main();
14
15try {
16 $t = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
17 if ($t > 6) {
18 $app->slowLog($t);
19 }
20} catch (\Exception $e) {
21}
KeyValue
_url/contactar
type1
subtype7
messageID 68be1f7c1f4ea5f0ea00f9a6\nChannel tenerife\nDate 2025-09-07 23:42:40\n\n
KeyValue
USERwww-data
HOME/var/www
HTTP_CONNECTIONclose
HTTP_X_FORWARDED_FOR18.97.9.172
HTTP_X_FORWARDED_PROTOhttp
HTTP_ACCEPT_ENCODINGzstd, br, gzip
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
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_PORT47938
REMOTE_ADDR10.234.61.151
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/contactar?type=1&subtype=7&message=ID+68be1f7c1f4ea5f0ea00f9a6%0AChannel+tenerife%0ADate+2025-09-07+23:42:40%0A%0A
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRING_url=/contactar&type=1&subtype=7&message=ID+68be1f7c1f4ea5f0ea00f9a6%0AChannel+tenerife%0ADate+2025-09-07+23:42:40%0A%0A
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1791641138.747
REQUEST_TIME1791641138
#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/ContactController.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/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%contact%%index.volt.compiled
100/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%tags.volt.compiled
101/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%ads%%head%%massarius.volt.compiled
102/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%fonts-preload.volt.compiled
103/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%backgrounds.volt.compiled
104/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%fonts.volt.compiled
105/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%20260905010411%%apps%%web%%views%%common%%wall-underage.volt.compiled
Memory usage (real)
14.0 MB
Peak usage
14.0 MB