quick minor path updates (#1968)
[openemr.git] / library / sqlconf.php
blob240b4ca6041e849d86caa3edff2c304ad8bee299
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;
20 require_once $GLOBALS['OE_SITE_DIR'] . "/sqlconf.php";