Merge pull request #853 from growlingflea/alternative-deidentification-script-unrecov...
[openemr.git] / library / sqlconf.php
blob9e0463549c80d0ebf706de7b5a7e9c905bb5e5bb
1 <?php
2 // This program is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU General Public License
4 // as published by the Free Software Foundation; either version 2
5 // of the License, or (at your option) any later version.
7 // OpenEMR
8 // MySQL Config
9 // Needed by sql.inc
11 // Database parameters are now site-specific.
12 // $GLOBALS['OE_SITE_DIR'] is set in interface/globals.php.
13 if (empty($GLOBALS['OE_SITE_DIR'])) {
14 // This happens if called via user invocation of gacl/setup.php.
15 $GLOBALS['OE_SITES_BASE'] = dirname(__FILE__) . "/../sites";
16 $tmp = empty($_GET['site']) ? 'default' : $_GET['site'];
17 $GLOBALS['OE_SITE_DIR'] = $GLOBALS['OE_SITES_BASE'] . '/' . $tmp;
19 require_once $GLOBALS['OE_SITE_DIR'] . "/sqlconf.php";