/var/www/actualidadsocial/src/_helpers/router.php
if(strpos ( $e->getMessage(), 'failed to open stream: No such file or directory') !== false) {
$vars['titulo'] = 'Ups! Parece que lo que buscas no está en su sitio.';
$vars['error'] = 'Lo mejor es ir <a href="'.BASE_URL.'">al inicio</a> y empezar de nuevo.';
render('error.twig', $vars);
} else {
$serialized_exception = serialize($e);
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
$whoops->handleException(unserialize($serialized_exception));
}
}
} else {
include_once DIR . '/src/' . $folder . '/' . $controlName . '.php';
}
}
}
function isSecure() {
$isSecure = false;
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$isSecure = true;
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
$isSecure = true;
}
return $isSecure;
}
function quitarAcentos($str)
{
Arguments
"include_once(/var/www/actualidadsocial/src/_control/tienda_jabonera-con-desague.php): Failed to open stream: No such file or directory"
/var/www/actualidadsocial/src/_helpers/router.php
if(strpos ( $e->getMessage(), 'failed to open stream: No such file or directory') !== false) {
$vars['titulo'] = 'Ups! Parece que lo que buscas no está en su sitio.';
$vars['error'] = 'Lo mejor es ir <a href="'.BASE_URL.'">al inicio</a> y empezar de nuevo.';
render('error.twig', $vars);
} else {
$serialized_exception = serialize($e);
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
$whoops->handleException(unserialize($serialized_exception));
}
}
} else {
include_once DIR . '/src/' . $folder . '/' . $controlName . '.php';
}
}
}
function isSecure() {
$isSecure = false;
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$isSecure = true;
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') {
$isSecure = true;
}
return $isSecure;
}
function quitarAcentos($str)
{
/var/www/actualidadsocial/src/_control/_front-controler.php
}
$apariencia = R::load( 'apariencia', 1 );
$vars['apariencia'] = $apariencia;
$vars['variables_css'] = "
:root {
--color: $apariencia->colorPrincipal;
--intermedio: $apariencia->colorIntermedio;
--color-oscuro: $apariencia->colorOscuro;
--fondo: $apariencia->colorFondo;
--destacado: $apariencia->colorDestacado;
--body-font: '$apariencia->tipografiaCuerpo';
--header-font: '$apariencia->tipografiaTitulo';
}
";
router($controlName, $id);
/var/www/actualidadsocial/index.php
include_once 'src/_helpers/debug.php';
include_once 'src/_helpers/privilegios.php';
include_once 'src/_helpers/router.php';
include_once 'src/_helpers/render.php';
include_once 'src/_helpers/parsedown.php';
include_once 'src/_helpers/email.php';
include_once 'src/_helpers/archivos.php';
include_once 'src/_helpers/imagen.php';
/* END HELPERS */
/* MODELS */
include_once 'src/_model/usuario.php';
/* END MODELS */
include_once 'db.php';
include_once 'src/_control/_front-controler.php';
Arguments
"/var/www/actualidadsocial/src/_control/_front-controler.php"