forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php
65 lines (54 loc) · 2.07 KB
/
config.inc.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
<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.11.9.5 setup script
* Date: Tue, 12 May 2009 00:50:16 GMT
*
* Heavily customized for OpenEMR by Brady Miller.
*
*/
/* OpenEMR Access Control */
require_once("../interface/globals.php");
require_once("../library/acl.inc");
if (! acl_check('admin', 'database')) {
echo "You do not have access to this resource<br>";
exit;
}
/* OpenEMR Database Settings */
require_once("../library/sqlconf.php");
/* Servers configuration */
$i = 0;
/* Server localhost (config:openemr) [1] */
$i++;
//For standard OpenEMR database access
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = $sqlconf['host'];
$cfg['Servers'][$i]['port'] = $sqlconf['port'];
$cfg['Servers'][$i]['user'] = $sqlconf['login'];
$cfg['Servers'][$i]['password'] = $sqlconf['pass'];
$cfg['Servers'][$i]['only_db'] = $sqlconf['dbase'];
//For control user access to use the relational
// database features provided by phpmyadmin
// in the OpenEMR database. Note that there is
// not full functionality because there is no
// designer_coords table. Also note that the
// sql bookmarks (pma_bookmarks) are currently
// utilized by OpenEMR itself to create custom
// reports at openemr/interface/reports/index.php
//
$cfg['Servers'][$i]['controluser'] = $sqlconf['login'];
$cfg['Servers'][$i]['controlpass'] = $sqlconf['pass'];
$cfg['Servers'][$i]['pmadb'] = $sqlconf['dbase'];
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = '';
$cfg['Servers'][$i]['verbose_check'] = TRUE;
/* End of servers configuration */
/* Other mods - BM 05-2009 */
$cfg['ShowCreateDb'] = false;
?>