$finaltime = time(); } $records = array(); $records[0] = array('blogid' => $blogid, 'title' => $title, 'pubtime' => $finaltime, 'authorid' => $currentuserid, 'replies' => 0, 'tbs' => 0, 'views' => 0, 'property' => $property, 'category' => $category, 'tags' => $tags, 'sticky' => $sticky, 'htmlstat' => $htmlstat, 'ubbstat' => $ubbstat, 'emotstat' => $emotstat, 'content' => $content, 'editorid' => 0, 'edittime' => 0, 'weather' => $sweather, 'mobile' => 0, 'pinged' => $pinged, 'permitgp' => '', 'starred' => $starred, 'blogpsw' => $blogpsw, 'frontpage' => $frontpage, 'entrysummary' => $entrysummary, 'comefrom' => $comefrom, 'originsrc' => $originsrc, 'blogalias' => $blogalias); } else { $order = $mbcon['replyorder'] == '0' ? "DESC" : "ASC"; $start_id = ($page - 1) * $mbcon['replyperpage']; $querycondition = $use_blogalias ? "`blogalias`='{$blogaliasp}'" : "`blogid`='{$itemid}'"; if ($permission['SeeHiddenEntry'] != 1) { $partialquery = "SELECT * FROM `{$db_prefix}blogs` WHERE {$querycondition} AND `property`<'2' LIMIT 0, 1"; $partialquery2 = "WHERE `property`<'2'"; } else { $partialquery = "SELECT * FROM `{$db_prefix}blogs` WHERE {$querycondition} AND `property`<'3' LIMIT 0, 1"; $partialquery2 = " WHERE property<'3'"; } $records = $m_b->single_record($partialquery, $partialquery2); } if (is_array($records)) { $itemid = $records[0]['blogid']; if ($is_save && $mbcon['txtdown'] == '1') { $m_b->save_a_text($records[0]); } else { $section_body_main = $m_b->make_viewentry($records[0]); } } else { getHttp404($lnc[186]); } //Load plugins $section_body_main[0] = plugin_get('entrybegin') . $section_body_main[0]; $section_body_main[] = plugin_get('commentbegin'); if ($records[0]['replies'] != 0 || $records[0]['tbs'] != 0) {