Subversion Repositories Applications.papyrus

Rev

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

Rev 431 Rev 436
Line 36... Line 36...
36
	$GLOBALS["UserFilesPath"] = '/UserFiles/' ;
36
	$GLOBALS["UserFilesPath"] = '/UserFiles/' ;
Line 37... Line 37...
37
 
37
 
38
if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
38
if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
Line -... Line 39...
-
 
39
	$GLOBALS["UserFilesPath"] .= '/' ;
-
 
40
 
-
 
41
$GLOBALS["BaseDir"] = ''; 
-
 
42
if ( isset( $Config['BaseDir'] ) )
-
 
43
	$GLOBALS["BaseDir"] = $Config['BaseDir'] ;
-
 
44
else if ( isset( $_GET['BaseDir'] ) )
-
 
45
	$GLOBALS["BaseDir"] = $_GET['BaseDir'] ;
-
 
46
else
-
 
47
	$GLOBALS["BaseDir"] = '' ;
-
 
48
 
-
 
49
$GLOBALS["UrlPrefix"] = ''; 
-
 
50
if ( isset( $Config['UrlPrefix'] ) )
-
 
51
	$GLOBALS["UrlPrefix"] = $Config['UrlPrefix'] ;
-
 
52
else if ( isset( $_GET['UrlPrefix'] ) )
-
 
53
	$GLOBALS["UrlPrefix"] = $_GET['UrlPrefix'] ;
-
 
54
else
-
 
55
	$GLOBALS["UrlPrefix"] = '' ;
39
	$GLOBALS["UserFilesPath"] .= '/' ;
56
 
40
 
57
 
41
// Map the "UserFiles" path to a local directory.
58
// Map the "UserFiles" path to a local directory.
-
 
59
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . str_replace( '/', '\\', $GLOBALS["UserFilesPath"] ) ;
-
 
60
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ;
Line 42... Line 61...
42
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . str_replace( '/', '\\', $GLOBALS["UserFilesPath"] ) ;
61
$GLOBALS['UserFilesDirectory'] = $GLOBALS['BaseDir'].$GLOBALS['UserFilesPath'] ;
Line 43... Line 62...
43
$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ;
62
 
44
 
63