Index: branches/5.1.x/system/.htaccess =================================================================== diff -u -N -r14241 -r14360 --- branches/5.1.x/system/.htaccess (.../.htaccess) (revision 14241) +++ branches/5.1.x/system/.htaccess (.../.htaccess) (revision 14360) @@ -1,4 +1,6 @@ order allow,deny deny from all - \ No newline at end of file + + +RedirectMatch 404 /\.restricted(/|$) \ No newline at end of file Index: branches/5.1.x/core/kernel/utility/debugger.php =================================================================== diff -u -N -r14323 -r14360 --- branches/5.1.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 14323) +++ branches/5.1.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 14360) @@ -1,6 +1,6 @@ baseURL = PROTOCOL.SERVER_NAME.(defined('PORT') ? ':'.PORT : '').rtrim(BASE_PATH, '/').$kernel_path.'/utility/debugger'; // save debug output in this folder - $this->tempFolder = WRITEABLE . '/cache'; + $this->tempFolder = defined('RESTRICTED') ? RESTRICTED : WRITEABLE . '/cache'; } function mapLongError($msg) Index: branches/5.1.x/core/kernel/utility/http_query.php =================================================================== diff -u -N -r14325 -r14360 --- branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 14325) +++ branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 14360) @@ -1,6 +1,6 @@ Application->recallObject('Session'); $user_id = $session->GetField('PortalUserId'); Index: branches/5.1.x/core/kernel/startup.php =================================================================== diff -u -N -r14323 -r14360 --- branches/5.1.x/core/kernel/startup.php (.../startup.php) (revision 14323) +++ branches/5.1.x/core/kernel/startup.php (.../startup.php) (revision 14360) @@ -1,6 +1,6 @@ '; Index: branches/5.1.x/core/kernel/session/session.php =================================================================== diff -u -N -r14263 -r14360 --- branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 14263) +++ branches/5.1.x/core/kernel/session/session.php (.../session.php) (revision 14360) @@ -1,6 +1,6 @@ writeableFolders[] = $this->toolkit->defaultWritablePath . '/config.php'; } - if (!$this->toolkit->getSystemConfig('Misc', 'WriteablePath')) { + if ( !$this->toolkit->getSystemConfig('Misc', 'WriteablePath') ) { // set global writable folder when such setting is missing $this->toolkit->setSystemConfig('Misc', 'WriteablePath', $this->toolkit->defaultWritablePath); $this->toolkit->SaveConfig(true); // immediately save, because this path will be used in Application later } + if ( !$this->toolkit->getSystemConfig('Misc', 'RestrictedPath') ) { + $this->toolkit->setSystemConfig('Misc', 'RestrictedPath', $this->toolkit->getSystemConfig('Misc', 'WriteablePath') . DIRECTORY_SEPARATOR . '.restricted'); + $this->toolkit->SaveConfig(true); + } + $this->currentStep = $this->GetVar('step'); // can't check login on steps where no application present anyways :)