Subversion Repositories Applications.papyrus

Rev

Rev 433 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 433 Rev 436
Line 61... Line 61...
61
 
61
 
62
// Initializes the counter used to rename the file, if another one with the same name already exists.
62
// Initializes the counter used to rename the file, if another one with the same name already exists.
Line 63... Line 63...
63
$iCounter = 0 ;
63
$iCounter = 0 ;
64
 
64
 
65
// The the target directory.
-
 
66
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
65
// The the target directory.
67
print "|";
-
 
Line 68... Line 66...
68
print $sServerDir;
66
//$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
69
print "|";
67
$sServerDir =  $Config['BaseDir'].$Config["UserFilesPath"].'/';
70
 
68
 
71
while ( true )
69
while ( true )
Line 89... Line 87...
89
			$oldumask = umask(0) ;
87
			$oldumask = umask(0) ;
90
			chmod( $sFilePath, 0777 ) ;
88
			chmod( $sFilePath, 0777 ) ;
91
			umask( $oldumask ) ;
89
			umask( $oldumask ) ;
92
		}
90
		}
Line 93... Line 91...
93
		
91
		
94
		$sFileUrl = $Config["UserFilesPath"] . $sFileName ;
92
		$sFileUrl = $Config["UrlPrefix"].$Config["UserFilesPath"]."/". $sFileName ;
95
 
93
		
96
		break ;
94
		break ;
97
	}
95
	}
Line 98... Line 96...
98
}
96
}