prepareQuery(); $table = $config->sql_tablename_publish_de(); $table_img = $config->sql_tablename_pictures(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $picpath = $config->picture_storepath(); $maxPageCount = $config->index_max_results(); $page = $func->stripHtml($_REQUEST['p']); $deviceTypeMobile = $detect->isMobile(); $deviceTypeTablet = $detect->isTablet(); if (!is_numeric($page) || !isset($page) || empty($page) || strlen($page) <= 0 ){ $page = 0; } $imageRetArray = $func->getScreenResolutionFromUA(); $x = $imageRetArray["x"]; $y = $imageRetArray["y"]; $fontsize = $imageRetArray["fontsize"]; $picQuality = $imageRetArray["picQuality"]; $CurrentPage = $page; $PageNext = $CurrentPage + 1; $PageBack = $CurrentPage - 1; $vor = "https://www.buzzerstar.com/?p=$PageNext"; $zurck = "https://www.buzzerstar.com/?p=$PageBack"; if ( $PageBack <= 0 ) { $PageBack = 0; $zurck = "/"; }; $page_html = "
<<< -"; $myrowbreakupcount = 1; for ($i=1; $i<=5; $i++){ if ($i == $page ){ $page_html .= "[$i]-"; } else { $page_html .= "$i-"; } } //$page_html .= " Nächste Seite
"; //$page_html = substr($page_html, 0, -38).""; $page_html .= " >>> "; $from = ( $maxPageCount * $page ); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT $from, $maxPageCount;"); $stmt->execute(); $myRowCount = $stmt->rowCount(); if ( $myRowCount >= 1 ){ $robots = "INDEX,FOLLOW,ALL"; } else { $robots = "NOINDEX,NOFOLLOW"; } $all_row_count = 0; $row_count = -1; $pre_html = '
'; $aft_html = '
'; $content_html .= $pre_html; $h_tag_open = '

'; $h_tag_close = '

'; $firstCount = 0; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $row_count++; $all_row_count++; $shortcode = ""; $headline = $rows["p_headline"]; $article = $rows["p_articletext"]; $author = $rows["p_authorname"]; $backlink = $rows["p_sourcelink"]; $shortcode = $rows["p_shortcode"]; $category_id = $rows["p_category"]; $pic_descr = $rows["p_picture_1_description"]; $catg_array = $config->array_category(); $category = $catg_array[$category_id]; $list_time = explode(" ",trim($rows["p_timestamp"])); $timestamp = $list_time[0]." um ".$list_time[1] ." Uhr"; $linkingcode = "https://www.buzzerstar.com/".$func->makeArticleLink($shortcode); $list = preg_split("/[!?.]/", $article, -1, PREG_SPLIT_NO_EMPTY); // $list = explode(". ", $article); $first_nine_link = <<