
Ich bin ein Newbi und hoffe sehr, dass mir jemand helfen kann.

Code: Alles auswählen
		$options = array ('db' => 'regexp', // use db function regexp
		'combine' => $combine, // combine searchterms with and
		'exclude' => false, // => searchrange specified in 'cat_tree', 'categories' and 'articles' is excluded, otherwise included (exclusive)
		'cat_tree' => $aSearchRange, // searchrange 
		'artspecs' => $aArtSpecs, // array of article specifications => search only articles with these artspecs
	'protected' => true); // => do not search articles or articles in categories which are offline or protected
Code: Alles auswählen
        // set the protected searchoption depending on authentificated user
        $protected = ($auth->auth["uid"] == "nobody") ? true : false;
        $options = array (
            'db' => 'regexp', // use db function regexp
            'combine' => $combine, // combine searchterms with and
            'exclude' => false, // => searchrange specified in 'cat_tree', 'categories' and 'articles' is excluded, otherwise included (exclusive)
            'cat_tree' => $aSearchRange, // searchrange 
            'artspecs' => $aArtSpecs, // array of article specifications => search only articles with these artspecs
            'protected' => $protected, // flag to search articles in categories which are protected
            'dontshowofflinearticles' => true // flag to not search in oflline articles
        );