diff --git a/do.php b/do.php index f946914..af74ddc 100755 --- a/do.php +++ b/do.php @@ -275,7 +275,7 @@ elseif (ig('down') || ig('downf') || //is internet explore 8 ? $is_ie8 = is_browser('ie8'); //is internet explore 6 ? - $is_ie6 = is_browser('ie6'); + // $is_ie6 = is_browser('ie6'); $livexts = explode(',', $config['livexts']); @@ -424,6 +424,13 @@ elseif (ig('down') || ig('downf') || $name = empty($rn) ? $n : $rn; + $dots_in_name = substr_count($name, '.') - 1; + + if ($dots_in_name > 0) + { + $name = preg_replace('/\./', '_', $name, $dots_in_name); + } + if (is_browser('mozilla')) { $h_name = "filename*=UTF-8''" . rawurlencode(htmlspecialchars_decode($name)); @@ -505,10 +512,6 @@ elseif (ig('down') || ig('downf') || // header('X-Download-Options: noopen'); //} - //header(($is_ie6 ? 'Expires: -1' : 'Expires: Mon, 26 Jul 1997 05:00:00 GMT')); - //(($is_ie8) ? '; authoritative=true; X-Content-Type-Options: nosniff;' : '') - - //add multipart download and resume support if (isset($_SERVER['HTTP_RANGE']) && $resuming_on) { diff --git a/includes/common.php b/includes/common.php index 1acd09f..ebf6809 100755 --- a/includes/common.php +++ b/includes/common.php @@ -253,6 +253,8 @@ is_array($plugin_run_result = Plugins::getInstance()->run('boot_common', get_def */ date_default_timezone_set('GMT'); +//remove PHP version header +header_remove('X-Powered-By'); //kleeja session id define('KJ_SESSION', preg_replace('/[^-,a-zA-Z0-9]/', '', session_id())); diff --git a/includes/functions.php b/includes/functions.php index 8cd9076..d49047f 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -893,7 +893,7 @@ function delete_config($name) // function update_olang($name, $lang = 'en', $value) { - global $SQL, $dbprefix; + global $SQL, $dbprefix, $olang; $update_query = [ diff --git a/styles/bootstrap/download.html b/styles/bootstrap/download.html index 5cde420..4cd1e0d 100755 --- a/styles/bootstrap/download.html +++ b/styles/bootstrap/download.html @@ -1,6 +1,6 @@