Minahito
minah****@users*****
2006年 8月 24日 (木) 18:05:31 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.71 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.72 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.71 Mon Aug 21 19:01:35 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Aug 24 18:05:31 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Controller.class.php,v 1.1.2.71 2006/08/21 10:01:35 minahito Exp $ + * @version $Id: Legacy_Controller.class.php,v 1.1.2.72 2006/08/24 09:05:31 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -390,8 +390,10 @@ require_once XOOPS_ROOT_PATH.'/class/database/databasefactory.php'; - if ($_SERVER['REQUEST_METHOD'] != 'POST' || !xoops_refcheck(XOOPS_DB_CHKREF)) { - define('XOOPS_DB_PROXY', 1); + if ($this->mRoot->getSiteConfig('Legacy', 'AllowDBProxy') == true) { + if ($_SERVER['REQUEST_METHOD'] != 'POST' || !xoops_refcheck(XOOPS_DB_CHKREF)) { + define('XOOPS_DB_PROXY', 1); + } } $this->mDB =& XoopsDatabaseFactory::getDatabaseConnection();