选择文件名文件大小最后修改时间操作
[📄] 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
查看 search.php - 文件管理器
👁 查看:search.php
路径:/virtual/bigbrother/public_html/edream-c.com/xoops_trust_path/modules/bulletin/search.php
大小:2.46 KB · 修改:2013-09-08 03:00:14 · 权限:0644 · 可写
<?php

eval( '
function '.$mydirname.'_global_search( $keywords , $andor , $limit , $offset , $userid )
{
	return bulletin_search_base( "'.$mydirname.'" , $keywords , $andor , $limit , $offset , $userid ) ;
}
' ) ;

if( ! function_exists( 'bulletin_search_base' ) ) {
//ver3.0
include_once XOOPS_TRUST_PATH."/modules/bulletin/class/bulletingp.php";

function bulletin_search_base( $mydirname , $queryarray , $andor , $limit , $offset , $userid ){
	global $xoopsDB;

	$showcontext = isset( $_GET['showcontext'] ) ? $_GET['showcontext'] : 0 ;
	if( $showcontext == 1 && function_exists('search_make_context')){
		$sql = "SELECT storyid,uid,title,published,hometext,bodytext,html,smiley FROM ".$xoopsDB->prefix($mydirname."_stories")." WHERE published > 0 AND published <= ".time()." AND (expired = 0 OR expired >= ".time()." )";
	}else{
		$sql = "SELECT storyid,uid,title,published FROM ".$xoopsDB->prefix($mydirname."_stories")." WHERE published > 0 AND published <= ".time()." AND (expired = 0 OR expired >= ".time()." )";
	}
//ver3.0
	$gperm =& BulletinGP::getInstance($mydirname) ;
	$can_read_topic_ids = $gperm->makeOnTopics('can_read');
	$sql .= " AND topicid IN (".implode(',',$can_read_topic_ids).")";

	if ( $userid != 0 ) {
		$sql .= " AND uid=".$userid." ";
	}
	// because count() returns 1 even if a supplied variable
	// is not an array, we must check if $querryarray is really an array
	if ( is_array($queryarray) && $count = count($queryarray) ) {
		$sql .= " AND ((hometext LIKE '%$queryarray[0]%' OR bodytext LIKE '%$queryarray[0]%' OR title LIKE '%$queryarray[0]%')";
		for($i=1;$i<$count;$i++){
			$sql .= " $andor ";
			$sql .= "(hometext LIKE '%$queryarray[$i]%' OR bodytext LIKE '%$queryarray[$i]%' OR title LIKE '%$queryarray[$i]%')";
		}
		$sql .= ") ";
	}
	$sql .= "ORDER BY published DESC";
	$result = $xoopsDB->query($sql,$limit,$offset);
	$ret = array();
	$i = 0;

	$myts =& MyTextSanitizer::getInstance();


 	while($myrow = $xoopsDB->fetchArray($result)){
		$ret[$i]['image'] = 'images/forum.gif';
		$ret[$i]['link']  = 'index.php?page=article&amp;storyid='.$myrow['storyid'];
		$ret[$i]['title'] = $myrow['title'];
		$ret[$i]['time']  = $myrow['published'];
		$ret[$i]['uid']   = $myrow['uid'];
		if( !empty( $myrow['hometext'] ) ){
			$context = $myrow['hometext'].$myrow['bodytext'];
			$context = strip_tags($myts->displayTarea(strip_tags($context),$myrow['html'],$myrow['smiley'],1));
			$ret[$i]['context'] = search_make_context($context,$queryarray);
		}
		$i++;
	}
	return $ret;
}

}
?>
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