Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 33 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 34 Warning: session_name(): Cannot change session name when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 36 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/c1461795/public_html/app/src/Core/SecureSessionHandler.php on line 43
{% set social = { titulo: lang(post, "titulo"), des: lang(post, "bajada"), imagen: post.img } %} {% extends "/base/base-front.twig" %} {% block contenido %} <main> <article class="blogInterna" id="articulosec"> {% if post.visible %} <h1>Blog</h1> {% else %} <h1>{{ post.titulo }}</h1>
if ( !$this->isValid()) { $this->forget(); } } private function setup() { ini_set('session.use_cookies', 1); ini_set('session.use_only_cookies', 1);
if ( !$this->isValid()) { $this->forget(); } } private function setup() { ini_set('session.use_cookies', 1); ini_set('session.use_only_cookies', 1);
'lifetime' => 0, 'path' => ini_get('session.cookie_path'), 'domain' => ini_get('session.cookie_domain'), 'secure' => isset($_SERVER['HTTPS']), 'httponly' => true ]; $this->setup(); $this->start();
// Flash messages $container['flash'] = function ($c) { return new \Slim\Flash\Messages; }; //session front $container['sessionFront'] = function($c){ return new SecureSessionHandler("front"); };
} if (isset($this->factories[$this->values[$id]])) { return $this->values[$id]($this); } $raw = $this->values[$id]; $val = $this->values[$id] = $raw($this); $this->raw[$id] = $raw;
*/ public function get($id) { if (!$this->offsetExists($id)) { throw new ContainerValueNotFoundException(sprintf('Identifier "%s" is not defined.', $id)); } try { return $this->offsetGet($id); } catch (InvalidArgumentException $exception) { if ($this->exceptionThrownByContainer($exception)) {
* @throws SlimContainerException Thrown when an exception is not * an instance of ContainerExceptionInterface * @throws ContainerValueNotFoundException No entry was found for this identifier. * @throws ContainerExceptionInterface Error while retrieving the entry. */ public function __get($name) { return $this->get($name); }
new \Twig_SimpleFilter('small_image', array($this, 'smallImage')), new \Twig_SimpleFilter('preg_replace', array($this, 'pregReplace')) ]; } public function lang($obj, $attr){ $lang = ""; if($this->container->sessionFront->get('lang') != "es"){ $lang = "_".$this->container->sessionFront->get('lang'); }
// line 2 return "/base/base-front.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 1 $context["social"] = ["titulo" => $this->env->getExtension('App\Core\TwigSettings')->lang(($context["post"] ?? null), "titulo"), "des" => $this->env->getExtension('App\Core\TwigSettings')->lang(($context["post"] ?? null), "bajada"), "imagen" => $this->getAttribute(($context["post"] ?? null), "img", [])]; // line 2 $this->parent = $this->loadTemplate("/base/base-front.twig", "blogInterna.twig", 2);
return ob_get_clean(); } protected function displayWithErrorHandling(array $context, array $blocks = []) { try { $this->doDisplay($context, $blocks); } catch (Error $e) { if (!$e->getSourceContext()) {
public function getBlocks() { return $this->blocks; } public function display(array $context, array $blocks = []) { $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); }
$level = ob_get_level(); if ($this->env->isDebug()) { ob_start(); } else { ob_start(function () { return ''; }); } try { $this->display($context); } catch (\Exception $e) { while (ob_get_level() > $level) {
* * @return string */ public function fetch($template, $data = []) { $data = array_merge($this->defaultVariables, $data); return $this->environment->loadTemplate($template)->render($data); }
* @param ResponseInterface $response * @param string $template Template pathname relative to templates directory * @param array $data Associative array of template variables * @return ResponseInterface */ public function render(ResponseInterface $response, $template, $data = []) { $response->getBody()->write($this->fetch($template, $data)); return $response;
public static function frontRender($that, ServerRequestInterface $request, ResponseInterface $response, $template, $variables){ $variables["currentUrl"] = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $variables["rootUrl"] = "http://$_SERVER[HTTP_HOST]"; $variables["currentPath"] = $request->getUri()->getPath(); $variables["commonpath"] = getenv("COMMON_PATH"); $variables["publicpath"] = getenv("PUBLIC_PATH"); $variables["uploadpath"] = getenv("UPLOAD_PATH");; return $that->view->render($response, $template, $variables); } }
'title' => $post->titulo, 'persons' => $persons, 'posts' => $posts, 'estudio' => $estudio, 'solutions' => $solutions, 'post' => $post, ]; return TwigRenderer::frontRender($this, $request, $response, 'blogInterna.twig', $vars); });
ResponseInterface $response, array $routeArguments ) { foreach ($routeArguments as $k => $v) { $request = $request->withAttribute($k, $v); } return call_user_func($callable, $request, $response, $routeArguments); } }
public function __invoke(ServerRequestInterface $request, ResponseInterface $response) { $this->callable = $this->resolveCallable($this->callable); /** @var InvocationStrategyInterface $handler */ $handler = isset($this->container) ? $this->container->get('foundHandler') : new RequestResponse(); $newResponse = $handler($this->callable, $request, $response, $this->arguments); if ($newResponse instanceof ResponseInterface) {
{ if (is_null($this->tip)) { $this->seedMiddlewareStack(); } /** @var callable $start */ $start = $this->tip; $this->middlewareLock = true; $response = $start($request, $response); $this->middlewareLock = false; return $response;
*/ public function run(ServerRequestInterface $request, ResponseInterface $response) { // Finalise route now that we are about to run it $this->finalize(); // Traverse middleware stack and fetch updated response return $this->callMiddlewareStack($request, $response); }
if (null === $routeInfo || ($routeInfo['request'] !== [$request->getMethod(), (string) $request->getUri()])) { $request = $this->dispatchRouterAndPrepareRoute($request, $router); $routeInfo = $request->getAttribute('routeInfo'); } if ($routeInfo[0] === Dispatcher::FOUND) { $route = $router->lookupRoute($routeInfo[1]); return $route->run($request, $response); } elseif ($routeInfo[0] === Dispatcher::METHOD_NOT_ALLOWED) { if (!$this->container->has('notAllowedHandler')) {
$container['errorHandler'] = function() use ($whoops) { return new WhoopsErrorHandler($whoops); }; $container['whoops'] = $whoops; } return $app($request, $response); }
$callable = $this->resolveCallable($this->callable); if ($callable instanceof Closure) { $callable = $callable->bindTo($this->container); } $args = func_get_args(); return call_user_func_array($callable, $args); } }
$this->tip = function ( ServerRequestInterface $request, ResponseInterface $response ) use ( $callable, $next ) { $result = call_user_func($callable, $request, $response, $next); if ($result instanceof ResponseInterface === false) { throw new UnexpectedValueException(
if ($path != '/' && substr($path, -1) == '/') { // permanently redirect paths with a trailing slash // to their non-trailing counterpart $uri = $uri->withPath(substr($path, 0, -1)); return $response->withRedirect((string)$uri, 301); } return $next($request, $response); });
$callable = $this->resolveCallable($this->callable); if ($callable instanceof Closure) { $callable = $callable->bindTo($this->container); } $args = func_get_args(); return call_user_func_array($callable, $args); } }
$this->tip = function ( ServerRequestInterface $request, ResponseInterface $response ) use ( $callable, $next ) { $result = call_user_func($callable, $request, $response, $next); if ($result instanceof ResponseInterface === false) { throw new UnexpectedValueException(
{ if (is_null($this->tip)) { $this->seedMiddlewareStack(); } /** @var callable $start */ $start = $this->tip; $this->middlewareLock = true; $response = $start($request, $response); $this->middlewareLock = false; return $response;
if ($this->container->get('settings')['determineRouteBeforeAppMiddleware'] === true) { // Dispatch router (note: you won't be able to alter routes after this) $request = $this->dispatchRouterAndPrepareRoute($request, $router); } // Traverse middleware stack try { $response = $this->callMiddlewareStack($request, $response); } catch (Exception $e) { $response = $this->handleException($e, $request, $response);
*/ public function run($silent = false) { $response = $this->container->get('response'); try { ob_start(); $response = $this->process($this->container->get('request'), $response); } catch (InvalidMethodException $e) { $response = $this->processInvalidMethod($e->getRequest(), $response);
// Register middleware require __DIR__ . '/../app/middleware.php'; // Register routes require __DIR__ . '/../app/routes.php'; // Run app $app->run();
Key | Value |
Application Class | Slim\App |
Script Name | /public/index.php |
Request URI | <none> |
Key | Value |
Accept Charset | <none> |
Content Charset | <none> |
Path | /blog/contenido-organico-video |
Query String | <none> |
HTTP Method | GET |
Base URL | https://www.navemedia.com.ar/blog/contenido-organico-video |
Scheme | https |
Port | |
Host | www.navemedia.com.ar |
Key | Value |
PHPSESSID | 380dc48d4934d93fe2512e24ceda8ba3 |
Key | Value |
_last_activity | 1759004209 |
_fingerprint | c4fb39a98c2115e9d2a6957a47b17398 |
Key | Value |
USER | c1461795 |
HOME | /home/c1461795 |
SCRIPT_NAME | /public/index.php |
REQUEST_URI | /blog/contenido-organico-video |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/2.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /blog/contenido-organico-video |
REMOTE_PORT | 59043 |
SCRIPT_FILENAME | /home/c1461795/public_html/public/index.php |
SERVER_ADMIN | webmaster@navemedia.com.ar |
CONTEXT_DOCUMENT_ROOT | /home/c1461795/public_html |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /home/c1461795/public_html |
REMOTE_ADDR | 216.73.216.37 |
SERVER_PORT | 443 |
SERVER_ADDR | 200.58.111.20 |
SERVER_NAME | www.navemedia.com.ar |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
LD_LIBRARY_PATH | /opt/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.navemedia.com.ar |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_COOKIE | PHPSESSID=380dc48d4934d93fe2512e24ceda8ba3 |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
H2_STREAM_TAG | 28427-18353-13 |
H2_STREAM_ID | 13 |
H2_PUSHED_ON | |
H2_PUSHED | |
H2_PUSH | off |
H2PUSH | off |
HTTP2 | on |
SSL_TLS_SNI | www.navemedia.com.ar |
HTTPS | on |
SCRIPT_URI | https://www.navemedia.com.ar/blog/contenido-organico-video |
SCRIPT_URL | /blog/contenido-organico-video |
MM_COUNTRY_CODE | US |
MM_CONTINENT_CODE | NA |
MMDB_INFO | result found |
MMDB_ADDR | 216.73.216.37 |
UNIQUE_ID | aNhGMbDIWxoGclz8slfhlQAAjAM |
REDIRECT_STATUS | 200 |
REDIRECT_H2_STREAM_TAG | 28427-18353-13 |
REDIRECT_H2_STREAM_ID | 13 |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSH | off |
REDIRECT_H2PUSH | off |
REDIRECT_HTTP2 | on |
REDIRECT_SSL_TLS_SNI | www.navemedia.com.ar |
REDIRECT_HTTPS | on |
REDIRECT_SCRIPT_URI | https://www.navemedia.com.ar/blog/contenido-organico-video |
REDIRECT_SCRIPT_URL | /blog/contenido-organico-video |
REDIRECT_MM_COUNTRY_CODE | US |
REDIRECT_MM_CONTINENT_CODE | NA |
REDIRECT_MMDB_INFO | result found |
REDIRECT_MMDB_ADDR | 216.73.216.37 |
REDIRECT_UNIQUE_ID | aNhGMbDIWxoGclz8slfhlQAAjAM |
FCGI_ROLE | RESPONDER |
PHP_SELF | /public/index.php |
REQUEST_TIME_FLOAT | 1759004209.633 |
REQUEST_TIME | 1759004209 |
argv | Array ( ) |
argc | 0 |
BASE_URL | navemedia.com.ar |
WEB_TITLE | Navemedia |
DB_HOST | localhost |
DB_NAME | c1461795_web |
DB_USER | c1461795_nave |
DB_PASS | Navedb2024 |
GMAPS_KEY | |
GCAPTHCA_KEY | 6LeljogpAAAAAA7Wj9P818q3ErDoOWhF418i-XS8 |
GCAPTCHA_SECRET | 6LeljogpAAAAABPoYYwi0puruBplIcH391m-KpSs |
EMAIL_SMTP | stage.navemedia.net |
EMAIL_SMTP_PORT | 587 |
EMAIL_USR | coso |
EMAIL_PASS | |
EMAIL_FROM | info@navemedia.com.ar |
EMAIL_TO | info@navemedia.com.ar |
EMAIL_SUBJECT | Contacto web |
PUBLIC_PATH | /public/ |
UPLOAD_PATH | /public/uploads/ |
COMMON_PATH | /commonpath/ |
Key | Value |
USER | c1461795 |
HOME | /home/c1461795 |
SCRIPT_NAME | /public/index.php |
REQUEST_URI | /blog/contenido-organico-video |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/2.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /blog/contenido-organico-video |
REMOTE_PORT | 59043 |
SCRIPT_FILENAME | /home/c1461795/public_html/public/index.php |
SERVER_ADMIN | webmaster@navemedia.com.ar |
CONTEXT_DOCUMENT_ROOT | /home/c1461795/public_html |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /home/c1461795/public_html |
REMOTE_ADDR | 216.73.216.37 |
SERVER_PORT | 443 |
SERVER_ADDR | 200.58.111.20 |
SERVER_NAME | www.navemedia.com.ar |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
LD_LIBRARY_PATH | /opt/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.navemedia.com.ar |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_COOKIE | PHPSESSID=380dc48d4934d93fe2512e24ceda8ba3 |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
H2_STREAM_TAG | 28427-18353-13 |
H2_STREAM_ID | 13 |
H2_PUSHED_ON | |
H2_PUSHED | |
H2_PUSH | off |
H2PUSH | off |
HTTP2 | on |
SSL_TLS_SNI | www.navemedia.com.ar |
HTTPS | on |
SCRIPT_URI | https://www.navemedia.com.ar/blog/contenido-organico-video |
SCRIPT_URL | /blog/contenido-organico-video |
MM_COUNTRY_CODE | US |
MM_CONTINENT_CODE | NA |
MMDB_INFO | result found |
MMDB_ADDR | 216.73.216.37 |
UNIQUE_ID | aNhGMbDIWxoGclz8slfhlQAAjAM |
REDIRECT_STATUS | 200 |
REDIRECT_H2_STREAM_TAG | 28427-18353-13 |
REDIRECT_H2_STREAM_ID | 13 |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSH | off |
REDIRECT_H2PUSH | off |
REDIRECT_HTTP2 | on |
REDIRECT_SSL_TLS_SNI | www.navemedia.com.ar |
REDIRECT_HTTPS | on |
REDIRECT_SCRIPT_URI | https://www.navemedia.com.ar/blog/contenido-organico-video |
REDIRECT_SCRIPT_URL | /blog/contenido-organico-video |
REDIRECT_MM_COUNTRY_CODE | US |
REDIRECT_MM_CONTINENT_CODE | NA |
REDIRECT_MMDB_INFO | result found |
REDIRECT_MMDB_ADDR | 216.73.216.37 |
REDIRECT_UNIQUE_ID | aNhGMbDIWxoGclz8slfhlQAAjAM |
FCGI_ROLE | RESPONDER |
PHP_SELF | /public/index.php |
REQUEST_TIME_FLOAT | 1759004209.633 |
REQUEST_TIME | 1759004209 |
argv | Array ( ) |
argc | 0 |
BASE_URL | navemedia.com.ar |
WEB_TITLE | Navemedia |
DB_HOST | localhost |
DB_NAME | c1461795_web |
DB_USER | c1461795_nave |
DB_PASS | Navedb2024 |
GMAPS_KEY | |
GCAPTHCA_KEY | 6LeljogpAAAAAA7Wj9P818q3ErDoOWhF418i-XS8 |
GCAPTCHA_SECRET | 6LeljogpAAAAABPoYYwi0puruBplIcH391m-KpSs |
EMAIL_SMTP | stage.navemedia.net |
EMAIL_SMTP_PORT | 587 |
EMAIL_USR | coso |
EMAIL_PASS | |
EMAIL_FROM | info@navemedia.com.ar |
EMAIL_TO | info@navemedia.com.ar |
EMAIL_SUBJECT | Contacto web |
PUBLIC_PATH | /public/ |
UPLOAD_PATH | /public/uploads/ |
COMMON_PATH | /commonpath/ |