<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1); 
function loadDirSimple($dir,$ext,$type) { // 1D array
	$stuff = array();
	if (is_dir($dir) && is_readable($dir)) {
		$handle=opendir($dir);
		while (($file = readdir($handle))!==false) {
			if ( ($ext=="" || preg_match("/".$ext."$/",$file)) && $file!=".." && $file!=".") {
				if (($type=="f" && is_file($file)) || ($type=="d" && is_dir($file))) {
					$stuff[] = "$file";
				}
			}
		}
		closedir($handle);
	}
	return $stuff;
}
?>
<?php
$thisDir = preg_replace("#(.+/)([^/]+$)#","$1",$_SERVER["SCRIPT_URL"]);

$cnt = 0;

$files = array_merge(loadDirSimple("./",".*","f"), loadDirSimple("./",".*","d"));

if (sizeof($files)>0) { ?>
<head>
<title>Linux Tools Downloads</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../index.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="http://eclipse.org/favicon.ico" type="image/x-icon" /> 
</head>
<body>
<h1><a href="http://www.eclipse.org/linuxtools">Eclipse Linux Tools</a> Source Tarballs</h1>
<?php
$directDownloadPrefix = "http://download.eclipse.org";
$downloadPrefix = "http://www.eclipse.org/downloads/download.php?file=";
$downloadDotEclipseServer = preg_match("#download.eclipse.org#",$_SERVER["DOCUMENT_ROOT"]) || preg_match("#download.eclipse.org#",$_SERVER["SERVER_NAME"]) || preg_match("#download.eclipse.org#",$_SERVER["SCRIPT_URI"]);
?>

<table>
<tr class="h"><td><h1 class="p">7.6.0 Source Tarball</h1></td><td><h1 class="p">MD5</h1></td></tr>
<?php
sort($files);
foreach ($files as $file) {
	$cnt++;
 	if ($file != ".htaccess" && false===strpos($file,"index.") && $file != "CVS")
 	{
   		echo '<tr><td> &#149; <a href="http://www.eclipse.org/downloads/download.php?file=/linuxtools/7.6.0-sources/' . $file . '">' . $file. '</a></td><td>'.md5_file($file).'</td></tr>';
 	}
}
?>
</table>

<br/>

<?php
} else {
	echo "No files found!";
}
?>
<br>
<h3>Older releases are available in the <a href="http://archive.eclipse.org/linuxtools/"> Eclipse.org archives</a>.</h3>
</body>
</html>
