Revision: 4496
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 21, 2007 18:31 by jpdamen
Initial Code
if (!defined('PATH_thisScript')) 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'])))); $pos = strpos(PATH_thisScript, 'typo3conf'); if (!defined('PATH_site')) define('PATH_site', substr(PATH_thisScript, 0, $pos)); if (!defined('PATH_t3lib')) define('PATH_t3lib', PATH_site.'t3lib/'); define('TYPO3_mainDir', 'typo3/'); // This is the directory of the backend administration for the sites of this TYPO3 installation. define('PATH_typo3', PATH_site.TYPO3_mainDir); define('PATH_typo3conf', PATH_site.'typo3conf/'); if (!@is_dir(PATH_typo3conf)) die('Cannot find configuration. This file is probably executed from the wrong location.'); require_once(PATH_t3lib.'class.t3lib_div.php'); require_once(PATH_t3lib.'class.t3lib_extmgm.php'); require(PATH_typo3conf.'localconf.php'); define('TYPO3_db', $typo_db); define('TYPO3_db_username', $typo_db_username); define('TYPO3_db_password', $typo_db_password); define('TYPO3_db_host', $typo_db_host);
Initial URL
Initial Description
Initial Title
typo3 define PATH_site and read localconf.php
Initial Tags
textmate, extension, Development
Initial Language
R