Minahito
minah****@users*****
2006年 9月 14日 (木) 19:23:16 JST
Index: xoops2jp/html/install/wizards/install_dbsave.inc.php diff -u xoops2jp/html/install/wizards/install_dbsave.inc.php:1.1.2.1 xoops2jp/html/install/wizards/install_dbsave.inc.php:1.1.2.2 --- xoops2jp/html/install/wizards/install_dbsave.inc.php:1.1.2.1 Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_dbsave.inc.php Thu Sep 14 19:23:15 2006 @@ -28,7 +28,13 @@ // IIS6 doubles the \ chars $xoopsPathTrans = str_replace( strpos( $xoopsPathTrans, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsPathTrans); } - $mm->setRewrite('XOOPS_CHECK_PATH', strcasecmp( substr($xoopsPathTrans, 0, strlen(XOOPS_ROOT_PATH)), $_POST['root_path']) ? 0 : 1 ); + + if (defined(XOOPS_ROOT_PATH)) { + $mm->setRewrite('XOOPS_CHECK_PATH', strcasecmp( substr($xoopsPathTrans, 0, strlen(XOOPS_ROOT_PATH)), $_POST['root_path']) ? 0 : 1 ); + } + else { + $mm->setRewrite('XOOPS_CHECK_PATH', 0); + } $ret = $mm->doRewrite(); if(! $ret){