"Oregon, USA via HTTP", // "ftp://ftp.easysw.com/pub" => "Oregon, USA via FTP", // "http://ftp2.easysw.com/pub" => "Maryland, USA via HTTP", "ftp://ftp2.easysw.com/pub" => "Maryland, USA via FTP", "ftp://ftp3.easysw.com/pub" => "California, USA via FTP", "http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub" => "Espoo, Finland via HTTP", "ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub" => "Espoo, Finland via FTP", ); // Get the list of software files... $fp = fopen("data/software.md5", "r"); $files = array(); while ($line = fgets($fp, 255)) $files[sizeof($files)] = trim($line); fclose($fp); // Get form data, if any... if (array_key_exists("FILE", $_GET)) $file = $_GET["FILE"]; else $file = ""; if (array_key_exists("SITE", $_GET)) { $site = $_GET["SITE"]; setcookie("SITE", $site, time() + 90 * 86400, "/"); } else if (array_key_exists("SITE", $_COOKIE) && array_key_exists($_COOKIE["SITE"], $sitelist)) $site = $_COOKIE["SITE"]; else $site = ""; if (array_key_exists("VERSION", $_GET)) $version = $_GET["VERSION"]; else { $data = explode(" ", $files[0]); $version = $data[1]; } // Show the standard header... if ($site != "" && $file != "") html_header("Download", "", "$site/$file"); else html_header("Download"); html_start_links(1); $curversion = ""; for ($i = 0; $i < sizeof($files); $i ++) { // Grab the data for the current file... $data = explode(" ", $files[$i]); $fversion = $data[1]; if ($fversion != $curversion) { $curversion = $fversion; html_link("v$fversion", "$PHP_SELF?VERSION=$fversion"); } } html_link("Subversion", "$PHP_SELF#SVN"); html_end_links(); print("
Your download should begin shortly. If not, please " ."click here to download the file " ."from the current mirror.
\n" ."Please select a mirror site below to begin the download.
\n" ."The $PROJECT_NAME software is available via Subversion " ."using the following URL:
\n" ."\n" ." " ."http://svn.easysw.com/public/$PROJECT_MODULE/\n" ."\n" ."
The following command can be used to checkout the current " ."$PROJECT_NAME source from Subversion:
\n" ."\n" ." svn co http://svn.easysw.com/public/$PROJECT_MODULE/trunk/ $PROJECT_MODULE\n" ."\n"); } // Show the standard footer... html_footer(); // // End of "$Id$". // ?>