Minahito
minah****@users*****
2006年 11月 9日 (木) 19:31:20 JST
Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.8.19.2.6 xoops2jp/html/include/functions.php:1.2.8.19.2.7 --- xoops2jp/html/include/functions.php:1.2.8.19.2.6 Wed Nov 8 19:14:42 2006 +++ xoops2jp/html/include/functions.php Thu Nov 9 19:31:20 2006 @@ -1,5 +1,5 @@ <?php -// $Id: functions.php,v 1.2.8.19.2.6 2006/11/08 10:14:42 minahito Exp $ +// $Id: functions.php,v 1.2.8.19.2.7 2006/11/09 10:31:20 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -27,6 +27,9 @@ // ################## Various functions from here ################ +/** + * @deprecated see RequestObject + */ function xoops_getrequest($name) { if (!isset($_REQUEST[$name])) { @@ -598,9 +601,16 @@ } $name = (!isset($name)) ? $module_dir : trim($name); if (!isset($handlers[$module_dir][$name])) { - if ( file_exists( $hnd_file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/class/{$name}.php" ) ) { + // + // Cube Style + // + if (file_exists($hnd_file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/class/handler/" . ucfirst($name) . ".class.php")) { + include_once $hnd_file; + } + elseif ( file_exists( $hnd_file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/class/{$name}.php" ) ) { include_once $hnd_file; } + $className = ucfirst(strtolower($module_dir)) . "_" . ucfirst($name) . 'Handler'; if (class_exists($className)) { $handlers[$module_dir][$name] =& new $className($GLOBALS['xoopsDB']);