/[docman]/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.38 by dpavlin, Tue Mar 27 10:54:02 2001 UTC revision 1.39 by dpavlin, Tue Apr 3 13:35:07 2001 UTC
# Line 1059  function urlpath($url) { Line 1059  function urlpath($url) {
1059    
1060  function safe_rename($fromdir,$fromfile,$tofile) {  function safe_rename($fromdir,$fromfile,$tofile) {
1061          function try_rename($from,$to) {          function try_rename($from,$to) {
1062                  print "$from -> $to\n";  #               print "$from -> $to\n";
1063                  if (file_exists($from) && is_writeable(dirname($to))) {                  if (file_exists($from) && is_writeable(dirname($to))) {
1064                          rename($from,$to);                          rename($from,$to);
1065                  }                  }
# Line 1075  function safe_rename($fromdir,$fromfile, Line 1075  function safe_rename($fromdir,$fromfile,
1075          $todir=dirname($to);          $todir=dirname($to);
1076          $tofile=basename($to);          $tofile=basename($to);
1077    
1078          print "<pre>$fromdir / $fromfile -> $todir / $tofile\n\n";  #       print "<pre>$fromdir / $fromfile -> $todir / $tofile\n\n";
1079    
1080          try_rename("$fromdir/$fromfile","$todir/$tofile");          try_rename("$fromdir/$fromfile","$todir/$tofile");
1081          try_dir("$todir/.log");          try_dir("$todir/.log");

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.26