moved setting of cookies into index.php
This commit is contained in:
@@ -35,6 +35,7 @@ $Source$
|
||||
* libraries/url_generating.lib.php:
|
||||
- dont add variables already in cookie (reduces html output up to 30%)
|
||||
- can pass all url variables as array to function
|
||||
* main.php, index.php: moved setting of cookies into index.php
|
||||
|
||||
2005-11-23 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* *REVERTED* libraries/display_select_lang.lib.php: correct lang definition
|
||||
|
14
index.php
14
index.php
@@ -3,7 +3,7 @@
|
||||
// vim: expandtab sw=4 ts=4 sts=4:
|
||||
/**
|
||||
* forms frameset
|
||||
*
|
||||
*
|
||||
* @uses libraries/common.lib.php global fnctions
|
||||
* @uses libraries/select_theme.lib.php theme manager
|
||||
* @uses libraries/relation.lib.php table relations
|
||||
@@ -38,6 +38,12 @@
|
||||
* Gets core libraries and defines some variables
|
||||
*/
|
||||
require_once('./libraries/common.lib.php');
|
||||
|
||||
setcookie('pma_lang', $lang, time() + 60*60*24*30, $cookie_path, '', $is_https);
|
||||
if (isset($convcharset)) {
|
||||
setcookie('pma_charset', $convcharset, time() + 60*60*24*30, $cookie_path, '', $is_https);
|
||||
}
|
||||
|
||||
/**
|
||||
* Includes the ThemeManager if it hasn't been included yet
|
||||
*/
|
||||
@@ -141,7 +147,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
||||
// definitions used in querywindow.js
|
||||
var common_query = '<?php echo PMA_generate_common_url('','','&');?>';
|
||||
var opendb_url = '<?php echo $GLOBALS['cfg']['DefaultTabDatabase']; ?>';
|
||||
var safari_browser = <?php echo PMA_USR_BROWSER_AGENT != 'SAFARI' ? 'true' : 'false' ?>;
|
||||
var safari_browser = <?php echo PMA_USR_BROWSER_AGENT != 'SAFARI' ? 'true' : 'false' ?>;
|
||||
var querywindow_height = <?php echo $GLOBALS['cfg']['QueryWindowHeight']; ?>;
|
||||
var querywindow_width = <?php echo $GLOBALS['cfg']['QueryWindowWidth']; ?>;
|
||||
var collation_connection = '<?php echo $GLOBALS['collation_connection']; ?>';
|
||||
@@ -157,10 +163,10 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
||||
</head>
|
||||
<frameset cols="<?php echo $GLOBALS['cfg']['LeftWidth']; ?>,*" rows="*" id="mainFrameset">
|
||||
<frame frameborder="0" id="leftFrame"
|
||||
src="left.php?<?php echo $url_query; ?>"
|
||||
src="left.php?<?php echo $url_query; ?>"
|
||||
name="nav<?php echo $_SESSION['window_name_hash']; ?>" />
|
||||
<frame frameborder="0" id="rightFrame"
|
||||
src="<?php echo $main_target; ?>"
|
||||
src="<?php echo $main_target; ?>"
|
||||
name="phpmain<?php echo $_SESSION['window_name_hash']; ?>" />
|
||||
<noframes>
|
||||
<body>
|
||||
|
5
main.php
5
main.php
@@ -11,10 +11,6 @@ define('PMA_DISPLAY_HEADING', 0);
|
||||
* Gets some core libraries and displays a top message if required
|
||||
*/
|
||||
require_once('./libraries/common.lib.php');
|
||||
setcookie('pma_lang', $lang, time() + 60*60*24*30, $cookie_path, '', $is_https);
|
||||
if (isset($convcharset)) {
|
||||
setcookie('pma_charset', $convcharset, time() + 60*60*24*30, $cookie_path, '', $is_https);
|
||||
}
|
||||
|
||||
/**
|
||||
* Includes the ThemeManager
|
||||
@@ -64,6 +60,7 @@ if ( $server > 0 ) {
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="mysqlmaininformation">
|
||||
<?php
|
||||
// robbat2: Use the verbose name of the server instead of the hostname
|
||||
|
Reference in New Issue
Block a user