prefix('newblocks'); $module_dir = XOOPS_ROOT_PATH . '/modules/' . $mydirname; $sql = "SELECT bid FROM $block_tbl WHERE (func_file LIKE '$func_file') AND (options LIKE '$options_string')"; $result = $xoopsDB->query($sql, 0, 0); if ($xoopsDB->getRowsNum($result) > 0){ $row = $xoopsDB->fetchArray($result); $block_id = $row['bid']; } return $block_id; } function block_render($mydirname) { $block_theme_file = get_block_file_path($mydirname,$block_render_file_name); require_once $block_theme_file; $block = recent_comments_block($options); require_once $mydirpath.'/include/xoops_block_cache.php'; $my_name = basename( __FILE__ ); $blockID =get_block_id($mydirname,$my_name,$options); xpress_block_cache_write($mydirname,$block_render_file_name. $blockID, $block); } ?>