function d3download_canread_info( $mydirname, $cid ) { include_once dirname(dirname(__FILE__)).'/class/user_access.php' ; $user_access = new user_access( $mydirname ) ; return $user_access->canread_info( $cid ) ; }
$select_intree = d3download_select_intree(); $xoopsTpl->assign( 'select_intree' , $select_intree ) ; $xoopsTpl->assign( 'intree', $intree ); // カテゴリ毎の登録件数を取得 $total = $mydownload->Total_Num( $whr_cat, $cid, 0, 0, $intree ) ; $total_num = sprintf( _MD_D3DOWNLOADS_CATEGORY_NUM , $total ) ; // カテゴリーの説明を取得 $cat_description = d3download_cat_description( $mydirname, $cid ) ; $xoopsTpl->assign( 'cat_description', $cat_description ) ; // 管理者用に閲覧権限設定状況をアサイン if( $module_admin ){ $canread_info = $user_access->canread_info( $cid ) ; $group_trs = d3download_group_useraccess_info( $mydirname, $cid ) ; $user_trs = d3download_myuser_useraccess_info( $mydirname, $cid ) ; $useraccess_edit = d3download_useraccess_edit_info( $mydirname, $cid ) ; $xoopsTpl->assign( 'canread_info', $canread_info ) ; $xoopsTpl->assign( 'group_trs', $group_trs ) ; $xoopsTpl->assign( 'user_trs', $user_trs ) ; $xoopsTpl->assign( 'useraccess_edit', $useraccess_edit ) ; } // ページタイトルをアサイン include_once dirname( dirname(__FILE__) ).'/class/mycategory.php' ; $mycategory = new MyCategory( $mydirname, 'Show', $cid, $whr_cat ) ; $pagetitle4assign = $mycategory->return_title() ; // 閲覧できないカテゴリはリダイレクト