2021-04-26 22:40:34 +02:00
|
|
|
<?php
|
2021-04-28 21:06:53 +02:00
|
|
|
/**
|
|
|
|
* Connection parameters to the DB.
|
|
|
|
*/
|
|
|
|
define('BD_HOST', 'localhost');
|
|
|
|
define('BD_NAME', 'complucine');
|
|
|
|
define('BD_USER', 'sw');
|
|
|
|
define('BD_PASS', '_admin_');
|
|
|
|
|
2021-05-04 22:26:24 +02:00
|
|
|
/**
|
|
|
|
* Temprarl files directory.
|
|
|
|
*/
|
|
|
|
define('TMP_DIR', __DIR__.'/img/');
|
|
|
|
|
2021-04-28 21:06:53 +02:00
|
|
|
/**
|
|
|
|
* Utf-8 support settings, location (language and country) and time zone.
|
|
|
|
*/
|
|
|
|
ini_set('default_charset', 'UTF-8');
|
|
|
|
setLocale(LC_ALL, 'es_ES.UTF.8');
|
|
|
|
date_default_timezone_set('Europe/Madrid');
|
|
|
|
|
2021-04-26 22:40:34 +02:00
|
|
|
//Start session:
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
//HTML template:
|
|
|
|
require_once('template.php');
|
|
|
|
$template = new Template();
|
|
|
|
$prefix = $template->get_prefix();
|
2021-05-03 15:18:17 +02:00
|
|
|
|
|
|
|
//Depuración (BORRAR):
|
2021-05-04 22:26:24 +02:00
|
|
|
ini_set('display_errors', 1);
|
|
|
|
ini_set('display_startup_errors', 1);
|
|
|
|
error_reporting(E_ALL);
|
2021-05-03 15:18:17 +02:00
|
|
|
?>
|