include("config.php");
$fp = @fopen($datfile, 'r');
if($fp){
$array = explode("\n", fread($fp, filesize($datfile)));
}
else{
print "$datfile Does not exist, please check the location of {$datfile}!";
}
?>
if($meta_refresh == 1){
print "";
}
?>
SOVERATO WEB - NEWS
if($print_how_many == 1){
include("stats.txt");
}
if($printall == 1){
?>
TITOLI NEWS ONLINE SU SOVERATO WEB.COM
}
?>
if(isset($_GET['msg']))
print $_GET['msg'];
print "";
if($view == "desc"){
$bgcolor = true;
for($i=0;$i<=sizeof($array);$i++){
$atag = $array[$i];
if(strlen($atag) > 1){
print "";
if($bgcolor){
print "| $atag | ";
$bgcolor = false;
}
else{
print "$atag | ";
$bgcolor = true;
}
print "
";
}
}
}
else{
$bgcolor = true;
for($i=sizeof($array);$i>=0;$i--){
$atag = $array[$i];
if(strlen($atag) > 1){
print "";
if($bgcolor){
print "| $atag | ";
$bgcolor = false;
}
else{
print "$atag | ";
$bgcolor = true;
}
print "
";
}
}
}
print "
";
?>