secureString($_REQUEST['lyrics']))); $title_tag = substr($searchQuery, 0, 50) . " Youtube MP3"; $mein_text = ""; $searchTitle = trim(preg_replace("/\([^)]+\)/","", $searchQuery)); $searchTitle = preg_replace('/\W/',' ', $searchTitle); $searchTitle = $function->secureString($searchTitle); $maxResults = $config->lyrics_search_count(); $SongtextRawContent = $search->SphinxSongtextSearch( $searchTitle, $maxResults ); $cache_uri = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $count = count($SongtextRawContent); if ( $count <= 1 || !is_numeric($count) ){ $robots = "NOINDEX,FOLLOW"; } elseif ( $count > 1 && is_numeric($count)) { $robots = "INDEX,FOLLOW,ALL"; }; $mein_text .= << END; for ( $ArrayCount=0; $ArrayCount<=count($SongtextRawContent) - 1; $ArrayCount++ ) { list( $songtext_title,$songtext_artist,$songtext_content ) = explode('#####', $SongtextRawContent[$ArrayCount] ); $songtext_content = preg_replace('#()+#i', "
", $songtext_content); # $songtext_content = preg_replace('#(
\s*)+#i', "
", $songtext_content); # $lang = $function->GetLanguageFromString($songtext_content); $duration = $function->getDuration($songtext_title); $songtext_content = $function->clearUTF($songtext_content); $songtext_content = str_ireplace($searchQuery, "" . $searchQuery . "", $songtext_content); $songtext_content = $function->autolink($songtext_content, array("target"=>"_blank","rel"=>"nofollow")); $searchQueryString = strtolower(str_replace(" ","+",trim($searchQuery))); $searchsongtext_title = strtolower(str_replace(" ","+",trim($songtext_title))); if ( $ArrayCount == 0 ){ $mein_text .= <<
  • $songtext_artist - Songtext $songtext_title Lyrics und Liedtexte

    $duration

    $songtext_content




  • END; } else { $mein_text .= <<

    $songtext_artist - Songtext $songtext_title Lyrics und Liedtexte

    $duration

    $songtext_content


    END; } } // for ( $ArrayCount=0; $mein_text .= <<Google+ Profil - END; $content = array_merge( array('title_html_de'=>"$title_tag"), array('robots'=>"$robots"), array('yt_title'=>"$searchQuery als Songtext ansehen, drucken und teilen"), array('content'=>"$mein_text"), array('description_de'=>"$title_tag"), array('keyword_de'=>"$searchQuery"), array('canonical_tag'=>"http://".$cache_uri) ); $design->setPath( $config->getTemplatePath('index_page') ); $design->display_cache('suche_songtext_de', $content, true, 3600*24*3); $log->logQuerys( $searchQuery ); exit(0); ?>