Beispiel #1
0
$download = $category4assin = $submitter_select = $moveselect = $copy_select = $message = $errors = array() ;
$error_message = '' ;

$file_manager = new file_manager( $mydirname ) ;

// GET CATEGORY LIST
$category4assin = d3download_categories_selbox( $mydirname, '', 0, 1, 1, 'ALL' ) ;

if( ! empty( $_POST['category_select'] ) ) $category_select = intval( $_POST['category_select'] );
elseif( ! empty( $_GET['cid'] ) ) $category_select = intval( $_GET['cid'] );
else $category_select = 0 ;

$invisible = isset( $_GET['invisible'] ) ? intval( $_GET['invisible'] ) : 0 ;

// GET SUBMITTER LIST
$submitter_select = $file_manager->submitter_select_box( '', 1 ) ;

$mypost = ( isset( $_POST['sel_submitter'] ) || isset( $_GET['mypost'] ) ) ? 1 : 0 ;
if( ! empty( $_POST['submitter'] ) ) $submitter = intval( $_POST['submitter'] ) ;
elseif( ! empty( $_GET['submitter'] ) ) $submitter = intval( $_GET['submitter'] ) ;
else $submitter = 0 ;

$select_intree = d3download_select_intree() ;
$intree = ( ! empty( $_POST['intree'] ) || ! empty( $_GET['intree'] ) ) ? 1 : 0 ;

$select_perpage = d3download_select_perpage( $mydirname ) ;
$list_order = d3download_select_order() ;
$select_order = d3download_selected_order( $mydirname ) ;

$current_start = isset($_GET['start']) ? intval( $_GET['start'] ) : 0 ;
$perpage4assign = d3download_items_perpage();