<?php
/*
 ########################################################################
#                                                                        #
#           Version 4       /                        /   /               #
#          -----------__---/__---__------__----__---/---/-               #
#           | /| /  /___) /   ) (_ `   /   ) /___) /   /                 #
#          _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___               #
#                       Free Content / Management System                 #
#                                   /                                    #
#                                                                        #
#                                                                        #
#   Copyright 2005-2006 by webspell.org                                  #
#                                                                        #
#   visit webSPELL.org, webspell.info to get webSPELL for free           #
#   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
 ########################################################################
*/

$ergebnis=safe_query("SELECT * FROM ".PREFIX."articles WHERE saved='1' ORDER BY date DESC LIMIT 0,$latestarticles");
echo'<table width="100%" cellspacing="4" cellpadding="0">';
while($ds=mysql_fetch_array($ergebnis)) {
    $date=date("d.m", $ds[date]);
	$time=date("H:i", $ds[date]);
	$title=$ds[title];
 
    if(strlen($title)>$maxheadlinechars) {
	    $title=substr($title, 0, $articleschars);
		$title.='..';
	}
	
	eval ("\$sc_articles = \"".gettemplate("sc_articles")."\";");
    echo $sc_articles;
}
echo'</table>';
?>
