$id = isset( $_GET['lid'] ) ? intval( $_GET['lid'] ) : 0 ; // 編集可能なカテゴリリストのみ取得 if( $module_admin ) $category = d3download_categories_selbox( $mydirname, $whr_cat4edit ); else $category = d3download_categories_selbox( $mydirname, $whr_cat4edit, $cid ); // 利用可能な OS/ソフト等のリストを取得 $submit_download = new submit_download( $mydirname ) ; $select_platform = $submit_download->Select_Platform() ; // ライセンスのリストを取得 $select_license = $submit_download->Select_License() ; // スクリーンショット画像の取得 $canuseshots = $submit_download->can_useshots() ; $usealbum = $submit_download->can_albumselect() ; if( ! empty( $canuseshots ) ){ $shots_dir = d3download_shots_dir( $mydirname, $cid ); $img_ar = $submit_download->shots_img_ar( $cid, $shots_dir ); if( empty( $usealbum ) ) $shots_help = sprintf( _MD_D3DOWNLOADS_SUBMIT_LOGOURL_DESC , $shots_dir ); } // GET DOWNLOADDATA $mod_url = XOOPS_URL.'/modules/'.$mydirname ; $downdata = $submit_download->get_downdata_for_submit( $id, $category ) ; // DOWNLOADDATA を取得できない場合リダイレクト if( empty( $downdata ) ) { redirect_header( XOOPS_URL."/modules/$mydirname/" , 2 , _MD_D3DOWNLOADS_NOMATCH ) ; exit(); }
function d3download_can_albumselect( $mydirname, $myalbum_dirname='' ) { include_once dirname( dirname(__FILE__) ).'/class/submit_download.php' ; $submit_download = new submit_download( $mydirname ) ; return $submit_download->can_albumselect( $myalbum_dirname ) ; }