forked from infomed/metabuscador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-sample.php
59 lines (44 loc) · 1.73 KB
/
config-sample.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
<?php
ini_set('display_errors', '1');
//section Smary y PEAR
require_once 'smarty/libs/Smarty.class.php';
require_once 'MDB2.php';
$CONFIG = array();
$CONFIG['DB_HOST'] = 'localhost';
$CONFIG['DB_NAME'] = '';
$CONFIG['DB_USER'] = '';
$CONFIG['DB_PASS'] = '';
$CONFIG['SMARTY_TEMPLATE_DIR'] = '/var/www/buscador/templates/';
$CONFIG['SMARTY_COMPILE_DIR'] = '/var/www/buscador/templates_c/';
$CONFIG['SMARTY_CONFIG_DIR'] = '/var/www/buscador/configs/';
$CONFIG['SMARTY_CACHE_DIR'] = '/var/www/buscador/cache/';
$CONFIG['SMARTY_USE_CACHING'] = false;
class SmartyCustom extends Smarty
{
function __construct()
{
// Class Constructor.
// These automatically get set with each new instance.
$this->Smarty();
global $CONFIG;
$this->template_dir = $CONFIG['SMARTY_TEMPLATE_DIR'];
$this->compile_dir = $CONFIG['SMARTY_COMPILE_DIR'];
$this->config_dir = $CONFIG['SMARTY_CONFIG_DIR'];
$this->cache_dir = $CONFIG['SMARTY_CACHE_DIR'];
$this->caching = $CONFIG['SMARTY_USE_CACHING'];
}
}
$dsn = 'mysql://'.$CONFIG['DB_USER'].':'.$CONFIG['DB_PASS'].'@'.$CONFIG['DB_HOST'].'/'.$CONFIG['DB_NAME'];
$options = array ('persistent' => true);
$mdb =& MDB2::factory($dsn, $options);
$mdb->setFetchMode(MDB2_FETCHMODE_ASSOC);
//end section Smary y PEAR
//section PROXYS
$PROXYS = array();
$PROXYS[]= array('proxy_host' => '' , 'proxy_login' => "", 'proxy_password' => "", 'proxy_port' => 3128, 'proxy_user' => "", 'proxy_pass' => "");
//section paths
$dir = '/var/www/buscador/modulos';
// Determine the base URL
$wsdl_path = 'http://localhost/buscador/index.php?wsdl';
//end section paths
?>