38,10 → 38,29 |
if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) ) |
$GLOBALS["UserFilesPath"] .= '/' ; |
|
$GLOBALS["BaseDir"] = ''; |
if ( isset( $Config['BaseDir'] ) ) |
$GLOBALS["BaseDir"] = $Config['BaseDir'] ; |
else if ( isset( $_GET['BaseDir'] ) ) |
$GLOBALS["BaseDir"] = $_GET['BaseDir'] ; |
else |
$GLOBALS["BaseDir"] = '' ; |
|
$GLOBALS["UrlPrefix"] = ''; |
if ( isset( $Config['UrlPrefix'] ) ) |
$GLOBALS["UrlPrefix"] = $Config['UrlPrefix'] ; |
else if ( isset( $_GET['UrlPrefix'] ) ) |
$GLOBALS["UrlPrefix"] = $_GET['UrlPrefix'] ; |
else |
$GLOBALS["UrlPrefix"] = '' ; |
|
|
// Map the "UserFiles" path to a local directory. |
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . str_replace( '/', '\\', $GLOBALS["UserFilesPath"] ) ; |
$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; |
//$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; |
$GLOBALS['UserFilesDirectory'] = $GLOBALS['BaseDir'].$GLOBALS['UserFilesPath'] ; |
|
|
DoResponse() ; |
|
function DoResponse() |