From 4d59424d029a076dd4cd4ed2c6a3a6305e3e6119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Thu, 13 May 2021 00:10:19 +0200 Subject: [PATCH] Add files via upload --- assets/php/config.php | 5 +++ assets/php/template.php | 68 +++++++++++++++++++++++++---------------- cinemas/index.php | 2 +- index.php | 64 +++++++++----------------------------- showtimes/index.php | 40 ------------------------ 5 files changed, 62 insertions(+), 117 deletions(-) diff --git a/assets/php/config.php b/assets/php/config.php index d52c211..f03a4fb 100644 --- a/assets/php/config.php +++ b/assets/php/config.php @@ -46,4 +46,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); ?> diff --git a/assets/php/template.php b/assets/php/template.php index 58f0e30..ae2e0bf 100644 --- a/assets/php/template.php +++ b/assets/php/template.php @@ -152,10 +152,20 @@ } /* MAIN */ + if($prefix === "./"){ + if(isset($_SESSION["nombre"])){ + $header = "
'. $ids[$i] .' | '. $names[$i] .' | '. $directions[$i] .' | @@ -449,16 +462,19 @@ '; } } - echo' + $reply .='