Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-11 10:11:10 +02:00
committed by GitHub
parent 93c556d390
commit ab5402b470
5 changed files with 46 additions and 33 deletions

View File

@ -15,7 +15,7 @@
/**
* Image files directory.
*/
define('IMG_DIR', ROUTE_APP.'img/');
define('FILMS_DIR', ROUTE_APP.'img/films');
/**
* Utf-8 support settings, location (language and country) and time zone.
@ -44,4 +44,9 @@
* @see http://php.net/manual/en/language.types.callable.php
*/
register_shutdown_function(array($app, 'shutdown'));
//Depuración (BORRAR):
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>

View File

@ -457,31 +457,29 @@
//Print generic Footer:
function print_footer(){
$prefix = $this->prefix;
/*
if (isset($_GET["css"]) && $_GET["css"] === true) {
if (isset($_GET["highContrast"]) && $_GET["highContrast"] === true) {
$css = "{$prefix}assets/css/main.css";
$nameCSS = "Contraste Normal";
} else {
$css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste";
}
*/
$css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste";
echo" <!-- Script -->
<script src='{$prefix}assets/js/cambiarCSS.js'></script>
<footer>
echo"<footer>
<div class='footer'>
<p>© Práctica 2 | Sistemas Web 2021 </p>
</div>
<a href='{$prefix}fdicines/about_us/'>Sobre FDI-Cines</a> |
<a href='{$prefix}fdicines/terms_conditions/'>Términos y condiciones</a> |
<a href='{$prefix}cinemas/'>Nuestros cines</a> |
<a href='{$prefix}contacto/'>Contacto</a> |
<button href='{$prefix}fdicines/about_us/'>Sobre FDI-Cines</button> |
<button href='{$prefix}fdicines/terms_conditions/'>Términos de uso</button> |
<button href='{$prefix}cinemas/'>Nuestros cines</button> |
<button href='{$prefix}contacto/'>Contacto</button> |
<button onclick=\"cambiarCSS('{$css}')\">$nameCSS</button>
</footer>\n";
echo"
<!-- Scripts -->
<script src='{$prefix}assets/js/cambiarCSS.js'></script>\n";
}
}