Beispiel #1
0
$module =& $module_handler->getByDirname( $mydirname ) ;
$moduleperm_handler =& xoops_gethandler( 'groupperm' ) ;
$mid = $module->getVar('mid') ;
if( ! is_object( @$xoopsUser ) || ! $moduleperm_handler->checkRight( 'module_admin' , $mid , $xoopsUser->getGroups() ) ) {
	die( 'Only administrator can use this feature.' ) ;
}

$iserror = 0 ;
$category = $errors = $moveselect = $message = array() ;
$error_message = '' ;

$mycategory = new MyCategory( $mydirname, 'Show' ) ;
$user_access = new user_access( $mydirname ) ;

// ページナビの処理
$total = $mycategory->category_sum() ;
$select_perpage = d3download_select_perpage( $mydirname ) ;
$current_start = isset($_GET['start']) ? intval( $_GET['start'] ) : 0 ;
$perpage4assign = d3download_items_perpage();

require_once XOOPS_ROOT_PATH.'/class/pagenav.php' ;
$pagenav = new XoopsPageNav( $total, $select_perpage, $current_start, 'start', 'page=categorymanager&perpage='.$select_perpage );
$pagenav4assign = $pagenav->renderNav( 10 ) ;

// GET CATEGORYLIST
$category = $mycategory->get_categorylist( $select_perpage, $current_start ) ;
$sitemap = $mycategory->sitemap( 'admin/index.php?page=categoryedit' ) ;

// TITLE & WEIGHT UPDATE
if( ! empty( $_POST['category_update'] ) && ! empty( $_POST['weights'] ) ) {
	if ( ! $xoopsGTicket->check( true , 'd3downloads' ) ) {