-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php
60 lines (50 loc) · 1.76 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/*******************************************
** Constantes para usar en los include/require
** (Directorios relativos al sistema)
*******************************************/
define("ROOT_DIR", dirname(__FILE__)); // Directorio raiz
define("LIB_DIR", ROOT_DIR."/lib"); // Librerias del sistema
define("MOD_DIR", ROOT_DIR."/modulos"); // Modulos del sistema
define("UPLOADS_DIR", ROOT_DIR."/uploads"); // Directorio para uploads
date_default_timezone_set("America/Argentina/Buenos_Aires");
require_once(ROOT_DIR."/db.php");
/*******************************************
** Headers para que el explorador no guarde
** las páginas en cache.
*******************************************/
header("Cache-control: no-cache");
header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
require_once LIB_DIR."/Browser.php";
$browser = new Browser();
if( $browser->isBrowser("Chrome") ||
($browser->isBrowser("Internet Explorer") && $browser->getVersion() >= 11)
)
{
define("BROWSER_OK", true);
}
else
{
define("BROWSER_OK", false);
}
$ADODB_CACHE_DIR = LIB_DIR."/adodb/cache"; // Directorio para cache de consultas
// Arreglo que contiene los nombres de los esquemas en la
// base de datos para poder acceder a las tablas sin tener
// que usar en nombre del esquema.
$db_schemas = array(
"general",
"administracion",
"permisos",
"firma"
);
$db_debug = FALSE; // Debugger de las consultas.
/*******************************************
** Limite de tiempo de inactividad para la
** expiración de la sesión (en minutos).
*******************************************/
$session_timeout = 90;
/*******************************************
** Libreria principal del sistema.
*******************************************/
require LIB_DIR."/lib.php";
?>