选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
getByDirname($mydirname); $config_handler =& xoops_gethandler('config'); $configs = $config_handler->getConfigList( $module->mid() ) ; // check xmobile or not $is_xmobile = false ; if( function_exists( 'debug_backtrace' ) && ( $backtrace = debug_backtrace() ) ) { if( strstr( $backtrace[2]['file'] , '/xmobile/actions/' ) ) { $is_xmobile = true ; } } // XOOPS Search module $showcontext = empty( $_GET['showcontext'] ) ? 0 : 1 ; // where by uid if( ! empty( $uid ) ) { if( empty( $configs['search_by_uid'] ) ) { return array() ; } $whr_uid = 'o.poster_uid='.intval($uid) ; } else { $whr_uid = '1' ; } // where by keywords if( is_array( $keywords ) && count( $keywords ) > 0 ) { switch( strtolower( $andor ) ) { case "and" : $whr_kw = "" ; foreach( $keywords as $keyword ) { $whr_kw .= "(`for_search` LIKE '%$keyword%') AND " ; } $whr_kw .= "1" ; break ; case "or" : $whr_kw = "" ; foreach( $keywords as $keyword ) { $whr_kw .= "(`for_search` LIKE '%$keyword%') OR " ; } $whr_kw .= "0" ; break ; default : $whr_kw = "(`for_search` LIKE '%$keywords[0]%')" ; break ; } } else { $whr_kw = 1 ; } $content_handler = new PicoContentHandler( $mydirname ) ; $contents4assign = $content_handler->getContents4assign( "($whr_kw) AND ($whr_uid)" , 'created_time DESC' , $offset , $limit , false ) ; $ret = array() ; foreach( $contents4assign as $content ) { // get context for module "search" if( function_exists( 'search_make_context' ) && $showcontext && $content['can_readfull'] ) { $full_context = strip_tags( @$content['body_cached'] ) ; if( function_exists( 'easiestml' ) ) $full_context = easiestml( $full_context ) ; $context = search_make_context( $full_context , $keywords ) ; } else { $context = '' ; } $ret[] = array( 'image' => '' , 'link' => $is_xmobile ? 'index.php?cat_id='.$content['cat_id'].'&content_id='.$content['content_id'] : pico_common_make_content_link4html( $configs , $content ) , 'title' => $content['subject'] , 'time' => $content['created_time'] , 'uid' => empty( $configs['search_by_uid'] ) ? 0 : $content['poster_uid'] , 'context' => $context , ) ; } return $ret ; } } ?>