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(); $stmt = $pdo->prepare("SELECT * FROM $table WHERE id>=0 AND p_isonline=1 ORDER BY p_timestamp DESC LIMIT 0, 5;"); $stmt->execute(); $added_content = ""; while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $headline = $rows["p_headline"]; $tags = $rows["p_tags"]; $shortcode = $rows["p_shortcode"]; $linkingcode = "https://blog.onetopp.com/".$func->makeArticleLink($shortcode); $added_content .=<< $headline END; }; // while($rows = $stmt->fetch(PDO::FETCH_ASSOC)) { $content = array_merge( array('HtmlPageContent'=>$added_content) ); $design->setPath("/home/www/www.onetopp.com/tpl"); $HtmlOutputDesign = $design->display_cache('index', $content, false, false, 3600*3); $htmlMinified = $minObj->minifyHTML($HtmlOutputDesign); echo $htmlMinified; $logs->logQuerys("OneTOPP Startpage"); exit(0);