secureString( require_once( "/home/wwwbuzzerstar/library/Config.inc.php" ); require_once( "/home/wwwbuzzerstar/library/Functions.inc.php" ); require_once( "/home/wwwbuzzerstar/library/Connection.inc.php"); require_once( "/home/wwwbuzzerstar/library/SSDTube.php" ); require_once( "/home/wwwbuzzerstar/library/mobile/Mobile_Detect.php"); require_once( "/home/wwwbuzzerstar/library/Services.inc.php"); $service = new Service(); $detect = new Mobile_Detect(); $func = new Functions(); $config = new Config(); $design = new Template(); $conn = new Connection(); $SSDTube = new SSDTube(); $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $GoogleUserID = md5($_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR']); $deviceTypeMobile = $detect->isMobile(); $deviceTypeTablet = $detect->isTablet(); $status = ""; $article_shortcode = strtolower(trim($func->stripHtml($_REQUEST['a']))); // article shortcode $article_desc = $func->stripHtml($_REQUEST['d']); // article description $stmt = $pdo->prepare("SELECT * FROM $table WHERE p_shortcode=:shortcode LIMIT 1"); // AND p_online=1 $stmt->bindValue(':shortcode', $article_shortcode, PDO::PARAM_STR); $stmt->execute(); $shortcode_rowcount = $stmt->rowCount(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); $shortcode_rowcount; $update_time = date('c', strtotime($rows[0]["p_timestamp"])); $slidercontent = $rows[0]["p_slidercontent"]; $sliderExplode = explode(";", $slidercontent); $bildrechte = ""; $p_picture_copyrightholder = $func->autolink($rows[0]["p_picture1_copyrightholder"], array("target"=>"_blank", "rel"=>"nofollow")); $p_picture_copyrightlicense = $rows[0]["p_picture1_copyrightlicense"]; $p_picture_copyrightoriginal = $rows[0]["p_picture1_copyrightoriginal"]; $p_picture1_downloaded = $rows[0]["p_picture1"]; $sliderHTMLContent = ""; $slidercss = ""; //echo "Debug: article_shortcode=$article_shortcode
"; if ( strlen($article_shortcode) != 9 || empty($article_shortcode) || $shortcode_rowcount < 1 || !is_numeric($shortcode_rowcount) ){ header("HTTP/1.1 301 Moved Permanently"); header("Location: https://www.buzzerstar.com/"); exit; } elseif ( stripos($_SERVER['REQUEST_URI'], "show.php") !== FALSE ){ $gotofinalpage = "https://www.buzzerstar.com/".$func->makeArticleLink($article_shortcode); header("HTTP/1.1 301 Moved Permanently"); header("Location: $gotofinalpage"); exit; } else { // enable GZIP output //ob_start ("ob_gzhandler"); $seconds_to_cache = 2592000; $ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT"; header("Content-Type: text/html; charset=UTF-8"); header("Expires: $ts"); header('Cache-Control: public, max-age=2592000, pre-check=2592000'); header('X-UA-Compatible: IE=edge,chrome=1'); header("Pragma: cache"); //echo $_SERVER['HTTP_USER_AGENT']; //error_reporting(E_ALL); //ini_set('display_errors', '0'); } $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["x"]; $y = $imageRetArray["y"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; /* // BILDERRECHTE: bilder rechte ausgeben $bildrechte =<< Bildnachweis:

Urheber: $p_picture_copyrightholder - Bildlizenz: $p_picture_copyrightlicense - Original Bild: $p_picture_copyrightoriginal - Download von: $p_picture1_downloaded END; */ // SLIDER CONTENT /* */ if (count($sliderExplode)>=1&&strlen($slidercontent)>4){ /* $slidercss = << END; */ $sliderHTMLContent .= << END; for ($i=0;$i<=count($sliderExplode);$i++){ if (array_key_exists($i,$sliderExplode) && strlen($sliderExplode[$i]) > 4){ $myTable = $config->sql_tablename_pictures; $pdo23 = $conn->prepareQuery(); $stmt23 = $pdo23->prepare("SELECT p_title FROM $myTable WHERE p_shortcode=:shortcode LIMIT 1;"); $stmt23->bindValue(':shortcode', $sliderExplode[$i], PDO::PARAM_STR); $stmt23->execute(); $rows23 = $stmt23->fetchAll(PDO::FETCH_ASSOC); $p_imagedesc = $rows23[0]["p_title"]; $img_desc = $rows23[0]["p_title"]; if ( stripos($p_imagedesc, "http") !== false ){ $img_desc = $func->autolink($p_imagedesc, array("target"=>"_blank")); } else { $img_desc = $p_imagedesc; } // echo $stmt23->queryString; // var_dump($stmt23->errorInfo()); // var_dump($stmt23->errorCode()); $sliderHTMLContent .= <<

Beschreibung des Bildes: $p_imagedesc
Bildbeschreibung: $img_desc
END; } // if (array_key_exists($i,$sliderExplode)){ } // for ($i=0;$i<=count($sliderExplode);$i++){ $sliderHTMLContent .= <<

END; } // if (count($sliderExplode)>=2){ $hashtag = $rows[0]["p_hashtag"]; $category_id = $rows[0]["p_category"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; if (strlen($category)<=0){ $category="Entertainment"; }; $video_youtube_uri = $rows[0]["p_videolink"]; $SSDTube->identify($video_youtube_uri, true); $EmbeddedVideo = $SSDTube->embed(); $tumbnailVideoImg = $SSDTube->thumbnail_0_url; $video_duration = $func->getDuration(); $video_title = $SSDTube->title; $twitter = str_ireplace("@","",trim($rows[0]["p_twitterlink"])); $pp_link = trim($rows[0]["p_paypallink"]); $list_time = explode(" ",trim($rows[0]["p_timestamp"])); $timestamp = $list_time[0]." um ".$list_time[1] ." Uhr"; $list = explode(";",$rows[0]["p_tags"]); $headline = $rows[0]["p_headline"]; $articleURI = "https://www.buzzerstar.com/".$func->makeArticleLink($article_shortcode); $imageURI = "https://www.buzzerstar.com/i.php?s=$article_shortcode"; $p_articletext = $func->autolink($rows[0]["p_articletext"], array("target"=>"_blank","rel"=>"nofollow")); $sourcelink = trim($rows[0]["p_sourcelink"]); $hashtag = str_replace("#","",$hashtag); if (!empty($hashtag)){ $hashtag = "#".$hashtag; } else { $hashtag = ""; } $keywords_list = ""; $tagcode = << LIST; $entry_count = 0; foreach ($list as $entry23) { if (strlen($entry23)>1 && !empty($entry23)){ $language = $func->GetLanguageFromString($entry23); if (strlen($language)!=2){ $language = "de"; } $keywords_list .= "$entry23, "; if ($entry_count == 4 ){ $tagcode .= <<$entry23 LIST; } else { $tagcode .= <<$entry23 LIST; } }//if (strlen($entry23)>1){ $entry_count++; } $tagcode .= << LIST; $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger"; $sentences = array(); $sentences = preg_split("/[.]/", $p_articletext); for ($i=0; $i<=2; $i++){ $articlehead .= $sentences[$i].". "; } for ($i=3; $i<=count($sentences)-1; $i++){ $articletail .= trim($sentences[$i])."."; } $tmp_http_yt_video = $func->ogTagsYoutubeVideo($video_youtube_uri); ////////$MoreContentNavigation = $func->getNavigationContent($headline);//1 $MoreContentNavigation = $func->getNavigationContent(str_replace(',', ' | ', $keywords_list)." | ".$headline); //$MoreContentNavigation = $func->getNavigationContent(str_replace(',', ' | ', $keywords_list)." | ".$headline." | ".$p_articletext); // 1 //$MoreContentNavigation = $func->getNavigationContent("$p_articletext"); if ($deviceTypeMobile === TRUE && $deviceTypeTablet === FALSE ) { $shareButtons =<<Teile mit deinen Freunden:
Teile den Inhalt mit deinen WhatsApp Freunden   Teile den Inhalt mit deinen Facebook Freunden   Teile den Inhalt mit deinen Pinterest Freunden   Teile den Inhalt mit deinen Google Plus Freunden   Teile den Inhalt mit deinen Stumpleupon Freunden

