2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Loads libraries/common.inc.php and preforms some additional actions
6 * @package PhpMyAdmin-setup
10 * Do not include full common.
13 define('PMA_MINIMUM_COMMON', true);
14 define('PMA_SETUP', true);
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(
43 'Servers/1/extension',
44 'Servers/1/connect_type',
45 'Servers/1/auth_type',
47 'Servers/1/password'));
49 // allows for redirection even after sending some data