-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php
111 lines (86 loc) · 2.75 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/*
This file is part of IPnet Recordings.
IPnet CRecordings is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Recuerde usar las credenciales de FreePBX para loguearse.
* Remenber use credentials FreePbx for login.
* Si FreePBX tiene una versión antigua setee la variable "$_freePbxOld" en 1
*
*/
class config {
//Database, user and password
private $_user="root";
private $_password="MyPasswordMySql";
private $_host="localhost";
private $_dabase="asteriskcdrdb";
private $_tabla="cdr";
//Options
private $_useCredentials=false;#Use or not credential FrePBX
private $_freePbxOld=0; #For versions olders FreePBX
private $_showCdr=0;#1=Show records of CDR with or without audio, 0= Only show records whitaudio
//PAGINATOR
private $_regPag=16; #Records for page
private $_totPAg=10; #Pages
private $_id_editar='calldate';
private $_idAuto='si';
private $_camposPermitidos=array('calldate','src','dst','duration','billsec','disposition','uniqueid','recordingfile');//Cuidado con mayúsculas y minusculas
private $_camposPermitidosRename=array('Date','From','To','Duration','Bill Seconds','Event','Key','Audio');//Aca renombro el campo como yo deseo que se vea es importante que coincida orden con $camposPermitidos
public function getUser() {
return $this->_user;
}
public function getPassword() {
return $this->_password;
}
public function getDabase() {
return $this->_dabase;
}
public function getHost() {
return $this->_host;
}
public function getTabla() {
return $this->_tabla;
}
public function getRegPag() {
return $this->_regPag;
}
public function getTotPAg() {
return $this->_totPAg;
}
public function getId_editar() {
return $this->_id_editar;
}
public function getCamposPermitidos() {
return $this->_camposPermitidos;
}
public function getCamposPermitidosRename() {
return $this->_camposPermitidosRename;
}
public function getIdAuto() {
return $this->_idAuto;
}
public function getFreePbxOld() {
return $this->_freePbxOld;
}
public function getFileAudio() {
return $this->_fileAudio;
}
public function getShowCdr() {
return $this->_showCdr;
}
public function getUseCredentials() {
return $this->_useCredentials;
}
}
session_start()
?>