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;
};
$pdo1 = $conn->prepareQuery();
$stmt1 = $pdo1->prepare("SELECT p_uri FROM $table_img WHERE p_shortcode=:shortcode LIMIT 1");
$stmt1->bindValue(':shortcode', $shortcode, PDO::PARAM_STR);
$stmt1->execute();
$rows1 = $stmt1->fetchAll(PDO::FETCH_ASSOC);
$p_uri = trim($rows1[0]["p_uri"]);
$newPicMD5 = md5(trim($p_uri)."MultiMillionairesBy2018");
$htmlcode .= <<$headline_print
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);
?>