$mod_url = XOOPS_URL.'/modules/'.$mydirname ; if( $module_admin ){ $invisible_num = $mydownload->Invisible_Num( $cid, $intree ) ; $xoopsTpl->assign( 'invisible_num' , $invisible_num['num'] ) ; $xoopsTpl->assign( 'invisible_link' , $invisible_num['link'] ) ; } // 閲覧可能なカテゴリのリストを SELECTボックス用に取得 $category4assin = d3download_makecache_for_selbox( $mydirname, $whr_cat, 0, 1 ) ; // 閲覧可能な登録データを取得 if( empty( $cid ) && empty( $mypost ) ){ $limit = $xoopsModuleConfig['newdownloads'] ; $download4assign = $mydownload->get_downdata_for_topview( $whr_cat4read, $limit ) ; } else { $download4assign = $mydownload->get_downdata_for_catview( $cid, $whr_cat4read, $orderby, $select_perpage, $current_start, $submitter, $mypost, $intree ) ; } $lang_directcatsel = _MD_D3DOWNLOADS_SEL_CATEGORY; // スクリーンショット画像を使用するかどうか $canuseshots = ! empty( $xoopsModuleConfig['useshots'] ) ? 1 : 0 ; // 投稿可能なカテゴリリストのみ取得 $category4post = d3download_categories_selbox( $mydirname, $whr_cat4post ) ; if( ! empty( $_POST['file_post'] ) && ! empty( $_POST['category_select'] ) ) { $post_cid = intval( $_POST['category_select']) ; redirect_header( XOOPS_URL."/modules/$mydirname/index.php?page=submit&cid=$post_cid", 2, _MD_D3DOWNLOADS_REDIRECT_NEWSUBMIT ) ; exit ; }