This commit is contained in:
Abdulrahman
2019-06-02 05:46:15 +03:00
parent cb85d77d7b
commit 82087f0971
4 changed files with 14 additions and 9 deletions

13
do.php
View File

@@ -275,7 +275,7 @@ elseif (ig('down') || ig('downf') ||
//is internet explore 8 ? //is internet explore 8 ?
$is_ie8 = is_browser('ie8'); $is_ie8 = is_browser('ie8');
//is internet explore 6 ? //is internet explore 6 ?
$is_ie6 = is_browser('ie6'); // $is_ie6 = is_browser('ie6');
$livexts = explode(',', $config['livexts']); $livexts = explode(',', $config['livexts']);
@@ -424,6 +424,13 @@ elseif (ig('down') || ig('downf') ||
$name = empty($rn) ? $n : $rn; $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')) if (is_browser('mozilla'))
{ {
$h_name = "filename*=UTF-8''" . rawurlencode(htmlspecialchars_decode($name)); $h_name = "filename*=UTF-8''" . rawurlencode(htmlspecialchars_decode($name));
@@ -505,10 +512,6 @@ elseif (ig('down') || ig('downf') ||
// header('X-Download-Options: noopen'); // 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 //add multipart download and resume support
if (isset($_SERVER['HTTP_RANGE']) && $resuming_on) if (isset($_SERVER['HTTP_RANGE']) && $resuming_on)
{ {

View File

@@ -253,6 +253,8 @@ is_array($plugin_run_result = Plugins::getInstance()->run('boot_common', get_def
*/ */
date_default_timezone_set('GMT'); date_default_timezone_set('GMT');
//remove PHP version header
header_remove('X-Powered-By');
//kleeja session id //kleeja session id
define('KJ_SESSION', preg_replace('/[^-,a-zA-Z0-9]/', '', session_id())); define('KJ_SESSION', preg_replace('/[^-,a-zA-Z0-9]/', '', session_id()));

View File

@@ -893,7 +893,7 @@ function delete_config($name)
// //
function update_olang($name, $lang = 'en', $value) function update_olang($name, $lang = 'en', $value)
{ {
global $SQL, $dbprefix; global $SQL, $dbprefix, $olang;
$update_query = [ $update_query = [

View File

@@ -1,6 +1,6 @@
<div class="mt-3 mb-5"> <div class="mt-3 mb-5">
<h2>{title}</h2> <h2 style="word-wrap:break-word;">{title}</h2>
</div> </div>
@@ -11,9 +11,9 @@
<!-- <p class="text-center"><strong>{lang.FILE_INFO}</strong></p> --> <!-- <p class="text-center"><strong>{lang.FILE_INFO}</strong></p> -->
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item d-flex justify-content-between"> <li class="list-group-item d-flex justify-content-between flex-column">
<span class="text-secondary">{lang.FILENAME}</span> <span class="text-secondary">{lang.FILENAME}</span>
<div class="list-group-item-text">{name}</div> <div class="list-group-item-text break-all" style="word-wrap:break-word!important;">{name}</div>
</li> </li>
<li class="list-group-item d-flex justify-content-between"> <li class="list-group-item d-flex justify-content-between">
<span class="text-secondary">{lang.FILETYPE}</span> <span class="text-secondary">{lang.FILETYPE}</span>