<?php

include_once('../inc/html.php');
include_once('../inc/config.php');
include_once('../inc/database.php');
include_once('../inc/system.php');
$System = new System($Config);
$db = $System->Database;
$Html = new Html();

echo('SERVERALERT:'."\n");
$DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 30 DAY) ORDER BY Time DESC LIMIT 5');
while($Article = $DbResult->fetch_assoc())
{
  echo('> '.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n");
}

?>