CDR Module: GUI Admin fixes when using list_options table
[openemr.git] / phpmyadmin / config.inc.php
blobef2b93268dc1b61c99ce54931ced6f47ad44d66b
1 <?php
2 /*
3 * Generated configuration file
4 * Generated by: phpMyAdmin 2.11.9.5 setup script
5 * Date: Tue, 12 May 2009 00:50:16 GMT
6 *
7 * Heavily customized for OpenEMR by Brady Miller.
9 */
11 /* OpenEMR Database Settings */
12 if (empty($_SESSION['site_id'])) die("phpMyAdmin has no session site ID!");
13 // This code is eval'd by phpmyadmin/libraries/Config.class.php
14 // and so __FILE__ is not what you might think.
15 $webserver_root = dirname(dirname(dirname(__FILE__)));
16 if (stripos(PHP_OS,'WIN') === 0) $webserver_root = str_replace("\\","/",$webserver_root);
17 $GLOBALS['OE_SITE_DIR'] = "$webserver_root/sites/" . $_SESSION['site_id'];
18 require_once("../library/sqlconf.php");
20 // this is the acl check (note can't use globals.php)
21 $GLOBALS['phpmyadmin_acl_check'] = true;
22 require_once("../library/acl.inc");
23 if (! acl_check('admin', 'database')) {
24 echo "You do not have access to this resource<br>";
25 exit;
28 /* Servers configuration */
29 $i = 0;
31 /* Server localhost (config:openemr) [1] */
32 $i++;
34 //For standard OpenEMR database access
35 $cfg['Servers'][$i]['auth_type'] = 'config';
36 $cfg['Servers'][$i]['host'] = $sqlconf['host'];
37 $cfg['Servers'][$i]['port'] = $sqlconf['port'];
38 $cfg['Servers'][$i]['user'] = $sqlconf['login'];
39 $cfg['Servers'][$i]['password'] = $sqlconf['pass'];
40 $cfg['Servers'][$i]['only_db'] = $sqlconf['dbase'];
42 //For control user access to use the relational
43 // database features provided by phpmyadmin
44 // in the OpenEMR database. Note that there is
45 // not full functionality because there is no
46 // designer_coords table. Also note that the
47 // sql bookmarks (pma_bookmarks) are currently
48 // utilized by OpenEMR itself to create custom
49 // reports at openemr/interface/reports/index.php
51 $cfg['Servers'][$i]['controluser'] = $sqlconf['login'];
52 $cfg['Servers'][$i]['controlpass'] = $sqlconf['pass'];
53 $cfg['Servers'][$i]['pmadb'] = $sqlconf['dbase'];
54 $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
55 $cfg['Servers'][$i]['relation'] = 'pma_relation';
56 $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
57 $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
58 $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
59 $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
60 $cfg['Servers'][$i]['history'] = 'pma_history';
61 $cfg['Servers'][$i]['designer_coords'] = '';
62 $cfg['Servers'][$i]['verbose_check'] = TRUE;
64 /* End of servers configuration */
67 /* Other mods - BM 05-2009 */
68 $cfg['ShowCreateDb'] = false;