Skip to content

Commit

Permalink
Upgrade phpmyadmin project (commit 3 of 3; This commits integrates ph…
Browse files Browse the repository at this point in the history
…pmyadmin into OpenEMR)
  • Loading branch information
bradymiller committed Feb 2, 2016
1 parent 084ace8 commit 218f9b0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/*
* Customized for OpenEMR.
*
*/

// Access control is dealt with by the ACL check
$ignoreAuth = true;
require_once(dirname(__FILE__)."/../interface/globals.php");
require_once(dirname(__FILE__)."/../library/acl.inc");
if ($GLOBALS['disable_phpmyadmin_link']) {
echo "You do not have access to this resource<br>";
exit;
}
if (! acl_check('admin', 'database')) {
echo "You do not have access to this resource<br>";
exit;
}

/* 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'];

/* Other mods for OpenEMR */
$cfg['AllowThirdPartyFraming'] = TRUE;
$cfg['ShowCreateDb'] = false;
$cfg['ShowPhpInfo'] = TRUE;
?>

0 comments on commit 218f9b0

Please sign in to comment.