From: Karol K. <roa...@us...> - 2005-12-31 08:19:41
|
Update of /cvsroot/amsn/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28330 Modified Files: download.php linux-downloads.php Added Files: dlfile.php Log Message: Linux downloads now work with a select box with JS and non-JS. --- NEW FILE: dlfile.php --- <?php require_once 'common.php'; if(isset($_GET['file'])) { $file=$_GET['file']; } else { die("No file selected!"); } $url="http://prdownloads.sourceforge.net/amsn/".$file; header("Location: ".$url); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Redirect...</title> </head> <body> Your web browser should have redirected you automaticly. If not, please <a href="<?php echo $url; ?>">click here</a>. </body> </html> Index: download.php =================================================================== RCS file: /cvsroot/amsn/www/download.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** download.php 30 Dec 2005 13:51:59 -0000 1.2 --- download.php 31 Dec 2005 08:19:30 -0000 1.3 *************** *** 12,21 **** <ul> <li> ! <a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95.tar.gz" class="screeny"><img class="thumb" src="images/download-tarball.png" alt="Screenshot" /></a> <br />Tarball Source</li> <li><a href="linux-downloads.php" class="screeny"><img class="thumb" src="images/download-linux.png" alt="Screenshot" /></a><br />Linux</li> <!-- <li><a href="http://www.freshports.org/net/amsn/" class="screeny"><img class="thumb" src="images/download-freebsd.png" alt="Screenshot" /></a><br />FreeBSD</li>--> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-windows-installer-2.exe" class="screeny"><img class="thumb" src="images/download-windows.png" alt="Screenshot" /></a><br />Windows</li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0-95-final.dmg" class="screeny"><img class="thumb" src="images/download-macosx.png" alt="Screenshot" /></a><br />Mac OS X</li> <li><a href="http://sourceforge.net/project/showfiles.php?group_id=54091" class="screeny"><img class="thumb" src="images/download-other.png" alt="Screenshot" /></a><br />Other Packages</li> <li><a href="http://amsn.sourceforge.net/amsn_cvs.tar.gz" class="screeny"><img class="thumb" src="images/download-cvs.png" alt="Screenshot" /></a><br />Latest CVS Snapshot</li> --- 12,21 ---- <ul> <li> ! <a href="dlfile.php?file=amsn-0.95.tar.gz" class="screeny"><img class="thumb" src="images/download-tarball.png" alt="Screenshot" /></a> <br />Tarball Source</li> <li><a href="linux-downloads.php" class="screeny"><img class="thumb" src="images/download-linux.png" alt="Screenshot" /></a><br />Linux</li> <!-- <li><a href="http://www.freshports.org/net/amsn/" class="screeny"><img class="thumb" src="images/download-freebsd.png" alt="Screenshot" /></a><br />FreeBSD</li>--> ! <li><a href="dlfile.php?file=amsn-0.95-windows-installer-2.exe" class="screeny"><img class="thumb" src="images/download-windows.png" alt="Screenshot" /></a><br />Windows</li> ! <li><a href="dlfile.php?file=amsn-0-95-final.dmg" class="screeny"><img class="thumb" src="images/download-macosx.png" alt="Screenshot" /></a><br />Mac OS X</li> <li><a href="http://sourceforge.net/project/showfiles.php?group_id=54091" class="screeny"><img class="thumb" src="images/download-other.png" alt="Screenshot" /></a><br />Other Packages</li> <li><a href="http://amsn.sourceforge.net/amsn_cvs.tar.gz" class="screeny"><img class="thumb" src="images/download-cvs.png" alt="Screenshot" /></a><br />Latest CVS Snapshot</li> Index: linux-downloads.php =================================================================== RCS file: /cvsroot/amsn/www/linux-downloads.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** linux-downloads.php 29 Dec 2005 20:59:16 -0000 1.2 --- linux-downloads.php 31 Dec 2005 08:19:30 -0000 1.3 *************** *** 23,70 **** } </script> ! <noscript> ! <ul> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.linux-installer.bin">Linux Installer(need llibstdc++.so.6)</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95.x86.package">AutoPackage</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn_0.95-1.deb">Debian</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn_0.95-1.sarge.deb">Debian (Sarge)</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn_0.95-2.ubuntu.deb">Ubuntu</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn_0.95-ubuntu.powerpc.deb">Ubuntu (PowerPC)</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.fc3.i686.rpm">Fedora Core 3</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-2.fc4.i686.rpm">Fedora Core 4</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1-mdk92.i686.rpm">Mandrake 9.2</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1mdk.i686.rpm">Mandriva 2006 (Formerly Mandrake)</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-i486.tgz">Slackware</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.suse.i586.rpm">SUSE 10.0</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.archlinux.tar.gz">Archlinux</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95.ebuild">Gentoo</a></li> ! <li><a href="http://prdownloads.sourceforge.net/amsn/amsn-0.95.tar.gz">Other</a></li> ! </ul> ! </noscript> ! <form action="#"> <p> ! <select id="Packages" onchange="javascript:formHandler()"> <option value="" selected="selected" /> ! ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.linux-installer.bin">Linux Installer (need llibstdc++.so.6)</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95.x86.package">AutoPackage</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn_0.95-1.deb">Debian</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn_0.95-1.sarge.deb">Debian (Sarge)</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn_0.95-2.ubuntu.deb">Ubuntu</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn_0.95-ubuntu.powerpc.deb">Ubuntu (PowerPC)</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.fc3.i686.rpm">Fedora Core 3</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-2.fc4.i686.rpm">Fedora Core 4</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1-mdk92.i686.rpm">Mandrake 9.2</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1mdk.i686.rpm">Mandriva 2006 (Formerly Mandrake)</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-i486.tgz">Slackware</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.suse.i586.rpm">SUSE 10.0</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95-1.archlinux.tar.gz">Archlinux</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95.ebuild">Gentoo</option> ! <option value="http://prdownloads.sourceforge.net/amsn/amsn-0.95.tar.gz">Other</option> ! ! ! ! <!--<option value="http://www.mteixeira.webset.net/amsn/">Conectiva--> </select> </p> </form> --- 23,47 ---- } </script> ! <form action="dlfile.php" method="GET"> <p> ! <select name="file" onchange="this.form.submit()"> <option value="" selected="selected" /> ! <option value="amsn-0.95-1.linux-installer.bin">Bitrock Installer</option> ! <option value="amsn-0.95.x86.package">AutoPackage</option> ! <option value="amsn_0.95-1.deb">Debian</option> ! <option value="amsn_0.95-1.sarge.deb">Debian (Sarge)</option> ! <option value="amsn_0.95-2.ubuntu.deb">Ubuntu</option> ! <option value="amsn_0.95-ubuntu.powerpc.deb">Ubuntu (PowerPC)</option> ! <option value="amsn-0.95-1.fc3.i686.rpm">Fedora Core 3</option> ! <option value="amsn-0.95-2.fc4.i686.rpm">Fedora Core 4</option> ! <option value="amsn-0.95-1-mdk92.i686.rpm">Mandrake 9.2</option> ! <option value="amsn-0.95-1mdk.i686.rpm">Mandriva 2006 (Formerly Mandrake)</option> ! <option value="amsn-0.95-i486.tgz">Slackware</option> ! <option value="amsn-0.95-1.suse.i586.rpm">SUSE 10.0</option> ! <option value="amsn-0.95-1.archlinux.tar.gz">Archlinux</option> ! <option value="amsn-0.95.ebuild">Gentoo</option> ! <option value="amsn-0.95.tar.gz">Other</option> </select> + <input type="submit" value="Download"/> </p> </form> |