".$l['admin']['section_weblog']." | ".$l['admin']['section_page']."";
$where = "section = 'page'";
}
else {
$show_section = "".$l['admin']['section_weblog']." | ".$l['admin']['section_page']."";
$where = "YEAR(date) = '".escape_for_mysql($yl->get_selected_year())
."' AND section = 'weblog'";
$year_menu = "
".$yl->get_admin_linklist()."
\n";
}
$c['meta']['title'] = $l['admin']['index_headline'];
$c['main'] .= output_admin_menu()."
".$l['admin']['admin_headline']."
»» ".$l['admin']['new_post']."
".$l['admin']['section_show'].": ".$show_section."
".$year_menu."
".$l['admin']['change']." |
".$l['admin']['delete']." |
".$l['admin']['date']." |
".$l['admin']['headline']." |
";
$sql = "SELECT
id,
date as mysql_date,
UNIX_TIMESTAMP(date) AS date,
topic
FROM ".JLOG_DB_CONTENT."
WHERE ".$where."
ORDER BY mysql_date DESC;";
$blog = new Query($sql);
if($blog->error()) {
echo "\n";
echo $blog->getError();
echo "
\n";
die();
}
while ($daten = $blog->fetch()) {
$list = "
 |
 |
".strftime(JLOG_DATE_SUBCURRENT, $daten['date'])." |
".htmlspecialchars($daten['topic'], ENT_QUOTES)." |
";
### Plugin Hook
$c['main'] .= $plugins->callHook('adminList', $list, $daten);
}
$c['main'] .= "
";
require(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'do_template.php');
echo $body;
// eof