stripHtml($_REQUEST['q'])); //$SearchContent = $search->SphinxSearch( "*$searchquery*" ); $SearchContent = $search->SphinxSearch( $searchquery ); /* echo "Search for: $searchquery
"; print_R($SearchContent); exit; */ $sCount = count($SearchContent); $htmlcode = "$sCount Suchergebnisse: "; if ( $sCount <= 0){ exit(0); }; /**/ $GoogleWerbungString =<< END; $AdvertismentCode = <<$GoogleWerbungString LIST; $AdvertismentCode = ""; for ( $ArrayCount=0; $ArrayCount<=($sCount - 1); $ArrayCount++ ) { list( $headline,$shortcode,$undef,$pic_desc) = explode('#####', $SearchContent[$ArrayCount] ); $shortcode = trim($shortcode); $headline = trim($headline); $pic_desc = trim($pic_desc); $headline_raw = $headline; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); //$headline_print = $headline; // substr($headline,0,55).' ...'; //$headline_print = wordwrap( $headline, 55, "
\n" ); $headline_print = str_ireplace($searchquery, " ".ucfirst($searchquery)."  ", $headline); if ($ArrayCount==2){ $htmlcode .= $AdvertismentCode; }; $htmlcode .= <<$headline_print$pic_desc LIST; } // for ( $ArrayCount=0; $ArrayCount<=count($SearchContent) - 1; $ArrayCount++ ) { $content = array_merge( array('htmlcode'=>$htmlcode), array('searchtitle',$searchquery) //array('USER_ID'=>$GoogleUserID) ); $design->setPath("/home/www/wwwbuzzerstar/tplv3/"); $HtmlOutputDesign = $design->display('search_adv', $content); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); //$cache->set("INDEXPAGE".$page, $htmlMinified,3600*3); echo $htmlMinified; $logs->logQuerys("SEARCHFIELD"); exit(0); ?>