} //set this to a default otherwise GO will keep autodetecting values if (empty(\GO::config()->db_user)) { \GO::config()->db_user = '******'; } $f = new \GO\Base\Fs\Folder($_POST['file_storage_path']); if (!$f->exists()) { \GO\Base\Html\Input::setError("file_storage_path", "File storage folder doesn't exist. Please make sure it exists and it must be writable for the webserver user."); } elseif (!$f->isWritable()) { \GO\Base\Html\Input::setError("file_storage_path", "File storage must be writable for the webserver user."); } \GO::config()->file_storage_path = $f->path() . '/'; $f = new \GO\Base\Fs\Folder($_POST['tmpdir']); if (!$f->exists() && !$f->create(0777)) { \GO\Base\Html\Input::setError("tmpdir", "Temporary folder doesn't exist. Please make sure it exists and it must be writable for the webserver user."); } elseif (!$f->isWritable()) { \GO\Base\Html\Input::setError("tmpdir", "Temporary folder must be writable for the webserver user."); } \GO::config()->tmpdir = $f->path() . '/'; \GO::config()->save($config); if (!\GO\Base\Html\Input::hasErrors()) { redirect("regional.php"); } } } catch (Exception $e) { \GO\Base\Html\Input::setError("form", $e->getMessage()); } printHead(); //check if config root_path matches the current Group-Office in case an /etc/groupoffice/config.php was found that conflicts with this installation. $filepath = str_replace("\\", "/", __FILE__); if (strpos($filepath, \GO::config()->root_path) !== 0) {