Project

General

Profile

Bug #17535 » typo3_src-4.1.2-site_path_cwd.patch

Administrator Admin, 2007-08-16 08:02

View differences:

typo3_src-4.1.2/index.php 2007-08-16 07:31:52.000000000 +0200
define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (php_sapi_name()=='cgi'||php_sapi_name()=='isapi' ||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));
define('PATH_site', dirname(PATH_thisScript).'/');
// PHP 5.2 sets the CWD to the link _target_ location.
chdir(PATH_site);
if (@is_dir(PATH_site.'typo3/sysext/cms/tslib/')) {
define('PATH_tslib', PATH_site.'typo3/sysext/cms/tslib/');
......
require (PATH_tslib.'index_ts.php');
?>
?>
(1-1/3)