0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
joomla
/
3.3.1-2
/
standard
/
scripts
/
[
Home
]
File: com_extplorer_document_root.patch
--- work/pkg/htdocs/tmp/distributives/com_extplorer_tmp/include/init.php.orig 2012-07-02 11:05:30.000000000 +0400 +++ work/pkg/htdocs/tmp/distributives/com_extplorer_tmp/include/init.php 2013-08-06 12:03:34.841968352 +0400 @@ -69,7 +69,13 @@ } $GLOBALS['home_url'] = str_replace( '/administrator', '', $GLOBALS['home_url'] ); -$GLOBALS['home_dir'] = !empty( $_SERVER['DOCUMENT_ROOT'] ) ? $_SERVER['DOCUMENT_ROOT'] : '.'; +#$GLOBALS['home_dir'] = !empty( $_SERVER['DOCUMENT_ROOT'] ) ? $_SERVER['DOCUMENT_ROOT'] : '.'; +if( file_exists(dirname(__FILE__). '/../../../../configuration.php') ){ + $GLOBALS['home_dir'] = realpath(dirname(dirname(__FILE__). '/../../../../configuration.php')); +} else { + $GLOBALS['home_dir'] = !empty( $_SERVER['DOCUMENT_ROOT'] ) ? $_SERVER['DOCUMENT_ROOT'] : '.'; +} + // Important Definitions! define ("_EXT_PATH", realpath(dirname( __FILE__ ) . '/..'));