5
getcwd() is used only by the XOOPS install script, and occurs in two places:
install/index.php:
$detected = str_replace("\", "/", getcwd()); // "
install/class/settingmanager.php:
$this->root_path = str_replace("\","/",getcwd()); // "
A couple of workarounds:
1) Replace each instance of getcwd() with dirname($_SERVER['PATH_TRANSLATED']).
2) Replace each instance of getcwd() with a hardcoded path, which should be the same as the value of XOOPS_ROOT_PATH in mainfile.php (after that file has been properly configured), with '/install' appended.