various code improvements, thanks to Piotr Przybylski
This commit is contained in:
@@ -211,8 +211,8 @@ $output_charset_conversion = $asfile &&
|
|||||||
&& isset($charset_of_file) && $charset_of_file != $charset
|
&& isset($charset_of_file) && $charset_of_file != $charset
|
||||||
&& $type != 'xls';
|
&& $type != 'xls';
|
||||||
|
|
||||||
// Use on fly compression?
|
// Use on the fly compression?
|
||||||
$onfly_compression = $GLOBALS['cfg']['CompressOnFly'] && ($compression == 'gzip' | $compression == 'bzip');
|
$onfly_compression = $GLOBALS['cfg']['CompressOnFly'] && ($compression == 'gzip' || $compression == 'bzip');
|
||||||
if ($onfly_compression) {
|
if ($onfly_compression) {
|
||||||
$memory_limit = trim(@ini_get('memory_limit'));
|
$memory_limit = trim(@ini_get('memory_limit'));
|
||||||
// 2 MB as default
|
// 2 MB as default
|
||||||
|
@@ -541,7 +541,7 @@ class PMA_Config
|
|||||||
*/
|
*/
|
||||||
function getThemeUniqueValue()
|
function getThemeUniqueValue()
|
||||||
{
|
{
|
||||||
return intval((null !== $_SESSION['PMA_Config']->get('fontsize') ? $_SESSION['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize'])) + ($this->source_mtime + $this->default_source_mtime + $_SESSION['PMA_Theme']->mtime_info + $_SESSION['PMA_Theme']->filesize_info) . (isset($_SESSION['userconf']['custom_color']) ? substr($_SESSION['userconf']['custom_color'],1,6) : '');
|
return intval((null !== $_SESSION['PMA_Config']->get('fontsize') ? $_SESSION['PMA_Config']->get('fontsize') : (isset($_COOKIE['pma_fontsize']) ? $_COOKIE['pma_fontsize'] : 0))) + ($this->source_mtime + $this->default_source_mtime + $_SESSION['PMA_Theme']->mtime_info + $_SESSION['PMA_Theme']->filesize_info) . (isset($_SESSION['userconf']['custom_color']) ? substr($_SESSION['userconf']['custom_color'],1,6) : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -82,7 +82,7 @@ function PMA_detectCompression($filepath)
|
|||||||
function PMA_importRunQuery($sql = '', $full = '', $controluser = false)
|
function PMA_importRunQuery($sql = '', $full = '', $controluser = false)
|
||||||
{
|
{
|
||||||
global $import_run_buffer, $go_sql, $complete_query, $display_query,
|
global $import_run_buffer, $go_sql, $complete_query, $display_query,
|
||||||
$sql_query, $cfg, $my_die, $error, $reload, $timeout_passed,
|
$sql_query, $my_die, $error, $reload,
|
||||||
$skip_queries, $executed_queries, $max_sql_len, $read_multiply,
|
$skip_queries, $executed_queries, $max_sql_len, $read_multiply,
|
||||||
$cfg, $sql_query_disabled, $db, $run_query, $is_superuser;
|
$cfg, $sql_query_disabled, $db, $run_query, $is_superuser;
|
||||||
$read_multiply = 1;
|
$read_multiply = 1;
|
||||||
|
Reference in New Issue
Block a user