Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phpmyadmin integration work into OpenEMR
- Loading branch information
1 parent
bcac748
commit 79b041a
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* | ||
* Customized for OpenEMR. | ||
* | ||
*/ | ||
|
||
// Access control is dealt with by the ACL check | ||
$ignoreAuth = true; | ||
require_once("../interface/globals.php"); | ||
require_once("../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['ShowCreateDb'] = false; | ||
$cfg['ShowPhpInfo'] = TRUE; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters