@cybergurk
hier das "Kochrezept", bedenke, die Änderungen gehen auf eigene Gefahr, und übrigends wenn jemand per JoomlaXplorer auf Deine Installtion Zugriff hat, kann Dieser die Änderung selber wieder zurücknehmen, nur so als Anmerkung.
Code:
// !Note! This has been changed since joomlaXplorer 1.3.0
// and now grants access to all directories for one level ABOVE this Site
$dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
if( !is_readable($dir_above)) {
$GLOBALS["home_dir"] = $mosConfig_absolute_path;
// the url corresponding with the home directory: (no trailing '/')
$GLOBALS["home_url"] = $mosConfig_live_site;
}
else {
$GLOBALS["home_dir"] = $dir_above;
// the url corresponding with the home directory: (no trailing '/')
$GLOBALS["home_url"] = substr( $mosConfig_live_site, 0, strrpos($mosConfig_live_site, '/'));
}
ändere in
Code:
// !Note! This has been changed since joomlaXplorer 1.3.0
// and now grants access to all directories for one level ABOVE this Site
$dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
//if( !is_readable($dir_above)) {
$GLOBALS["home_dir"] = $mosConfig_absolute_path;
// the url corresponding with the home directory: (no trailing '/')
$GLOBALS["home_url"] = $mosConfig_live_site;
//}
//else {
// $GLOBALS["home_dir"] = $dir_above;
// the url corresponding with the home directory: (no trailing '/')
// $GLOBALS["home_url"] = substr( $mosConfig_live_site, 0, strrpos($mosConfig_live_site, '/'));
//}
die Zeile
$dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
habe ich nicht auskommentiert, da ich nicht den Code durchgesaehen habe, ob die Variable dir_above wo anders noch verwendet wird, ich denke aber nicht.
gruß
reboot
Lesezeichen