[Pidgin] #3067: We need to improve the downloads section
Pidgin
trac at pidgin.im
Wed Sep 19 09:49:04 EDT 2007
#3067: We need to improve the downloads section
--------------------------+-------------------------------------------------
Reporter: kstange | Owner: kstange
Type: enhancement | Status: new
Priority: minor | Milestone: Completed Web Site
Component: webpage | Version:
Resolution: | Keywords: downloads
Pending: 0 |
--------------------------+-------------------------------------------------
Comment (by db42):
Ok, downloading the file seems to work. I think
"htdocs/download/index.php" PHP code should have an addition inside:
{{{
<?php
// this should put in start of page, for Header Location to
work...
if (isset($_GET["autodetect"]))
{
// http://www.php.net/get_browser (check notes)
// this function needs php_browscap.ini from
// http://browsers.garykeith.com/downloads.asp
// actually that should be added for fedora support, and
others...
$os = get_browser(null, true)[platform];
if (stristr($os, 'win'))
{
header('Location:
http://downloads.sourceforge.net/pidgin/pidgin-2.2.0.exe');
exit;
}
else if (stristr($os, 'fedora'))
{
header('Location:
http://www.pidgin.im/download/fedora_core/');
exit;
}
}
?>
}}}
and from the main page, the d/l button can link directly to
"download/index.php?autodetect=1" or so...
the .ini for user-agent should add support for fedora and others.
--
Ticket URL: <http://developer.pidgin.im/ticket/3067#comment:8>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list