Add files via upload
This commit is contained in:
@ -16,7 +16,8 @@
|
||||
|
||||
<!-- Main -->
|
||||
<?php
|
||||
$template->print_main();
|
||||
if(!isset($content)) $content = "";
|
||||
$template->print_main($content);
|
||||
?>
|
||||
|
||||
<!-- Section -->
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
$template = new Template();
|
||||
$prefix = $template->get_prefix();
|
||||
include_once($prefix.'assets/php/dao.php');
|
||||
include_once('manager.php');
|
||||
include_once('../dao.php');
|
||||
include_once('manager.php');
|
||||
|
||||
class Manager_DAO extends DAO {
|
||||
|
||||
|
@ -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);
|
||||
?>
|
||||
|
@ -130,7 +130,7 @@
|
||||
}
|
||||
|
||||
//Print generic Main:
|
||||
function print_main(){
|
||||
function print_main($content = ""){
|
||||
$page = $this->page;
|
||||
$prefix = $this->prefix;
|
||||
|
||||
@ -154,18 +154,18 @@
|
||||
/* MAIN */
|
||||
if($prefix === "./"){
|
||||
if(isset($_SESSION["nombre"])){
|
||||
$header = "<h1>Bienvenido {$_SESSION["nombre"]}</h1>\n";
|
||||
$tittle = "<h1>Bienvenido {$_SESSION["nombre"]}</h1>\n";
|
||||
} else {
|
||||
$header = "<h1>Bienvenido a CompluCine</h1>\n";
|
||||
$tittle = "<h1>Bienvenido a CompluCine</h1>\n";
|
||||
}
|
||||
} else {
|
||||
$header = "<h1>{$page}</h1>\n";
|
||||
$tittle = "<h1>{$page}</h1>\n";
|
||||
}
|
||||
|
||||
echo"<main>
|
||||
<div class='image'><a href='{$prefix}'><img src='{$prefix}img/logo_trasparente.png' alt='logo_FDI-Cines' /></a></div>
|
||||
{$sub_header}
|
||||
{$header}
|
||||
{$tittle}{$content}
|
||||
<hr />
|
||||
</main>\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user