1
|
|
|
<?php |
|
|
|
|
2
|
|
|
|
3
|
|
|
/* inicio la configuracion*/ |
4
|
|
|
define('Cf_CONFIG_INICIO', 'true'); |
5
|
|
|
|
6
|
|
|
/* Defino zona horaria*/ |
7
|
|
|
date_default_timezone_set('America/Bogota'); |
8
|
|
|
|
9
|
|
|
/* Define una cuenta de correo para uso del app */ |
10
|
|
|
define('DESTINO_EMAIL', '[email protected]'); |
11
|
|
|
|
12
|
|
|
/* Defino el formato de fecha */ |
13
|
|
|
define('Cf_FORMATO_FECHA', 'l, d F Y'); |
14
|
|
|
|
15
|
|
|
/* CalimaFramework clave de licencia */ |
16
|
|
|
define('Cf_LICENSE', 'Cf-O17N-JHK8-TDJL-B5AO-8WKA'); |
17
|
|
|
|
18
|
|
|
/* mensajes de warnin */ |
19
|
|
|
define('CF_DEBUG', TRUE); |
20
|
|
|
|
21
|
|
|
/* Idioma local */ |
22
|
|
|
define('CF_LOCALE', 'es_ES'); |
23
|
|
|
|
24
|
|
|
/* Create una cuenta con google analytics y agrega el UA en la constante */ |
25
|
|
|
define('CF_ANALYTICS', 'UA-xxxxxx'); |
26
|
|
|
|
27
|
|
|
/* con la siguiente constante podras crear una ip fija de tu empresa para hacer |
28
|
|
|
* pruebas en tu entorno de red basado en tu ip que te ofrece tu proveedor de servicio |
29
|
|
|
*/ |
30
|
|
|
define('Cf_IPPRUEBAS', 'x.x.x.x'); |
31
|
|
|
|
32
|
|
|
/* Transladamos a formato local */ |
33
|
|
|
define('CF_FECHA_FORMATO_LOCAL', '%A, %d %B %G'); |
34
|
|
|
|
35
|
|
|
/* Translatable time format */ |
36
|
|
|
define('CF_LOCALE_TIME_FORMAT', ' %T'); |
37
|
|
|
|
38
|
|
|
/* Por defecto almacenamos los datos de la aplicacion. */ |
39
|
|
|
define('CF_PATH_DATA', dirname(__FILE__) . '/Cf-data'); |
40
|
|
|
|
41
|
|
|
#Configuracion Basica |
42
|
|
|
|
43
|
|
|
/* La siguiente CONSTANTE permite el apuntapiento para archivos js, css, imagenes desde la vista hacia el directorio _public */ |
44
|
|
|
define('Cf_BASE_URL', 'http://localhost/calima/'); |
45
|
|
|
|
46
|
|
|
/* definimos un controlador inicial en nuestro proyecto */ |
47
|
|
|
define('CONTROLADOR_INICIAL', 'index'); |
48
|
|
|
|
49
|
|
|
/* Sedefine una CONSTANTE al directorio adicionales en la vista */ |
50
|
|
|
define('ADICIONALES_VISTA', 'adicionales'); |
51
|
|
|
|
52
|
|
|
/* Definimos una CONSTANTE como nombre de aplicacion */ |
53
|
|
|
define('CF_AP_NOMBRE', 'CalimaFramework'); |
54
|
|
|
|
55
|
|
|
/* Definimos un Slogan para la aplicacion web */ |
56
|
|
|
define('CF_AP_SLOGAN', 'Tu Framework php MVC hispano '); |
57
|
|
|
|
58
|
|
|
/* Empresa de la aplicacion */ |
59
|
|
|
define('CF_AP_EMPRESA', 'www.webcol.net'); |
60
|
|
|
|
61
|
|
|
/* Creditos de la aplicacion */ |
62
|
|
|
define('CF_AP_CREDITOS', 'CopyLeft 2015 Debeloped by www.webcol.net'); |
63
|
|
|
|
64
|
|
|
#webcol seguridad |
65
|
|
|
|
66
|
|
|
/* Definimos un indice de clave para concatenar en encriptacion de datos */ |
67
|
|
|
define('Cf_KEY_MD5', 'P0L1'); |
68
|
|
|
|
69
|
|
|
/* en el controlador concatena la constante con el llamado a la funcion generarCadenaAleatoria() de Cf_PHPSeguridad */ |
70
|
|
|
define('Cf_CSRF_SECRET','Cfbeta'); |
71
|
|
|
|
72
|
|
|
/* Si usted va a utilizar SSL debe de cambiar a true */ |
73
|
|
|
define('Cf_SESION_PARAMETRO_SEGURO','false'); |
74
|
|
|
|
75
|
|
|
/* #base de datos */ |
76
|
|
|
|
77
|
|
|
/* Configuracion de tu base de datos */ |
78
|
|
|
define('CF_BD_HOST', 'localhost'); |
79
|
|
|
define('CF_BD_NOMBRE', 'calima'); |
80
|
|
|
define('CF_BD_USUARIO', 'root'); |
81
|
|
|
define('CF_BD_CLAVE', ''); |
82
|
|
|
define('CF_BD_CHAR', 'utf8'); |
83
|
|
|
define('CF_BD_CONECTOR', 'mysql'); |
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.