1224 |
|
|
1225 |
$ext_arr = explode(".",$file); |
$ext_arr = explode(".",$file); |
1226 |
$ext = array_pop($ext_arr); |
$ext = array_pop($ext_arr); |
1227 |
if ($encoding_ext[$ext]) { |
if (isset($encoding_ext[$ext])) { |
1228 |
$encoding = $encoding_ext[$ext]; |
$encoding = $encoding_ext[$ext]; |
1229 |
$ext = array_pop($ext_arr); |
$ext = array_pop($ext_arr); |
1230 |
} |
} |
1236 |
} |
} |
1237 |
|
|
1238 |
// IE5.5 just downloads index.php if we don't do this |
// IE5.5 just downloads index.php if we don't do this |
1239 |
if(preg_match("/MSIE 5.5/", $HTTP_SERVER_VARS[HTTP_USER_AGENT])) { |
if(preg_match("/MSIE 5.5/", $HTTP_SERVER_VARS["HTTP_USER_AGENT"])) { |
1240 |
header("Content-Disposition: filename=$file"); |
header("Content-Disposition: filename=$file"); |
1241 |
} else { |
} else { |
1242 |
header("Content-Disposition: attachment; filename=$file"); |
header("Content-Disposition: attachment; filename=$file"); |
1463 |
|
|
1464 |
if (isset($tr)) { |
if (isset($tr)) { |
1465 |
// first apply trustee for all |
// first apply trustee for all |
1466 |
if (isset($tr['*'])) { |
if (isset($tr['*']) && $user!="anonymous") { |
1467 |
$perm = unroll_perm($user,$tr['*'],$perm, $one_level); |
$perm = unroll_perm($user,$tr['*'],$perm, $one_level); |
1468 |
unset($tr['*']); |
unset($tr['*']); |
1469 |
} |
} |