$start_page = microtime(true); header('Content-Type: text/html; charset=UTF-8'); require_once('_includes/init.php'); if ($printMode = isset($_REQUEST['print'])) { $template = new template($db, $lang, 'print'); } else { $template = new template($db, $lang, DEFAULT_TEMPLATE); } if (DATABASE_CONNECTED) { if ((!isset($_REQUEST['oldal']) || empty($_REQUEST['oldal'])) && isset($_REQUEST['id'])) { if (($content = LoadContentByID($db, $lang, $_REQUEST['id'])) !== false) { $template->SetMetaData(GetMetaData($db, $lang, 1, $content->id)); // // Replace template - if needed if (!empty($content->template) && !$printMode) $template->LoadTemplate($content->template); // // Show the content regardless of it's actual type/content $template->OnContent($content->DisplayHTML($printMode)); if (!$printMode && check_right(USER_PUBLISHER)) { //echo '
| id}\" class=\"textbutton\">##Edit## | ##NewContent## | "); if(!$content->archived) $template->OnContent("id}\" class=\"textbutton\">##ToArchive## | "); $template->OnContent('
| ##NewContent## |
%3$s
'; $template->OnContent(sprintf( $print, format_date($row['StartFMT']), $row['Caption'], $intro, make_content_url($row) )); } while (($row = $rs->Fetch()) !== FALSE); } else { $template->OnContent("
Ebben a kategóriában nincsen megjeleníthető tartalom
\n"); } $template->OnContent("