Пример #1
0
// ライセンスのリストを取得
$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();
}

$lid = $downdata['lid']; ;
$cid4assign = $downdata['cid'];
$submitter = $downdata['submitter'];
$postname = $downdata['postname'];
$title4assign = $downdata['title'];
$hits = $downdata['hits'];
$totalrating = $downdata['totalrating'];
$totalvotes =  $downdata['totalvotes'] ;