END; } elseif ($deviceTypeMobile === FALSE || $deviceTypeTablet === TRUE ) { $shareButtons =<<Teile mit deinen Freunden:
Teile den Inhalt mit deinen Facebook Freunden   Teile den Inhalt mit deinen Pinterest Freunden   Teile den Inhalt mit deinen Google Plus Freunden   Teile den Inhalt mit deinen Stumpleupon Freunden

END; $shareholic_js =<< var addthis_config = { data_ga_property: 'UA-35911242-1', data_ga_social: true }; END; } // } elseif ($deviceTypeMobile === FALSE || $deviceTypeTablet === FALSE ) { $description_text = $func->clear_description($rows[0]["p_articletext"]); $LinkableCatgID = $config->category_to_show(); $category_content = '

END; //$headline = trim(substr($headline, 0, 70)); $title_tags = strip_tags($headline); $title_tags = str_replace('"',"",$headline); $amazon_tags = "berlin+tag+und+nacht;köln+50667;Apple;Samsung"; $amazon_tags = str_replace(' ',"+", $rows[0]["p_tags"]); $content = array_merge( array('title_tags'=>$title_tags), array('title'=>$headline), array('articleuri'=>$articleURI), array('image'=>$imageURI), array('keywords'=>"$keywords_list $category, BuzzerStar.com"), array('imagedesc'=>$rows[0]["p_picture_1_description"]), array('articletext'=>$p_articletext), array('articlehead'=>$articlehead), array('articletail'=>$articletail), array('articletags'=>$tagcode), array('twitter'=>$twitter), array('category'=>$category), array('copyright'=>$copy), array('author'=>$rows[0]["p_authorname"]), array('video'=>$EmbeddedVideo), array('sourcelink'=>$sourcelink), array('backlink'=>trim($rows[0]["p_backlink"])), array('timestamp'=>$timestamp), array('canonical'=>$articleURI), array('paypal'=>$paypalcode), array('videothumbnailimg'=>$tumbnailVideoImg), array('videoduration'=>$video_duration), array('videotitle'=>$video_title), array('description'=>"$description_text ... mit Video"), array('video_yt_beautify'=>str_replace("https", "http", $tmp_http_yt_video)), array('video_yt_beautify_ssl'=>$tmp_http_yt_video), array('update_timestamp'=>$update_time), array('url_urlencoded'=>urlencode($articleURI)), array('title_urlencoded'=>urlencode($headline)), array('share_this_content_buttons'=>$shareButtons), array('slider_css'=>$slidercss), array('slider_content'=>$sliderHTMLContent), array('breadcrumb_content'=>$category_content), array('bildrechte'=>$bildrechte), array('imagex'=>$x), array('imagey'=>$y), array('shareaholic_javascript'=>$shareholic_js), array('inlineCSS'=>$func->getInlineCSS()), array('more_content_menu_navigation'=>$MoreContentNavigation) ); $stmt = null; // doing this is mandatory for connection to get closed $pdo = null; $design->setPath( "/home/wwwbuzzerstar/tpl" ); $design->display_cache('show_article_de', $content, true, 3600*24*3); exit(0); ?>