"; echo "

$file
"; } else { if(substr($file,-4)!=".htm" && substr($file,-5)!=".php" ){ echo "ERROR: ONLY html o htm FILES"; CloseTable(); } else { include ($file); } } CloseTable(); include("footer.php"); ?>