3 * Customized for OpenEMR.
7 // Access control is dealt with by the ACL check
8 $fake_register_globals=false;
9 $sanitize_all_escapes=true;
11 require_once(dirname(__FILE__
)."/../interface/globals.php");
12 require_once(dirname(__FILE__
)."/../library/acl.inc");
13 if ($GLOBALS['disable_phpmyadmin_link']) {
14 echo "You do not have access to this resource<br>";
17 if (! acl_check('admin', 'database')) {
18 echo "You do not have access to this resource<br>";
22 /* Servers configuration */
25 /* Server localhost (config:openemr) [1] */
28 /* For standard OpenEMR database access */
29 $cfg['Servers'][$i]['auth_type'] = 'config';
30 $cfg['Servers'][$i]['host'] = $sqlconf['host'];
31 $cfg['Servers'][$i]['port'] = $sqlconf['port'];
32 $cfg['Servers'][$i]['user'] = $sqlconf['login'];
33 $cfg['Servers'][$i]['password'] = $sqlconf['pass'];
34 $cfg['Servers'][$i]['only_db'] = $sqlconf['dbase'];
36 /* Other mods for OpenEMR */
37 $cfg['AllowThirdPartyFraming'] = TRUE;
38 $cfg['ShowCreateDb'] = false;
39 $cfg['ShowPhpInfo'] = TRUE;