/[docman2]/docman.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /docman.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25 by dpavlin, Mon Jul 29 10:17:53 2002 UTC revision 1.26 by dpavlin, Mon Jul 29 10:29:04 2002 UTC
# Line 1224  function Download($path,$force=0) { Line 1224  function Download($path,$force=0) {
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          }          }
# Line 1236  function Download($path,$force=0) { Line 1236  function Download($path,$force=0) {
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");
# Line 1463  $debug.=" O($one_level) "; Line 1463  $debug.=" O($one_level) ";
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                          }                          }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.26