Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / phpmyadmin / setup / lib / common.inc.php
blob47443217eafa0cc4e981bd5732e5eea467ed43a7
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Loads libraries/common.inc.php and preforms some additional actions
6 * @package PhpMyAdmin-Setup
7 */
9 /**
10 * Do not include full common.
11 * @ignore
13 define('PMA_MINIMUM_COMMON', true);
14 define('PMA_SETUP', true);
15 chdir('..');
17 if (!file_exists('./libraries/common.inc.php')) {
18 PMA_fatalError('Bad invocation!');
21 require_once './libraries/common.inc.php';
22 require_once './libraries/Util.class.php';
23 require_once './libraries/config/config_functions.lib.php';
24 require_once './libraries/config/messages.inc.php';
25 require_once './libraries/config/ConfigFile.class.php';
26 require_once './libraries/url_generating.lib.php';
27 require_once './libraries/user_preferences.lib.php';
29 // use default error handler
30 restore_error_handler();
32 // Save current language in a cookie, required since we use PMA_MINIMUM_COMMON
33 $GLOBALS['PMA_Config']->setCookie('pma_lang', $GLOBALS['lang']);
35 ConfigFile::getInstance()->setPersistKeys(
36 array(
37 'DefaultLang',
38 'ServerDefault',
39 'UploadDir',
40 'SaveDir',
41 'Servers/1/verbose',
42 'Servers/1/host',
43 'Servers/1/port',
44 'Servers/1/socket',
45 'Servers/1/extension',
46 'Servers/1/connect_type',
47 'Servers/1/auth_type',
48 'Servers/1/user',
49 'Servers/1/password'
53 // allows for redirection even after sending some data
54 ob_start();