Changelog entry for patch #3313326
[phpmyadmin/ammaryasirr.git] / setup / lib / common.inc.php
blob8b43caff9f7005b75fbefe3b66bfdad8b22f044b
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 die('Bad invocation!');
21 require_once './libraries/common.inc.php';
22 require_once './libraries/config/config_functions.lib.php';
23 require_once './libraries/config/messages.inc.php';
24 require_once './libraries/config/ConfigFile.class.php';
25 require_once './libraries/url_generating.lib.php';
26 require_once './libraries/user_preferences.lib.php';
28 // use default error handler
29 restore_error_handler();
31 // Save current language in a cookie, required since we use PMA_MINIMUM_COMMON
32 $GLOBALS['PMA_Config']->setCookie('pma_lang', $GLOBALS['lang']);
34 ConfigFile::getInstance()->setPersistKeys(array(
35 'DefaultLang',
36 'ServerDefault',
37 'UploadDir',
38 'SaveDir',
39 'Servers/1/verbose',
40 'Servers/1/host',
41 'Servers/1/port',
42 'Servers/1/socket',
43 'Servers/1/extension',
44 'Servers/1/connect_type',
45 'Servers/1/auth_type',
46 'Servers/1/user',
47 'Servers/1/password'));
49 // allows for redirection even after sending some data
50 ob_start();