选择文件名文件大小最后修改时间操作
[📄] 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
prefix($mydirname."_photos")." l LEFT JOIN ".$db->prefix($mydirname."_text")." t ON t.lid=l.lid LEFT JOIN ".$db->prefix("users")." u ON u.uid=l.submitter WHERE status>0" ; if( $userid > 0 ) { $sql .= " AND l.submitter=".$userid." "; } $whr = "" ; if( is_array( $keywords ) && count( $keywords ) > 0 ) { $whr = "AND (" ; switch( strtolower( $andor ) ) { case "and" : foreach( $keywords as $keyword ) { $whr .= "CONCAT(l.title,' ',l.caption,' ',l.caption1,' ',l.caption2,' ',l.tel,' ',l.fax,' ',l.zip,' ',l.address,' ',t.description,' ',t.addinfo,' ',IFNULL(u.uname,''),' ',l.poster_name) LIKE '%$keyword%' AND " ; } $whr = substr( $whr , 0 , -5 ) ; break ; case "or" : foreach( $keywords as $keyword ) { $whr .= "CONCAT(l.title,' ',l.caption,' ',l.caption1,' ',l.caption2,' ',l.tel,' ',l.fax,' ',l.zip,' ',l.address,' ',t.description,' ',t.addinfo,' ',IFNULL(u.uname,''),' ',l.poster_name) LIKE '%$keyword%' OR " ; } $whr = substr( $whr , 0 , -4 ) ; break ; default : $whr .= "CONCAT(l.title,' ',l.caption,' ',l.caption1,' ',l.caption2,' ',l.tel,' ',l.fax,' ',l.zip,' ',l.address,' ',t.description,' ',t.addinfo,' ',IFNULL(u.uname,''),' ',l.poster_name) LIKE '%{$keywords[0]}%'" ; break ; } $whr .= ")" ; } $sql = "$sql $whr ORDER BY l.date DESC"; $result = $db->query( $sql , $limit , $offset ) ; $ret = array() ; $context = '' ; while( $myrow = $db->fetchArray($result) ) { // get context for module "search" if( function_exists( 'search_make_context' ) && $showcontext ) { $full_context = strip_tags( $myrow['description'] ) ; if( function_exists( 'easiestml' ) ) $full_context = easiestml( $full_context ) ; $context = search_make_context( $full_context , $keywords ) ; } $ret[] = array( "image" => "images/pict.gif" , "link" => "index.php?lid=".$myrow["lid"] , "title" => $myrow["title"] , "time" => $myrow["date"] , "uid" => $myrow["submitter"] , "context" => $context ) ; } return $ret; } } ?>