Tue Mar 27 05:13:28 PDT 2007
- Previous message: [Slony1-commit] slony1-www/content news.txt
- Next message: [Slony1-commit] slony1-www index.php
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-www
In directory main.slony.info:/tmp/cvs-serv27148
Modified Files:
index.php
Log Message:
Add slony win32 files to download area. Restructured the download dir while I was at it. Source, rpm and win32 now have separate dirs.
Index: index.php
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/index.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** index.php 28 Feb 2007 21:13:48 -0000 1.8
--- index.php 27 Mar 2007 12:13:26 -0000 1.9
***************
*** 23,30 ****
if ($_GET["version"] == "1.1") $version = "1.1";
if ($_GET["version"] == "1.2") $version = "1.2";
if ($version == ""){
$path = './downloads/';
} else {
! $path = './downloads/'.$version.'/';
$sums = @file_get_contents($path.'MD5SUMS');
}
--- 23,39 ----
if ($_GET["version"] == "1.1") $version = "1.1";
if ($_GET["version"] == "1.2") $version = "1.2";
+ $platform = "";
+ if ($_GET["platform"]=="source") $platform = "source";
+ if ($_GET["platform"]=="win32") $platform = "win32";
+ if ($_GET["platform"]=="rpm") $platform = "rpm";
+
if ($version == ""){
$path = './downloads/';
} else {
! if (platform != "") {
! $path = './downloads/'.$version.'/'.$platform.'/';
! } else {
! $path = './downloads/'.$version.'/';
! }
$sums = @file_get_contents($path.'MD5SUMS');
}
***************
*** 34,41 ****
$mysums = array();
while (($file = readdir($dh)) !== false) {
! if (($version == "") && ($file != ".") && ($file != "..")){
array_push($files, $file);
} else if ((substr($file, strlen($file) - 4) == '.bz2') ||
! (substr($file, strlen($file) - 4) == '.rpm')) {
array_push($files, $file);
$pos = 0;
--- 43,52 ----
$mysums = array();
while (($file = readdir($dh)) !== false) {
! if ((($version == "") || ($platform == ""))&& ($file != ".") && ($file != "..")){
array_push($files, $file);
} else if ((substr($file, strlen($file) - 4) == '.bz2') ||
! (substr($file, strlen($file) - 4) == '.rpm') ||
! (substr($file, strlen($file) - 4) == '.zip')
! ) {
array_push($files, $file);
$pos = 0;
***************
*** 56,75 ****
$text .= "<table>\n";
} else {
$text .= "<h1>Slony $version files</h1>";
$text .= "<table>\n<tr><td>File</td><td>Type</td><td>MD5SUM</td></tr>\n";
}
$c = 0;
foreach ($files as $file) {
! $title = $file;
$type = "";
if (strpos($file,'tar.bz2')>0) $type="Slony tarball";
if ((strpos($file,'doc')>0) && ((strpos($file,'tar.bz2')>0))) $type="Documentation";
! if (strpos($file,'.rpm')>0) $type="Slony RPM";
! $text .= "<tr><td><a href=\"$file\" title=\"$title\">$title</a></td><td>$type</td><td>$mysums[$c]</td></tr>\n";
$c++;
}
$text .= "</table>\n";
! echo layout_defaultblock('Slony downloads',"/downloads/",$text);
break;
--- 67,109 ----
$text .= "<table>\n";
} else {
+ if ($platform == ""){
+ $text .= "<h1>Please select your preferred packaging</h1>";
+ $text .= "<table>\n";
+ } else {
$text .= "<h1>Slony $version files</h1>";
$text .= "<table>\n<tr><td>File</td><td>Type</td><td>MD5SUM</td></tr>\n";
+ }
}
$c = 0;
foreach ($files as $file) {
! $title = $file;
$type = "";
if (strpos($file,'tar.bz2')>0) $type="Slony tarball";
+ if (strpos($file,'.zip')>0) $type="Slony for windows msi installer";
if ((strpos($file,'doc')>0) && ((strpos($file,'tar.bz2')>0))) $type="Documentation";
! if (strpos($file,'source') !== false){
! $type="Slony source files and documentation";
! $file .= "/";
! }
! if (strpos($file,'win32') !== false){
! $type="Slony for Windows";
! $file .= "/";
! }
! if (strpos($file,'rpm') !== false) {
! $type="Slony RPM files";
! $file .= "/";
! }
! $text .= "<tr><td><a href=\"$file\" title=\"$title\">$title</a></td><td>$type</td><td>$mysums[$c]</td></tr>\n";
$c++;
}
$text .= "</table>\n";
! $url = "/downloads/";
! $title = "Slony downloads";
! if ($platform != "") {
! $url .= $version."/";
! $title .= " / ".$version." /";
! }
! echo layout_defaultblock($title,$url,$text);
break;
- Previous message: [Slony1-commit] slony1-www/content news.txt
- Next message: [Slony1-commit] slony1-www index.php
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list